Sha256: 1195fcaf9bdb78d6a807bb1c0dde632ad4a13bddab8983a3ba43e86120f20a07

Contents?: true

Size: 1.38 KB

Versions: 7

Compression:

Stored size: 1.38 KB

Contents

module AdaptivePayments
  class GetPaymentOptionsResponse < AbstractResponse
    operation :GetPaymentOptions

    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/get_payment_options_response.rb
pp-adaptive-1.0.0 lib/pp-adaptive/get_payment_options_response.rb
pp-adaptive-0.0.6 lib/pp-adaptive/get_payment_options_response.rb
pp-adaptive-0.0.5 lib/pp-adaptive/get_payment_options_response.rb
pp-adaptive-0.0.4 lib/pp-adaptive/get_payment_options_response.rb
pp-adaptive-0.0.3 lib/pp-adaptive/get_payment_options_response.rb
pp-adaptive-0.0.2 lib/pp-adaptive/get_payment_options_response.rb