Class: Adyen::Payment
- Inherits:
-
Object
- Object
- Adyen::Payment
- Defined in:
- lib/adyen/services/payment.rb
Overview
NOTE: This class is auto generated by OpenAPI Generator Ref: openapi-generator.tech
Do not edit the class manually.
Constant Summary collapse
- DEFAULT_VERSION =
68
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(client, version = DEFAULT_VERSION) ⇒ Payment
constructor
A new instance of Payment.
- #modifications_api ⇒ Object
- #payments_api ⇒ Object
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ Payment
Returns a new instance of Payment.
14 15 16 17 18 |
# File 'lib/adyen/services/payment.rb', line 14 def initialize(client, version = DEFAULT_VERSION) @service = 'Payment' @client = client @version = version end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
11 12 13 |
# File 'lib/adyen/services/payment.rb', line 11 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
11 12 13 |
# File 'lib/adyen/services/payment.rb', line 11 def version @version end |
Instance Method Details
#modifications_api ⇒ Object
20 21 22 |
# File 'lib/adyen/services/payment.rb', line 20 def modifications_api @modifications_api ||= Adyen::ClassicModificationsApi.new(@client, @version) end |
#payments_api ⇒ Object
24 25 26 |
# File 'lib/adyen/services/payment.rb', line 24 def payments_api @payments_api ||= Adyen::ClassicPaymentsApi.new(@client, @version) end |