Skip to content

Commit 36532d8

Browse files
fix(api): Correct token_metadata field name in tokenization.approval_request schema
1 parent f202486 commit 36532d8

7 files changed

Lines changed: 20 additions & 19 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 184
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-179734893d610c68eb1c49d41be91edc2ad243885e4972fd901835eec233b122.yml
3-
openapi_spec_hash: c60105fa2dd66c0d5b15d17c556db7c1
4-
config_hash: 925e84bc73b1b9b5eb0ffd230fc9800f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a45946df228eec554b3cd2491f658bd5a45cb91509da0a9f92d50468ea88072f.yml
3+
openapi_spec_hash: 24c7c13e1e7385cab5442ca66091ffc6
4+
config_hash: 50031f78031362c2e4900222b9ce7ada

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Types:
174174
```python
175175
from lithic.types import (
176176
Device,
177-
DigitalWalletTokenMetadata,
177+
TokenMetadata,
178178
Tokenization,
179179
TokenizationDeclineReason,
180180
TokenizationRuleResult,

src/lithic/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from .funding_event import FundingEvent as FundingEvent
3434
from .network_total import NetworkTotal as NetworkTotal
3535
from .account_holder import AccountHolder as AccountHolder
36+
from .token_metadata import TokenMetadata as TokenMetadata
3637
from .card_bulk_order import CardBulkOrder as CardBulkOrder
3738
from .message_attempt import MessageAttempt as MessageAttempt
3839
from .network_program import NetworkProgram as NetworkProgram
@@ -131,7 +132,6 @@
131132
from .balance_updated_webhook_event import BalanceUpdatedWebhookEvent as BalanceUpdatedWebhookEvent
132133
from .card_bulk_order_create_params import CardBulkOrderCreateParams as CardBulkOrderCreateParams
133134
from .card_bulk_order_update_params import CardBulkOrderUpdateParams as CardBulkOrderUpdateParams
134-
from .digital_wallet_token_metadata import DigitalWalletTokenMetadata as DigitalWalletTokenMetadata
135135
from .dispute_list_evidences_params import DisputeListEvidencesParams as DisputeListEvidencesParams
136136
from .dispute_updated_webhook_event import DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent
137137
from .external_bank_account_address import ExternalBankAccountAddress as ExternalBankAccountAddress

src/lithic/types/digital_wallet_tokenization_approval_request_webhook_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
from .device import Device
88
from .._models import BaseModel
9+
from .token_metadata import TokenMetadata
910
from .tokenization_tfa_reason import TokenizationTfaReason
1011
from .wallet_decisioning_info import WalletDecisioningInfo
1112
from .tokenization_rule_result import TokenizationRuleResult
1213
from .tokenization_decline_reason import TokenizationDeclineReason
13-
from .digital_wallet_token_metadata import DigitalWalletTokenMetadata
1414

1515
__all__ = ["DigitalWalletTokenizationApprovalRequestWebhookEvent", "CustomerTokenizationDecision"]
1616

@@ -46,6 +46,9 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent(BaseModel):
4646
customer_tokenization_decision: Optional[CustomerTokenizationDecision] = None
4747
"""Contains the metadata for the customer tokenization decision."""
4848

49+
digital_wallet_token_metadata: TokenMetadata
50+
"""Contains the metadata for the digital wallet being tokenized."""
51+
4952
event_type: Literal["digital_wallet.tokenization_approval_request"]
5053
"""The name of this event"""
5154

@@ -65,9 +68,6 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent(BaseModel):
6568

6669
device: Optional[Device] = None
6770

68-
digital_wallet_token_metadata: Optional[DigitalWalletTokenMetadata] = None
69-
"""Contains the metadata for the digital wallet being tokenized."""
70-
7171
rule_results: Optional[List[TokenizationRuleResult]] = None
7272
"""Results from rules that were evaluated for this tokenization"""
7373

src/lithic/types/digital_wallet_token_metadata.py renamed to src/lithic/types/token_metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from .._models import BaseModel
77

8-
__all__ = ["DigitalWalletTokenMetadata", "PaymentAccountInfo", "PaymentAccountInfoAccountHolderData"]
8+
__all__ = ["TokenMetadata", "PaymentAccountInfo", "PaymentAccountInfoAccountHolderData"]
99

1010

1111
class PaymentAccountInfoAccountHolderData(BaseModel):
@@ -42,7 +42,7 @@ class PaymentAccountInfo(BaseModel):
4242
"""
4343

4444

45-
class DigitalWalletTokenMetadata(BaseModel):
45+
class TokenMetadata(BaseModel):
4646
"""Contains the metadata for the digital wallet being tokenized."""
4747

4848
payment_account_info: PaymentAccountInfo
@@ -68,6 +68,7 @@ class DigitalWalletTokenMetadata(BaseModel):
6868
"FACEBOOK",
6969
"FITBIT_PAY",
7070
"GARMIN_PAY",
71+
"GOOGLE_PAY",
7172
"MICROSOFT_PAY",
7273
"NETFLIX",
7374
"SAMSUNG_PAY",

src/lithic/types/tokenization_approval_request_webhook_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
from .device import Device
88
from .._models import BaseModel
9+
from .token_metadata import TokenMetadata
910
from .tokenization_tfa_reason import TokenizationTfaReason
1011
from .wallet_decisioning_info import WalletDecisioningInfo
1112
from .tokenization_rule_result import TokenizationRuleResult
1213
from .tokenization_decline_reason import TokenizationDeclineReason
13-
from .digital_wallet_token_metadata import DigitalWalletTokenMetadata
1414

1515
__all__ = ["TokenizationApprovalRequestWebhookEvent", "CustomerTokenizationDecision"]
1616

@@ -55,6 +55,9 @@ class TokenizationApprovalRequestWebhookEvent(BaseModel):
5555
APPROVED/VERIFICATION_REQUIRED/DENIED.
5656
"""
5757

58+
token_metadata: TokenMetadata
59+
"""Contains the metadata for the digital wallet being tokenized."""
60+
5861
tokenization_channel: Literal["DIGITAL_WALLET", "MERCHANT"]
5962
"""The channel through which the tokenization was made."""
6063

@@ -65,9 +68,6 @@ class TokenizationApprovalRequestWebhookEvent(BaseModel):
6568

6669
device: Optional[Device] = None
6770

68-
digital_wallet_token_metadata: Optional[DigitalWalletTokenMetadata] = None
69-
"""Contains the metadata for the digital wallet being tokenized."""
70-
7171
rule_results: Optional[List[TokenizationRuleResult]] = None
7272
"""Results from rules that were evaluated for this tokenization"""
7373

src/lithic/types/tokenization_decisioning_request_webhook_event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from .device import Device
88
from .._models import BaseModel
9+
from .token_metadata import TokenMetadata
910
from .wallet_decisioning_info import WalletDecisioningInfo
10-
from .digital_wallet_token_metadata import DigitalWalletTokenMetadata
1111

1212
__all__ = ["TokenizationDecisioningRequestWebhookEvent"]
1313

@@ -26,6 +26,9 @@ class TokenizationDecisioningRequestWebhookEvent(BaseModel):
2626
created: datetime
2727
"""Indicate when the request was received from Mastercard or Visa"""
2828

29+
digital_wallet_token_metadata: TokenMetadata
30+
"""Contains the metadata for the digital wallet being tokenized."""
31+
2932
event_type: Literal["digital_wallet.tokenization_approval_request"]
3033
"""The name of this event"""
3134

@@ -45,9 +48,6 @@ class TokenizationDecisioningRequestWebhookEvent(BaseModel):
4548

4649
device: Optional[Device] = None
4750

48-
digital_wallet_token_metadata: Optional[DigitalWalletTokenMetadata] = None
49-
"""Contains the metadata for the digital wallet being tokenized."""
50-
5151
tokenization_source: Optional[
5252
Literal["ACCOUNT_ON_FILE", "CONTACTLESS_TAP", "MANUAL_PROVISION", "PUSH_PROVISION", "TOKEN", "UNKNOWN"]
5353
] = None

0 commit comments

Comments
 (0)