File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -16645,6 +16645,17 @@ components:
16645
16645
title: An identifier for a specific payment gateway. Must be used in conjunction
16646
16646
with `gateway_token`.
16647
16647
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
16648
16659
amazon_billing_agreement_id:
16649
16660
type: string
16650
16661
title: Amazon billing agreement ID
@@ -21470,6 +21481,7 @@ components:
21470
21481
- force_collect
21471
21482
- refunded_externally
21472
21483
- chargeback
21484
+ - external_recovery
21473
21485
currency:
21474
21486
type: string
21475
21487
title: Currency
@@ -22185,6 +22197,7 @@ components:
22185
22197
object:
22186
22198
type: string
22187
22199
enum:
22200
+ - bacs
22188
22201
- credit_card
22189
22202
- paypal
22190
22203
- amazon
@@ -22255,6 +22268,16 @@ components:
22255
22268
type: string
22256
22269
description: An identifier for a specific payment gateway.
22257
22270
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
22258
22281
billing_agreement_id:
22259
22282
type: string
22260
22283
description: Billing Agreement identifier. Only present for Amazon or Paypal
Original file line number Diff line number Diff line change @@ -345,6 +345,8 @@ class PaymentMethod(Resource):
345
345
Expiration year.
346
346
first_six : str
347
347
Credit card number's first six digits.
348
+ gateway_attributes : GatewayAttributes
349
+ Gateway specific attributes associated with this PaymentMethod
348
350
gateway_code : str
349
351
An identifier for a specific payment gateway.
350
352
gateway_token : str
@@ -370,6 +372,7 @@ class PaymentMethod(Resource):
370
372
"exp_month" : int ,
371
373
"exp_year" : int ,
372
374
"first_six" : str ,
375
+ "gateway_attributes" : "GatewayAttributes" ,
373
376
"gateway_code" : str ,
374
377
"gateway_token" : str ,
375
378
"last_four" : str ,
@@ -381,6 +384,19 @@ class PaymentMethod(Resource):
381
384
}
382
385
383
386
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
+
384
400
class FraudInfo (Resource ):
385
401
"""
386
402
Attributes
You can’t perform that action at this time.
0 commit comments