Skip to content

Commit a4d5ae7

Browse files
fix(api): Correct token_metadata field name in tokenization.approval_request schema
1 parent 993ab5c commit a4d5ae7

17 files changed

Lines changed: 164 additions & 192 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 185
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

lib/lithic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
require_relative "lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event"
215215
require_relative "lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event"
216216
require_relative "lithic/models/digital_wallet_tokenization_updated_webhook_event"
217-
require_relative "lithic/models/digital_wallet_token_metadata"
218217
require_relative "lithic/models/dispute_create_params"
219218
require_relative "lithic/models/dispute_delete_evidence_params"
220219
require_relative "lithic/models/dispute_delete_params"
@@ -416,6 +415,7 @@
416415
require_relative "lithic/models/tokenization_unpause_params"
417416
require_relative "lithic/models/tokenization_update_digital_card_art_params"
418417
require_relative "lithic/models/tokenization_updated_webhook_event"
418+
require_relative "lithic/models/token_metadata"
419419
require_relative "lithic/models/transaction_expire_authorization_params"
420420
require_relative "lithic/models/transaction_list_params"
421421
require_relative "lithic/models/transaction_retrieve_params"

lib/lithic/models.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ module Lithic
229229
DigitalWalletTokenizationUpdatedWebhookEvent =
230230
Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent
231231

232-
DigitalWalletTokenMetadata = Lithic::Models::DigitalWalletTokenMetadata
233-
234232
Dispute = Lithic::Models::Dispute
235233

236234
DisputeCreateParams = Lithic::Models::DisputeCreateParams
@@ -538,6 +536,8 @@ module Lithic
538536

539537
TokenizationUpdatedWebhookEvent = Lithic::Models::TokenizationUpdatedWebhookEvent
540538

539+
TokenMetadata = Lithic::Models::TokenMetadata
540+
541541
Transaction = Lithic::Models::Transaction
542542

543543
TransactionExpireAuthorizationParams = Lithic::Models::TransactionExpireAuthorizationParams

lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::T
3131
},
3232
nil?: true
3333

34+
# @!attribute digital_wallet_token_metadata
35+
# Contains the metadata for the digital wallet being tokenized.
36+
#
37+
# @return [Lithic::Models::TokenMetadata]
38+
required :digital_wallet_token_metadata, -> { Lithic::TokenMetadata }
39+
3440
# @!attribute event_type
3541
# The name of this event
3642
#
@@ -68,12 +74,6 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::T
6874
# @return [Lithic::Models::Device, nil]
6975
optional :device, -> { Lithic::Device }
7076

71-
# @!attribute digital_wallet_token_metadata
72-
# Contains the metadata for the digital wallet being tokenized.
73-
#
74-
# @return [Lithic::Models::DigitalWalletTokenMetadata, nil]
75-
optional :digital_wallet_token_metadata, -> { Lithic::DigitalWalletTokenMetadata }
76-
7777
# @!attribute rule_results
7878
# Results from rules that were evaluated for this tokenization
7979
#
@@ -101,7 +101,7 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::T
101101
optional :tokenization_tfa_reasons,
102102
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
103103

104-
# @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, digital_wallet_token_metadata: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
104+
# @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, digital_wallet_token_metadata:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
105105
# Some parameter documentations has been truncated, see
106106
# {Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent} for more
107107
# details.
@@ -114,6 +114,8 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::T
114114
#
115115
# @param customer_tokenization_decision [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil] Contains the metadata for the customer tokenization decision.
116116
#
117+
# @param digital_wallet_token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
118+
#
117119
# @param event_type [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType] The name of this event
118120
#
119121
# @param issuer_decision [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::IssuerDecision] Whether Lithic decisioned on the token, and if so, what the decision was. APPROV
@@ -126,8 +128,6 @@ class DigitalWalletTokenizationApprovalRequestWebhookEvent < Lithic::Internal::T
126128
#
127129
# @param device [Lithic::Models::Device]
128130
#
129-
# @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
130-
#
131131
# @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
132132
#
133133
# @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined

lib/lithic/models/digital_wallet_token_metadata.rb renamed to lib/lithic/models/token_metadata.rb

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
module Lithic
44
module Models
5-
class DigitalWalletTokenMetadata < Lithic::Internal::Type::BaseModel
5+
class TokenMetadata < Lithic::Internal::Type::BaseModel
66
# @!attribute payment_account_info
77
# Contains the information of the account responsible for the payment.
88
#
9-
# @return [Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo]
10-
required :payment_account_info, -> { Lithic::DigitalWalletTokenMetadata::PaymentAccountInfo }
9+
# @return [Lithic::Models::TokenMetadata::PaymentAccountInfo]
10+
required :payment_account_info, -> { Lithic::TokenMetadata::PaymentAccountInfo }
1111

1212
# @!attribute status
1313
# The current status of the digital wallet token. Pending or declined.
@@ -31,34 +31,33 @@ class DigitalWalletTokenMetadata < Lithic::Internal::Type::BaseModel
3131
# @!attribute token_requestor_name
3232
# Human-readable name of the wallet that the token_requestor_id maps to.
3333
#
34-
# @return [Symbol, Lithic::Models::DigitalWalletTokenMetadata::TokenRequestorName, nil]
35-
optional :token_requestor_name, enum: -> { Lithic::DigitalWalletTokenMetadata::TokenRequestorName }
34+
# @return [Symbol, Lithic::Models::TokenMetadata::TokenRequestorName, nil]
35+
optional :token_requestor_name, enum: -> { Lithic::TokenMetadata::TokenRequestorName }
3636

3737
# @!method initialize(payment_account_info:, status:, payment_app_instance_id: nil, token_requestor_id: nil, token_requestor_name: nil)
3838
# Some parameter documentations has been truncated, see
39-
# {Lithic::Models::DigitalWalletTokenMetadata} for more details.
39+
# {Lithic::Models::TokenMetadata} for more details.
4040
#
4141
# Contains the metadata for the digital wallet being tokenized.
4242
#
43-
# @param payment_account_info [Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo] Contains the information of the account responsible for the payment.
43+
# @param payment_account_info [Lithic::Models::TokenMetadata::PaymentAccountInfo] Contains the information of the account responsible for the payment.
4444
#
4545
# @param status [String] The current status of the digital wallet token. Pending or declined.
4646
#
4747
# @param payment_app_instance_id [String, nil] The identifier of the Payment App instance within a device that will be provisio
4848
#
4949
# @param token_requestor_id [String] The party that requested the digitization
5050
#
51-
# @param token_requestor_name [Symbol, Lithic::Models::DigitalWalletTokenMetadata::TokenRequestorName] Human-readable name of the wallet that the token_requestor_id maps to.
51+
# @param token_requestor_name [Symbol, Lithic::Models::TokenMetadata::TokenRequestorName] Human-readable name of the wallet that the token_requestor_id maps to.
5252

53-
# @see Lithic::Models::DigitalWalletTokenMetadata#payment_account_info
53+
# @see Lithic::Models::TokenMetadata#payment_account_info
5454
class PaymentAccountInfo < Lithic::Internal::Type::BaseModel
5555
# @!attribute account_holder_data
5656
# Additional information that can be used to identify the account holder, such as
5757
# name, address, etc
5858
#
59-
# @return [Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo::AccountHolderData]
60-
required :account_holder_data,
61-
-> { Lithic::DigitalWalletTokenMetadata::PaymentAccountInfo::AccountHolderData }
59+
# @return [Lithic::Models::TokenMetadata::PaymentAccountInfo::AccountHolderData]
60+
required :account_holder_data, -> { Lithic::TokenMetadata::PaymentAccountInfo::AccountHolderData }
6261

6362
# @!attribute pan_unique_reference
6463
# Reference to the PAN that is unique per Wallet Provider
@@ -81,20 +80,19 @@ class PaymentAccountInfo < Lithic::Internal::Type::BaseModel
8180

8281
# @!method initialize(account_holder_data:, pan_unique_reference: nil, payment_account_reference: nil, token_unique_reference: nil)
8382
# Some parameter documentations has been truncated, see
84-
# {Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo} for more
85-
# details.
83+
# {Lithic::Models::TokenMetadata::PaymentAccountInfo} for more details.
8684
#
8785
# Contains the information of the account responsible for the payment.
8886
#
89-
# @param account_holder_data [Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo::AccountHolderData] Additional information that can be used to identify the account holder, such as
87+
# @param account_holder_data [Lithic::Models::TokenMetadata::PaymentAccountInfo::AccountHolderData] Additional information that can be used to identify the account holder, such as
9088
#
9189
# @param pan_unique_reference [String, nil] Reference to the PAN that is unique per Wallet Provider
9290
#
9391
# @param payment_account_reference [String, nil] The unique account reference assigned to the PAN
9492
#
9593
# @param token_unique_reference [String, nil] A unique reference assigned following the allocation of a token used to identify
9694

97-
# @see Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo#account_holder_data
95+
# @see Lithic::Models::TokenMetadata::PaymentAccountInfo#account_holder_data
9896
class AccountHolderData < Lithic::Internal::Type::BaseModel
9997
# @!attribute phone_number
10098
# The phone number, may contain country code along with phone number when
@@ -105,8 +103,8 @@ class AccountHolderData < Lithic::Internal::Type::BaseModel
105103

106104
# @!method initialize(phone_number: nil)
107105
# Some parameter documentations has been truncated, see
108-
# {Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo::AccountHolderData}
109-
# for more details.
106+
# {Lithic::Models::TokenMetadata::PaymentAccountInfo::AccountHolderData} for more
107+
# details.
110108
#
111109
# Additional information that can be used to identify the account holder, such as
112110
# name, address, etc
@@ -117,7 +115,7 @@ class AccountHolderData < Lithic::Internal::Type::BaseModel
117115

118116
# Human-readable name of the wallet that the token_requestor_id maps to.
119117
#
120-
# @see Lithic::Models::DigitalWalletTokenMetadata#token_requestor_name
118+
# @see Lithic::Models::TokenMetadata#token_requestor_name
121119
module TokenRequestorName
122120
extend Lithic::Internal::Type::Enum
123121

@@ -127,6 +125,7 @@ module TokenRequestorName
127125
FACEBOOK = :FACEBOOK
128126
FITBIT_PAY = :FITBIT_PAY
129127
GARMIN_PAY = :GARMIN_PAY
128+
GOOGLE_PAY = :GOOGLE_PAY
130129
MICROSOFT_PAY = :MICROSOFT_PAY
131130
NETFLIX = :NETFLIX
132131
SAMSUNG_PAY = :SAMSUNG_PAY

lib/lithic/models/tokenization_approval_request_webhook_event.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseMode
4242
# @return [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::IssuerDecision]
4343
required :issuer_decision, enum: -> { Lithic::TokenizationApprovalRequestWebhookEvent::IssuerDecision }
4444

45+
# @!attribute token_metadata
46+
# Contains the metadata for the digital wallet being tokenized.
47+
#
48+
# @return [Lithic::Models::TokenMetadata]
49+
required :token_metadata, -> { Lithic::TokenMetadata }
50+
4551
# @!attribute tokenization_channel
4652
# The channel through which the tokenization was made.
4753
#
@@ -65,12 +71,6 @@ class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseMode
6571
# @return [Lithic::Models::Device, nil]
6672
optional :device, -> { Lithic::Device }
6773

68-
# @!attribute digital_wallet_token_metadata
69-
# Contains the metadata for the digital wallet being tokenized.
70-
#
71-
# @return [Lithic::Models::DigitalWalletTokenMetadata, nil]
72-
optional :digital_wallet_token_metadata, -> { Lithic::DigitalWalletTokenMetadata }
73-
7474
# @!attribute rule_results
7575
# Results from rules that were evaluated for this tokenization
7676
#
@@ -98,7 +98,7 @@ class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseMode
9898
optional :tokenization_tfa_reasons,
9999
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
100100

101-
# @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, digital_wallet_token_metadata: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
101+
# @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, event_type:, issuer_decision:, token_metadata:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
102102
# Some parameter documentations has been truncated, see
103103
# {Lithic::Models::TokenizationApprovalRequestWebhookEvent} for more details.
104104
#
@@ -114,6 +114,8 @@ class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseMode
114114
#
115115
# @param issuer_decision [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::IssuerDecision] Whether Lithic decisioned on the token, and if so, what the decision was. APPROV
116116
#
117+
# @param token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
118+
#
117119
# @param tokenization_channel [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::TokenizationChannel] The channel through which the tokenization was made.
118120
#
119121
# @param tokenization_token [String] Unique identifier for the digital wallet token attempt
@@ -122,8 +124,6 @@ class TokenizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseMode
122124
#
123125
# @param device [Lithic::Models::Device]
124126
#
125-
# @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
126-
#
127127
# @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
128128
#
129129
# @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined

lib/lithic/models/tokenization_decisioning_request_webhook_event.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ class TokenizationDecisioningRequestWebhookEvent < Lithic::Internal::Type::BaseM
2121
# @return [Time]
2222
required :created, Time
2323

24+
# @!attribute digital_wallet_token_metadata
25+
# Contains the metadata for the digital wallet being tokenized.
26+
#
27+
# @return [Lithic::Models::TokenMetadata]
28+
required :digital_wallet_token_metadata, -> { Lithic::TokenMetadata }
29+
2430
# @!attribute event_type
2531
# The name of this event
2632
#
@@ -57,20 +63,14 @@ class TokenizationDecisioningRequestWebhookEvent < Lithic::Internal::Type::BaseM
5763
# @return [Lithic::Models::Device, nil]
5864
optional :device, -> { Lithic::Device }
5965

60-
# @!attribute digital_wallet_token_metadata
61-
# Contains the metadata for the digital wallet being tokenized.
62-
#
63-
# @return [Lithic::Models::DigitalWalletTokenMetadata, nil]
64-
optional :digital_wallet_token_metadata, -> { Lithic::DigitalWalletTokenMetadata }
65-
6666
# @!attribute tokenization_source
6767
# The source of the tokenization.
6868
#
6969
# @return [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::TokenizationSource, nil]
7070
optional :tokenization_source,
7171
enum: -> { Lithic::TokenizationDecisioningRequestWebhookEvent::TokenizationSource }
7272

73-
# @!method initialize(account_token:, card_token:, created:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, digital_wallet_token_metadata: nil, tokenization_source: nil)
73+
# @!method initialize(account_token:, card_token:, created:, digital_wallet_token_metadata:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, tokenization_source: nil)
7474
# Some parameter documentations has been truncated, see
7575
# {Lithic::Models::TokenizationDecisioningRequestWebhookEvent} for more details.
7676
#
@@ -82,6 +82,8 @@ class TokenizationDecisioningRequestWebhookEvent < Lithic::Internal::Type::BaseM
8282
#
8383
# @param created [Time] Indicate when the request was received from Mastercard or Visa
8484
#
85+
# @param digital_wallet_token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
86+
#
8587
# @param event_type [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::EventType] The name of this event
8688
#
8789
# @param issuer_decision [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::IssuerDecision] Whether Lithic decisioned on the token, and if so, what the decision was. APPROV
@@ -94,8 +96,6 @@ class TokenizationDecisioningRequestWebhookEvent < Lithic::Internal::Type::BaseM
9496
#
9597
# @param device [Lithic::Models::Device]
9698
#
97-
# @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
98-
#
9999
# @param tokenization_source [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::TokenizationSource] The source of the tokenization.
100100

101101
# The name of this event

rbi/lithic/models.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ module Lithic
208208
DigitalWalletTokenizationUpdatedWebhookEvent =
209209
Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent
210210

211-
DigitalWalletTokenMetadata = Lithic::Models::DigitalWalletTokenMetadata
212-
213211
Dispute = Lithic::Models::Dispute
214212

215213
DisputeCreateParams = Lithic::Models::DisputeCreateParams
@@ -563,6 +561,8 @@ module Lithic
563561
TokenizationUpdatedWebhookEvent =
564562
Lithic::Models::TokenizationUpdatedWebhookEvent
565563

564+
TokenMetadata = Lithic::Models::TokenMetadata
565+
566566
Transaction = Lithic::Models::Transaction
567567

568568
TransactionExpireAuthorizationParams =

0 commit comments

Comments
 (0)