Sha256: ef981a403c6163b1ce80610953651db2f65e1d84205ab770a28d8ffcd44f102a

Contents?: true

Size: 739 Bytes

Versions: 7

Compression:

Stored size: 739 Bytes

Contents

module AdaptivePayments
  class ReceiverOptions < JsonModel
    attribute :description,  String
    attribute :custom_id,    String,                   :param => "customId"
    attribute :invoice_data, Node[InvoiceData],        :param => "invoiceData"
    attribute :receiver,     Node[ReceiverIdentifier], :param => "receiver"

    alias_params :invoice_data, {
      :items          => :items,
      :total_tax      => :total_tax,
      :total_shipping => :total_shipping
    }

    alias_params :receiver, {
      :receiver_email              => :email,
      :receiver_phone_country_code => :phone_country_code,
      :receiver_phone_number       => :phone_number,
      :receiver_phone_extension    => :phone_extension
    }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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