Class: Io::Flow::V0::Models::PaymentMethodSummaryGooglepay
- Inherits:
-
PaymentMethodSummary
- Object
- PaymentMethodSummary
- Io::Flow::V0::Models::PaymentMethodSummaryGooglepay
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#merchant_of_record ⇒ Object
readonly
Returns the value of attribute merchant_of_record.
Attributes inherited from PaymentMethodSummary
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodSummaryGooglepay
constructor
A new instance of PaymentMethodSummaryGooglepay.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodSummary
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodSummaryGooglepay
Returns a new instance of PaymentMethodSummaryGooglepay.
58046 58047 58048 58049 58050 58051 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58046 def initialize(incoming={}) super(:type => PaymentMethodSummary::Types::PAYMENT_METHOD_SUMMARY_GOOGLEPAY) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:merchant_of_record], 'PaymentMethodSummaryGooglepay') @merchant_of_record = (x = opts.delete(:merchant_of_record); x.is_a?(::Io::Flow::V0::Models::MerchantOfRecord) ? x : ::Io::Flow::V0::Models::MerchantOfRecord.apply(x)) end |
Instance Attribute Details
#merchant_of_record ⇒ Object (readonly)
Returns the value of attribute merchant_of_record.
58044 58045 58046 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58044 def merchant_of_record @merchant_of_record end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
58057 58058 58059 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58057 def copy(incoming={}) PaymentMethodSummaryGooglepay.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
58061 58062 58063 58064 58065 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58061 def subtype_to_hash { :merchant_of_record => merchant_of_record.value } end |
#to_json ⇒ Object
58053 58054 58055 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 58053 def to_json JSON.dump(to_hash) end |