Sha256: a43ceb754f56c58b53863b499c25a5d73596a3c379299ac8c6c403f5d4d69ced

Contents?: true

Size: 1.46 KB

Versions: 7

Compression:

Stored size: 1.46 KB

Contents

module AdaptivePayments
  class SetPaymentOptionsRequest < AbstractRequest
    operation :SetPaymentOptions

    attribute :pay_key,             String,                     :param => "payKey"
    attribute :initiating_entity,   Node[InitiatingEntity],     :param => "initiatingEntity"
    attribute :display_options,     Node[DisplayOptions],       :param => "displayOptions"
    attribute :shipping_address_id, String,                     :param => "shippingAddressId"
    attribute :sender_options,      Node[SenderOptions],        :param => "senderOptions"
    attribute :receiver_options,    NodeList[ReceiverOptions],  :param => "receiverOptions"

    alias_params :initiating_entity, {
      :institution_id          => :institution_id,
      :customer_first_name     => :customer_first_name,
      :customer_last_name      => :customer_last_name,
      :customer_display_name   => :customer_display_name,
      :institution_customer_id => :institution_customer_id,
      :customer_country_code   => :customer_country_code,
      :customer_email          => :customer_email
    }

    alias_params :display_options, {
      :email_header_image_url    => :email_header_image_url,
      :email_marketing_image_url => :email_marketing_image_url,
      :header_image_url          => :header_image_url,
      :business_name             => :business_name
    }

    alias_params :sender_options, {
      :require_shipping_address_selection => :require_shipping_address_selection
    }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
creative-pp-adaptive-1.1.1 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-1.0.0 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-0.0.6 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-0.0.5 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-0.0.4 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-0.0.3 lib/pp-adaptive/set_payment_options_request.rb
pp-adaptive-0.0.2 lib/pp-adaptive/set_payment_options_request.rb