Skip to content

Commit de13518

Browse files
feat(api): api update
1 parent ccf980b commit de13518

File tree

2 files changed

+111
-2
lines changed

2 files changed

+111
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 234
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e4cf84ebe7ee8dbfbaa709d310fb62f12631f4b69f7aa73be2a88f149c726dc3.yml
3-
openapi_spec_hash: 123949338534df87debdfbd846fc40b1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5ad5e7687261a6a66ca0b94fed6765c7f703e809a4ad1ea2697f13125b2a4149.yml
3+
openapi_spec_hash: d0109b057a653545ee169947b9aa76b2
44
config_hash: 890ca5fa6b8209d4eaac90550c7dc62c

src/increase/types/card_payment.py

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"ElementCardAuthenticationChallengeAttempt",
1717
"ElementCardAuthenticationDeviceChannel",
1818
"ElementCardAuthenticationDeviceChannelBrowser",
19+
"ElementCardAuthenticationDeviceChannelMerchantInitiated",
1920
"ElementCardAuthorization",
2021
"ElementCardAuthorizationAdditionalAmounts",
2122
"ElementCardAuthorizationAdditionalAmountsClinic",
@@ -231,6 +232,54 @@ class ElementCardAuthenticationDeviceChannelBrowser(BaseModel):
231232
"""The user agent of the cardholder's browser."""
232233

233234

235+
class ElementCardAuthenticationDeviceChannelMerchantInitiated(BaseModel):
236+
"""Fields specific to merchant initiated transactions."""
237+
238+
indicator: Literal[
239+
"recurring_transaction",
240+
"installment_transaction",
241+
"add_card",
242+
"maintain_card_information",
243+
"account_verification",
244+
"split_delayed_shipment",
245+
"top_up",
246+
"mail_order",
247+
"telephone_order",
248+
"whitelist_status_check",
249+
"other_payment",
250+
"billing_agreement",
251+
"device_binding_status_check",
252+
"card_security_code_status_check",
253+
"delayed_shipment",
254+
"split_payment",
255+
"fido_credential_deletion",
256+
"fido_credential_registration",
257+
"decoupled_authentication_fallback",
258+
]
259+
"""The merchant initiated indicator for the transaction.
260+
261+
- `recurring_transaction` - Recurring transaction.
262+
- `installment_transaction` - Installment transaction.
263+
- `add_card` - Add card.
264+
- `maintain_card_information` - Maintain card information.
265+
- `account_verification` - Account verification.
266+
- `split_delayed_shipment` - Split or delayed shipment.
267+
- `top_up` - Top up.
268+
- `mail_order` - Mail order.
269+
- `telephone_order` - Telephone order.
270+
- `whitelist_status_check` - Whitelist status check.
271+
- `other_payment` - Other payment.
272+
- `billing_agreement` - Billing agreement.
273+
- `device_binding_status_check` - Device binding status check.
274+
- `card_security_code_status_check` - Card security code status check.
275+
- `delayed_shipment` - Delayed shipment.
276+
- `split_payment` - Split payment.
277+
- `fido_credential_deletion` - FIDO credential deletion.
278+
- `fido_credential_registration` - FIDO credential registration.
279+
- `decoupled_authentication_fallback` - Decoupled authentication fallback.
280+
"""
281+
282+
234283
class ElementCardAuthenticationDeviceChannel(BaseModel):
235284
"""The device channel of the card authentication attempt."""
236285

@@ -246,6 +295,9 @@ class ElementCardAuthenticationDeviceChannel(BaseModel):
246295
the 3DS Requestor.
247296
"""
248297

298+
merchant_initiated: Optional[ElementCardAuthenticationDeviceChannelMerchantInitiated] = None
299+
"""Fields specific to merchant initiated transactions."""
300+
249301

250302
class ElementCardAuthentication(BaseModel):
251303
"""A Card Authentication object.
@@ -256,6 +308,12 @@ class ElementCardAuthentication(BaseModel):
256308
id: str
257309
"""The Card Authentication identifier."""
258310

311+
access_control_server_transaction_id: str
312+
"""
313+
A unique identifier assigned by the Access Control Server (us) for this
314+
transaction.
315+
"""
316+
259317
billing_address_city: Optional[str] = None
260318
"""
261319
The city of the cardholder billing address associated with the card used for
@@ -350,6 +408,12 @@ class ElementCardAuthentication(BaseModel):
350408
device_channel: ElementCardAuthenticationDeviceChannel
351409
"""The device channel of the card authentication attempt."""
352410

411+
directory_server_transaction_id: str
412+
"""
413+
A unique identifier assigned by the Directory Server (the card network) for this
414+
transaction.
415+
"""
416+
353417
merchant_acceptor_id: str
354418
"""
355419
The merchant identifier (commonly abbreviated as MID) of the merchant the card
@@ -453,6 +517,27 @@ class ElementCardAuthentication(BaseModel):
453517
requestor_url: str
454518
"""The URL of the 3DS requestor."""
455519

520+
shipping_address_city: Optional[str] = None
521+
"""The city of the shipping address associated with this purchase."""
522+
523+
shipping_address_country: Optional[str] = None
524+
"""The country of the shipping address associated with this purchase."""
525+
526+
shipping_address_line1: Optional[str] = None
527+
"""The first line of the shipping address associated with this purchase."""
528+
529+
shipping_address_line2: Optional[str] = None
530+
"""The second line of the shipping address associated with this purchase."""
531+
532+
shipping_address_line3: Optional[str] = None
533+
"""The third line of the shipping address associated with this purchase."""
534+
535+
shipping_address_postal_code: Optional[str] = None
536+
"""The postal code of the shipping address associated with this purchase."""
537+
538+
shipping_address_state: Optional[str] = None
539+
"""The US state of the shipping address associated with this purchase."""
540+
456541
status: Literal[
457542
"denied",
458543
"authenticated_with_challenge",
@@ -481,6 +566,30 @@ class ElementCardAuthentication(BaseModel):
481566
threshold.
482567
"""
483568

569+
three_d_secure_server_transaction_id: str
570+
"""
571+
A unique identifier assigned by the 3DS Server initiating the authentication
572+
attempt for this transaction.
573+
"""
574+
575+
transaction_type: Optional[
576+
Literal[
577+
"goods_service_purchase",
578+
"check_acceptance",
579+
"account_funding",
580+
"quasi_cash_transaction",
581+
"prepaid_activation_and_load",
582+
]
583+
] = None
584+
"""The type of transaction being authenticated.
585+
586+
- `goods_service_purchase` - Purchase of goods or services.
587+
- `check_acceptance` - Check acceptance.
588+
- `account_funding` - Account funding.
589+
- `quasi_cash_transaction` - Quasi-cash transaction.
590+
- `prepaid_activation_and_load` - Prepaid activation and load.
591+
"""
592+
484593
type: Literal["card_authentication"]
485594
"""A constant representing the object's type.
486595

0 commit comments

Comments
 (0)