Class: Io::Flow::V0::Models::GooglePayAuthorizationPayload
- Inherits:
-
AuthorizationPayloadParameters
- Object
- AuthorizationPayloadParameters
- Io::Flow::V0::Models::GooglePayAuthorizationPayload
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Attributes inherited from AuthorizationPayloadParameters
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ GooglePayAuthorizationPayload
constructor
A new instance of GooglePayAuthorizationPayload.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationPayloadParameters
Constructor Details
#initialize(incoming = {}) ⇒ GooglePayAuthorizationPayload
Returns a new instance of GooglePayAuthorizationPayload.
44343 44344 44345 44346 44347 44348 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44343 def initialize(incoming={}) super(:discriminator => AuthorizationPayloadParameters::Types::GOOGLE_PAY_AUTHORIZATION_PAYLOAD) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:payload], 'GooglePayAuthorizationPayload') @payload = HttpClient::Preconditions.assert_class('payload', HttpClient::Helper.to_object(opts.delete(:payload)), Hash) end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
44341 44342 44343 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44341 def payload @payload end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
44354 44355 44356 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44354 def copy(incoming={}) GooglePayAuthorizationPayload.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
44358 44359 44360 44361 44362 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44358 def subtype_to_hash { :payload => payload } end |
#to_json ⇒ Object
44350 44351 44352 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44350 def to_json JSON.dump(to_hash) end |