def get_certified_deliveries(certified_deliveries)
      doc_certified_deliveries = []

      certified_deliveries.each do |certified_delivery|
        doc_certified_delivery = {
          email:        certified_delivery[:email],
          name:         certified_delivery[:name],
          recipientId:  certified_delivery[:recipient_id]
        }

        if certified_delivery[:embedded]
          doc_certified_delivery[:clientUserId] = certified_delivery[:client_id] || certified_delivery[:email]
        end

        doc_certified_deliveries << doc_certified_delivery
      end
      doc_certified_deliveries
    end
def get_certified_deliveries(certified_deliveries)
      doc_certified_deliveries = []

      certified_deliveries.each do |certified_delivery|
        doc_certified_delivery = {
          email:        certified_delivery[:email],
          name:         certified_delivery[:name],
          recipientId:  certified_delivery[:recipient_id]
        }

        if certified_delivery[:embedded]
          doc_certified_delivery[:clientUserId] = certified_delivery[:client_id] || certified_delivery[:email]
        end

        doc_certified_deliveries << doc_certified_delivery
      end
      doc_certified_deliveries
    end
Internal: takes an array of hashes of certified deliveries

 email              - The recipient email
 name               - The recipient name
 recipient_id       - The recipient's id
 embedded           - Tells DocuSign if this is an embedded recipient which
                      determines whether or not to deliver emails.