Skip to content

Commit e135352

Browse files
authored
Merge pull request #646 from recurly/v3-v2019-10-10-1684788284
Generated Latest Changes for v2019-10-10 (gateway_attributes on PaymentMethod)
2 parents 6e452e7 + 1deb7a8 commit e135352

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

openapi/api.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16645,6 +16645,17 @@ components:
1664516645
title: An identifier for a specific payment gateway. Must be used in conjunction
1664616646
with `gateway_token`.
1664716647
maxLength: 12
16648+
gateway_attributes:
16649+
type: object
16650+
description: Additional attributes to send to the gateway.
16651+
x-class-name: GatewayAttributes
16652+
properties:
16653+
account_reference:
16654+
type: string
16655+
description: Used by Adyen gateways. The Shopper Reference value used
16656+
when the external token was created. Must be used in conjunction with
16657+
gateway_token and gateway_code.
16658+
maxLength: 264
1664816659
amazon_billing_agreement_id:
1664916660
type: string
1665016661
title: Amazon billing agreement ID
@@ -21470,6 +21481,7 @@ components:
2147021481
- force_collect
2147121482
- refunded_externally
2147221483
- chargeback
21484+
- external_recovery
2147321485
currency:
2147421486
type: string
2147521487
title: Currency
@@ -22185,6 +22197,7 @@ components:
2218522197
object:
2218622198
type: string
2218722199
enum:
22200+
- bacs
2218822201
- credit_card
2218922202
- paypal
2219022203
- amazon
@@ -22255,6 +22268,16 @@ components:
2225522268
type: string
2225622269
description: An identifier for a specific payment gateway.
2225722270
maxLength: 13
22271+
gateway_attributes:
22272+
type: object
22273+
description: Gateway specific attributes associated with this PaymentMethod
22274+
x-class-name: GatewayAttributes
22275+
properties:
22276+
account_reference:
22277+
type: string
22278+
description: Used by Adyen gateways. The Shopper Reference value used
22279+
when the external token was created.
22280+
maxLength: 264
2225822281
billing_agreement_id:
2225922282
type: string
2226022283
description: Billing Agreement identifier. Only present for Amazon or Paypal

recurly/resources.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ class PaymentMethod(Resource):
345345
Expiration year.
346346
first_six : str
347347
Credit card number's first six digits.
348+
gateway_attributes : GatewayAttributes
349+
Gateway specific attributes associated with this PaymentMethod
348350
gateway_code : str
349351
An identifier for a specific payment gateway.
350352
gateway_token : str
@@ -370,6 +372,7 @@ class PaymentMethod(Resource):
370372
"exp_month": int,
371373
"exp_year": int,
372374
"first_six": str,
375+
"gateway_attributes": "GatewayAttributes",
373376
"gateway_code": str,
374377
"gateway_token": str,
375378
"last_four": str,
@@ -381,6 +384,19 @@ class PaymentMethod(Resource):
381384
}
382385

383386

387+
class GatewayAttributes(Resource):
388+
"""
389+
Attributes
390+
----------
391+
account_reference : str
392+
Used by Adyen gateways. The Shopper Reference value used when the external token was created.
393+
"""
394+
395+
schema = {
396+
"account_reference": str,
397+
}
398+
399+
384400
class FraudInfo(Resource):
385401
"""
386402
Attributes

0 commit comments

Comments
 (0)