Sha256: 3c8f99199912686719691dfe8bde3abd5b53d59f45aef65857bcde0a0295212e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module PayPal::AdaptivePayments class PaymentOptions < PayPal::AdaptivePayments::Base attr_accessor :pay_key attr_accessor :display_options attr_accessor :initiating_entity attr_accessor :shipping_address_id attr_accessor :sender_options attr_accessor :receiver_options def self.find(key) self.new(:pay_key => key).get end def get Response.process(:get_payment_options, request.run(:get_payment_options, self.to_hash)) end def set Response.process(:set_payment_options, request.run(:set_payment_options, self.to_hash)) end def set_display_options(value) self.display_options = build_value(DisplayOptions, value) end def set_initiating_entity(value) self.initiating_entity = build_value(InitiatingEntity, value) end def set_sender_options(value) self.sender_options = build_value(SenderOptions, value) end def set_receiver_options(value) self.receiver_options = build_value(ReceiverOptions, value) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paypal-payment-0.1.2 | lib/paypal/adaptive_payments/payment_options.rb |