Skip to content

Commit

Permalink
Merge pull request #847 from recurly/v3-v2019-10-10-1684788284
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2019-10-10 (gateway_attributes on PaymentMethod)
  • Loading branch information
gilv93 authored May 22, 2023
2 parents 82519c2 + f4d3b3e commit 03cd0a2
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/recurly/requests/billing_info_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class BillingInfoCreate < Request
# @return [String] Fraud Session ID
define_attribute :fraud_session_id, String

# @!attribute gateway_attributes
# @return [GatewayAttributes] Additional attributes to send to the gateway.
define_attribute :gateway_attributes, :GatewayAttributes

# @!attribute gateway_code
# @return [String] An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
define_attribute :gateway_code, String
Expand Down
14 changes: 14 additions & 0 deletions lib/recurly/requests/gateway_attributes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is automatically created by Recurly's OpenAPI generation process
# and thus any edits you make by hand will be lost. If you wish to make a
# change to this file, please create a Github issue explaining the changes you
# need and we will usher them to the appropriate places.
module Recurly
module Requests
class GatewayAttributes < Request

# @!attribute account_reference
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.
define_attribute :account_reference, String
end
end
end
14 changes: 14 additions & 0 deletions lib/recurly/resources/gateway_attributes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is automatically created by Recurly's OpenAPI generation process
# and thus any edits you make by hand will be lost. If you wish to make a
# change to this file, please create a Github issue explaining the changes you
# need and we will usher them to the appropriate places.
module Recurly
module Resources
class GatewayAttributes < Resource

# @!attribute account_reference
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created.
define_attribute :account_reference, String
end
end
end
4 changes: 4 additions & 0 deletions lib/recurly/resources/payment_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class PaymentMethod < Resource
# @return [String] Credit card number's first six digits.
define_attribute :first_six, String

# @!attribute gateway_attributes
# @return [GatewayAttributes] Gateway specific attributes associated with this PaymentMethod
define_attribute :gateway_attributes, :GatewayAttributes

# @!attribute gateway_code
# @return [String] An identifier for a specific payment gateway.
define_attribute :gateway_code, String
Expand Down
23 changes: 23 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16645,6 +16645,17 @@ components:
title: An identifier for a specific payment gateway. Must be used in conjunction
with `gateway_token`.
maxLength: 12
gateway_attributes:
type: object
description: Additional attributes to send to the gateway.
x-class-name: GatewayAttributes
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created. Must be used in conjunction with
gateway_token and gateway_code.
maxLength: 264
amazon_billing_agreement_id:
type: string
title: Amazon billing agreement ID
Expand Down Expand Up @@ -21470,6 +21481,7 @@ components:
- force_collect
- refunded_externally
- chargeback
- external_recovery
currency:
type: string
title: Currency
Expand Down Expand Up @@ -22185,6 +22197,7 @@ components:
object:
type: string
enum:
- bacs
- credit_card
- paypal
- amazon
Expand Down Expand Up @@ -22255,6 +22268,16 @@ components:
type: string
description: An identifier for a specific payment gateway.
maxLength: 13
gateway_attributes:
type: object
description: Gateway specific attributes associated with this PaymentMethod
x-class-name: GatewayAttributes
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created.
maxLength: 264
billing_agreement_id:
type: string
description: Billing Agreement identifier. Only present for Amazon or Paypal
Expand Down

0 comments on commit 03cd0a2

Please sign in to comment.