Class: Io::Flow::V0::Models::PaymentMethodDataInitAfterpay
- Inherits:
-
PaymentMethodData
- Object
- PaymentMethodData
- Io::Flow::V0::Models::PaymentMethodDataInitAfterpay
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from PaymentMethodData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataInitAfterpay
constructor
A new instance of PaymentMethodDataInitAfterpay.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodData
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataInitAfterpay
Returns a new instance of PaymentMethodDataInitAfterpay.
50886 50887 50888 50889 50890 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50886 def initialize(incoming={}) super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_INIT_AFTERPAY) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
50884 50885 50886 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50884 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
50896 50897 50898 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50896 def copy(incoming={}) PaymentMethodDataInitAfterpay.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
50900 50901 50902 50903 50904 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50900 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
50892 50893 50894 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50892 def to_json JSON.dump(to_hash) end |