lithic 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_holders/account_holder_entity.rb +183 -0
  5. data/lib/lithic/models/account_holders/entity_create_params.rb +159 -0
  6. data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
  7. data/lib/lithic/models/account_holders/entity_delete_params.rb +22 -0
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
  9. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -0
  10. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -2
  11. data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
  12. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
  13. data/lib/lithic/models/financial_account.rb +1 -0
  14. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  15. data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
  16. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
  17. data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +16 -0
  18. data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +22 -0
  19. data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +40 -0
  20. data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +22 -0
  21. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +44 -0
  22. data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
  23. data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
  24. data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +16 -0
  25. data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
  26. data/lib/lithic/models/financial_accounts/statement.rb +1 -0
  27. data/lib/lithic/models/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
  28. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
  29. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
  30. data/lib/lithic/models.rb +4 -2
  31. data/lib/lithic/resources/account_holders/entities.rb +89 -0
  32. data/lib/lithic/resources/account_holders.rb +4 -0
  33. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +205 -0
  34. data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
  35. data/lib/lithic/resources/financial_accounts.rb +9 -0
  36. data/lib/lithic/version.rb +1 -1
  37. data/lib/lithic.rb +18 -1
  38. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +296 -0
  39. data/rbi/lithic/models/account_holders/entity_create_params.rbi +242 -0
  40. data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
  41. data/rbi/lithic/models/account_holders/entity_delete_params.rbi +43 -0
  42. data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
  43. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +1 -0
  44. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
  45. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
  46. data/rbi/lithic/models/financial_account.rbi +5 -0
  47. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  48. data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
  49. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
  50. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +32 -0
  51. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +43 -0
  52. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +73 -0
  53. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +43 -0
  54. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +70 -0
  55. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
  56. data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
  57. data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +32 -0
  58. data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
  59. data/rbi/lithic/models/financial_accounts/statement.rbi +5 -0
  60. data/rbi/lithic/models/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
  61. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
  62. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
  63. data/rbi/lithic/models.rbi +4 -2
  64. data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
  65. data/rbi/lithic/resources/account_holders.rbi +3 -0
  66. data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
  67. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
  68. data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
  69. data/rbi/lithic/resources/financial_accounts.rbi +10 -0
  70. data/sig/lithic/models/account_holders/account_holder_entity.rbs +137 -0
  71. data/sig/lithic/models/account_holders/entity_create_params.rbs +118 -0
  72. data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
  73. data/sig/lithic/models/account_holders/entity_delete_params.rbs +26 -0
  74. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
  75. data/sig/lithic/models/financial_account.rbs +2 -0
  76. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  77. data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
  78. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
  79. data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +17 -0
  80. data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +26 -0
  81. data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +40 -0
  82. data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +26 -0
  83. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +38 -0
  84. data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
  85. data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
  86. data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +17 -0
  87. data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
  88. data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
  89. data/sig/lithic/models/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
  90. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
  91. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
  92. data/sig/lithic/models.rbs +4 -2
  93. data/sig/lithic/resources/account_holders/entities.rbs +28 -0
  94. data/sig/lithic/resources/account_holders.rbs +2 -0
  95. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +46 -0
  96. data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
  97. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  98. metadata +56 -5
@@ -182,6 +182,7 @@ module Lithic
182
182
  END_USER_REQUEST = :END_USER_REQUEST
183
183
  BANK_REQUEST = :BANK_REQUEST
184
184
  DELINQUENT = :DELINQUENT
185
+ INTEREST_AND_FEES_PAUSED = :INTEREST_AND_FEES_PAUSED
185
186
 
186
187
  # @!method self.values
187
188
  # @return [Array<Symbol>]
@@ -55,6 +55,7 @@ module Lithic
55
55
  END_USER_REQUEST = :END_USER_REQUEST
56
56
  BANK_REQUEST = :BANK_REQUEST
57
57
  CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT
58
+ INTEREST_AND_FEES_PAUSED = :INTEREST_AND_FEES_PAUSED
58
59
 
59
60
  # @!method self.values
60
61
  # @return [Array<Symbol>]
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ class CategoryTier < Lithic::Internal::Type::BaseModel
7
+ # @!attribute cap_rate
8
+ # Maximum interest rate for this category, e.g. '0.0525' for 5.25%
9
+ #
10
+ # @return [String, nil]
11
+ optional :cap_rate, String
12
+
13
+ # @!attribute rate
14
+ # Interest rate for this category, e.g. '0.0525' for 5.25%
15
+ #
16
+ # @return [String, nil]
17
+ optional :rate, String
18
+
19
+ # @!method initialize(cap_rate: nil, rate: nil)
20
+ # Rate and rate cap for interest on a category
21
+ #
22
+ # @param cap_rate [String] Maximum interest rate for this category, e.g. '0.0525' for 5.25%
23
+ #
24
+ # @param rate [String] Interest rate for this category, e.g. '0.0525' for 5.25%
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#create
7
+ class FinancialAccountsInterestTierSchedule < Lithic::Internal::Type::BaseModel
8
+ # @!attribute credit_product_token
9
+ # Globally unique identifier for a credit product
10
+ #
11
+ # @return [String]
12
+ required :credit_product_token, String
13
+
14
+ # @!attribute effective_date
15
+ # Date the tier should be effective in YYYY-MM-DD format
16
+ #
17
+ # @return [Date]
18
+ required :effective_date, Date
19
+
20
+ # @!attribute tier_name
21
+ # Name of a tier contained in the credit product. Mutually exclusive with
22
+ # tier_rates
23
+ #
24
+ # @return [String, nil]
25
+ optional :tier_name, String
26
+
27
+ # @!attribute tier_rates
28
+ # Custom rates per category. Mutually exclusive with tier_name
29
+ #
30
+ # @return [Object, nil]
31
+ optional :tier_rates, Lithic::Internal::Type::Unknown
32
+
33
+ # @!method initialize(credit_product_token:, effective_date:, tier_name: nil, tier_rates: nil)
34
+ # Some parameter documentations has been truncated, see
35
+ # {Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule} for
36
+ # more details.
37
+ #
38
+ # Entry in the Tier Schedule of an account
39
+ #
40
+ # @param credit_product_token [String] Globally unique identifier for a credit product
41
+ #
42
+ # @param effective_date [Date] Date the tier should be effective in YYYY-MM-DD format
43
+ #
44
+ # @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
45
+ #
46
+ # @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#create
7
+ class InterestTierScheduleCreateParams < Lithic::Models::FinancialAccounts::FinancialAccountsInterestTierSchedule
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!method initialize(request_options: {})
12
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#delete
7
+ class InterestTierScheduleDeleteParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute financial_account_token
12
+ #
13
+ # @return [String]
14
+ required :financial_account_token, String
15
+
16
+ # @!method initialize(financial_account_token:, request_options: {})
17
+ # @param financial_account_token [String]
18
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#list
7
+ class InterestTierScheduleListParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute after_date
12
+ # Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
13
+ #
14
+ # @return [Date, nil]
15
+ optional :after_date, Date
16
+
17
+ # @!attribute before_date
18
+ # Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
19
+ #
20
+ # @return [Date, nil]
21
+ optional :before_date, Date
22
+
23
+ # @!attribute for_date
24
+ # Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
25
+ #
26
+ # @return [Date, nil]
27
+ optional :for_date, Date
28
+
29
+ # @!method initialize(after_date: nil, before_date: nil, for_date: nil, request_options: {})
30
+ # @param after_date [Date] Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
31
+ #
32
+ # @param before_date [Date] Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
33
+ #
34
+ # @param for_date [Date] Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
35
+ #
36
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#retrieve
7
+ class InterestTierScheduleRetrieveParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute financial_account_token
12
+ #
13
+ # @return [String]
14
+ required :financial_account_token, String
15
+
16
+ # @!method initialize(financial_account_token:, request_options: {})
17
+ # @param financial_account_token [String]
18
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::InterestTierSchedule#update
7
+ class InterestTierScheduleUpdateParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute financial_account_token
12
+ #
13
+ # @return [String]
14
+ required :financial_account_token, String
15
+
16
+ # @!attribute tier_name
17
+ # Name of a tier contained in the credit product. Mutually exclusive with
18
+ # tier_rates
19
+ #
20
+ # @return [String, nil]
21
+ optional :tier_name, String
22
+
23
+ # @!attribute tier_rates
24
+ # Custom rates per category. Mutually exclusive with tier_name
25
+ #
26
+ # @return [Object, nil]
27
+ optional :tier_rates, Lithic::Internal::Type::Unknown
28
+
29
+ # @!method initialize(financial_account_token:, tier_name: nil, tier_rates: nil, request_options: {})
30
+ # Some parameter documentations has been truncated, see
31
+ # {Lithic::Models::FinancialAccounts::InterestTierScheduleUpdateParams} for more
32
+ # details.
33
+ #
34
+ # @param financial_account_token [String]
35
+ #
36
+ # @param tier_name [String] Name of a tier contained in the credit product. Mutually exclusive with tier_rat
37
+ #
38
+ # @param tier_rates [Object] Custom rates per category. Mutually exclusive with tier_name
39
+ #
40
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
41
+ end
42
+ end
43
+ end
44
+ end
@@ -299,6 +299,7 @@ module Lithic
299
299
  END_USER_REQUEST = :END_USER_REQUEST
300
300
  BANK_REQUEST = :BANK_REQUEST
301
301
  DELINQUENT = :DELINQUENT
302
+ INTEREST_AND_FEES_PAUSED = :INTEREST_AND_FEES_PAUSED
302
303
 
303
304
  # @!method self.values
304
305
  # @return [Array<Symbol>]
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::LoanTapeConfiguration#retrieve
7
+ class FinancialAccountsLoanTapeConfiguration < Lithic::Internal::Type::BaseModel
8
+ # @!attribute created_at
9
+ #
10
+ # @return [Time]
11
+ required :created_at, Time
12
+
13
+ # @!attribute financial_account_token
14
+ #
15
+ # @return [String]
16
+ required :financial_account_token, String
17
+
18
+ # @!attribute instance_token
19
+ #
20
+ # @return [String]
21
+ required :instance_token, String
22
+
23
+ # @!attribute updated_at
24
+ #
25
+ # @return [Time]
26
+ required :updated_at, Time
27
+
28
+ # @!attribute credit_product_token
29
+ #
30
+ # @return [String, nil]
31
+ optional :credit_product_token, String
32
+
33
+ # @!attribute loan_tape_rebuild_configuration
34
+ # Configuration for building loan tapes
35
+ #
36
+ # @return [Lithic::Models::FinancialAccounts::LoanTapeRebuildConfiguration, nil]
37
+ optional :loan_tape_rebuild_configuration, -> { Lithic::FinancialAccounts::LoanTapeRebuildConfiguration }
38
+
39
+ # @!attribute tier_schedule_changed_at
40
+ #
41
+ # @return [Time, nil]
42
+ optional :tier_schedule_changed_at, Time
43
+
44
+ # @!method initialize(created_at:, financial_account_token:, instance_token:, updated_at:, credit_product_token: nil, loan_tape_rebuild_configuration: nil, tier_schedule_changed_at: nil)
45
+ # Configuration for loan tapes
46
+ #
47
+ # @param created_at [Time]
48
+ #
49
+ # @param financial_account_token [String]
50
+ #
51
+ # @param instance_token [String]
52
+ #
53
+ # @param updated_at [Time]
54
+ #
55
+ # @param credit_product_token [String]
56
+ #
57
+ # @param loan_tape_rebuild_configuration [Lithic::Models::FinancialAccounts::LoanTapeRebuildConfiguration] Configuration for building loan tapes
58
+ #
59
+ # @param tier_schedule_changed_at [Time]
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ # @see Lithic::Resources::FinancialAccounts::LoanTapeConfiguration#retrieve
7
+ class LoanTapeConfigurationRetrieveParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!method initialize(request_options: {})
12
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ class LoanTapeRebuildConfiguration < Lithic::Internal::Type::BaseModel
7
+ # @!attribute rebuild_needed
8
+ # Whether the account's loan tapes need to be rebuilt or not
9
+ #
10
+ # @return [Boolean]
11
+ required :rebuild_needed, Lithic::Internal::Type::Boolean
12
+
13
+ # @!attribute last_rebuild
14
+ # The date for which the account's loan tapes were last rebuilt
15
+ #
16
+ # @return [Date, nil]
17
+ optional :last_rebuild, Date
18
+
19
+ # @!attribute rebuild_from
20
+ # Date from which to start rebuilding from if the account requires a rebuild
21
+ #
22
+ # @return [Date, nil]
23
+ optional :rebuild_from, Date
24
+
25
+ # @!method initialize(rebuild_needed:, last_rebuild: nil, rebuild_from: nil)
26
+ # Configuration for building loan tapes
27
+ #
28
+ # @param rebuild_needed [Boolean] Whether the account's loan tapes need to be rebuilt or not
29
+ #
30
+ # @param last_rebuild [Date] The date for which the account's loan tapes were last rebuilt
31
+ #
32
+ # @param rebuild_from [Date] Date from which to start rebuilding from if the account requires a rebuild
33
+ end
34
+ end
35
+ end
36
+ end
@@ -299,6 +299,7 @@ module Lithic
299
299
  END_USER_REQUEST = :END_USER_REQUEST
300
300
  BANK_REQUEST = :BANK_REQUEST
301
301
  DELINQUENT = :DELINQUENT
302
+ INTEREST_AND_FEES_PAUSED = :INTEREST_AND_FEES_PAUSED
302
303
 
303
304
  # @!method self.values
304
305
  # @return [Array<Symbol>]
@@ -2,12 +2,12 @@
2
2
 
3
3
  module Lithic
4
4
  module Models
5
- class DigitalWalletTokenMetadata < Lithic::Internal::Type::BaseModel
5
+ class TokenMetadata < Lithic::Internal::Type::BaseModel
6
6
  # @!attribute payment_account_info
7
7
  # Contains the information of the account responsible for the payment.
8
8
  #
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 }
11
11
 
12
12
  # @!attribute status
13
13
  # The current status of the digital wallet token. Pending or declined.
@@ -31,16 +31,16 @@ module Lithic
31
31
  # @!attribute token_requestor_name
32
32
  # Human-readable name of the wallet that the token_requestor_id maps to.
33
33
  #
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 }
36
36
 
37
37
  # @!method initialize(payment_account_info:, status:, payment_app_instance_id: nil, token_requestor_id: nil, token_requestor_name: nil)
38
38
  # Some parameter documentations has been truncated, see
39
- # {Lithic::Models::DigitalWalletTokenMetadata} for more details.
39
+ # {Lithic::Models::TokenMetadata} for more details.
40
40
  #
41
41
  # Contains the metadata for the digital wallet being tokenized.
42
42
  #
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.
44
44
  #
45
45
  # @param status [String] The current status of the digital wallet token. Pending or declined.
46
46
  #
@@ -48,17 +48,16 @@ module Lithic
48
48
  #
49
49
  # @param token_requestor_id [String] The party that requested the digitization
50
50
  #
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.
52
52
 
53
- # @see Lithic::Models::DigitalWalletTokenMetadata#payment_account_info
53
+ # @see Lithic::Models::TokenMetadata#payment_account_info
54
54
  class PaymentAccountInfo < Lithic::Internal::Type::BaseModel
55
55
  # @!attribute account_holder_data
56
56
  # Additional information that can be used to identify the account holder, such as
57
57
  # name, address, etc
58
58
  #
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 }
62
61
 
63
62
  # @!attribute pan_unique_reference
64
63
  # Reference to the PAN that is unique per Wallet Provider
@@ -81,12 +80,11 @@ module Lithic
81
80
 
82
81
  # @!method initialize(account_holder_data:, pan_unique_reference: nil, payment_account_reference: nil, token_unique_reference: nil)
83
82
  # Some parameter documentations has been truncated, see
84
- # {Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo} for more
85
- # details.
83
+ # {Lithic::Models::TokenMetadata::PaymentAccountInfo} for more details.
86
84
  #
87
85
  # Contains the information of the account responsible for the payment.
88
86
  #
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
90
88
  #
91
89
  # @param pan_unique_reference [String, nil] Reference to the PAN that is unique per Wallet Provider
92
90
  #
@@ -94,7 +92,7 @@ module Lithic
94
92
  #
95
93
  # @param token_unique_reference [String, nil] A unique reference assigned following the allocation of a token used to identify
96
94
 
97
- # @see Lithic::Models::DigitalWalletTokenMetadata::PaymentAccountInfo#account_holder_data
95
+ # @see Lithic::Models::TokenMetadata::PaymentAccountInfo#account_holder_data
98
96
  class AccountHolderData < Lithic::Internal::Type::BaseModel
99
97
  # @!attribute phone_number
100
98
  # The phone number, may contain country code along with phone number when
@@ -105,8 +103,8 @@ module Lithic
105
103
 
106
104
  # @!method initialize(phone_number: nil)
107
105
  # 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.
110
108
  #
111
109
  # Additional information that can be used to identify the account holder, such as
112
110
  # name, address, etc
@@ -117,7 +115,7 @@ module Lithic
117
115
 
118
116
  # Human-readable name of the wallet that the token_requestor_id maps to.
119
117
  #
120
- # @see Lithic::Models::DigitalWalletTokenMetadata#token_requestor_name
118
+ # @see Lithic::Models::TokenMetadata#token_requestor_name
121
119
  module TokenRequestorName
122
120
  extend Lithic::Internal::Type::Enum
123
121
 
@@ -127,6 +125,7 @@ module Lithic
127
125
  FACEBOOK = :FACEBOOK
128
126
  FITBIT_PAY = :FITBIT_PAY
129
127
  GARMIN_PAY = :GARMIN_PAY
128
+ GOOGLE_PAY = :GOOGLE_PAY
130
129
  MICROSOFT_PAY = :MICROSOFT_PAY
131
130
  NETFLIX = :NETFLIX
132
131
  SAMSUNG_PAY = :SAMSUNG_PAY
@@ -42,6 +42,12 @@ module Lithic
42
42
  # @return [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::IssuerDecision]
43
43
  required :issuer_decision, enum: -> { Lithic::TokenizationApprovalRequestWebhookEvent::IssuerDecision }
44
44
 
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
+
45
51
  # @!attribute tokenization_channel
46
52
  # The channel through which the tokenization was made.
47
53
  #
@@ -65,12 +71,6 @@ module Lithic
65
71
  # @return [Lithic::Models::Device, nil]
66
72
  optional :device, -> { Lithic::Device }
67
73
 
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
-
74
74
  # @!attribute rule_results
75
75
  # Results from rules that were evaluated for this tokenization
76
76
  #
@@ -98,7 +98,7 @@ module Lithic
98
98
  optional :tokenization_tfa_reasons,
99
99
  -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
100
100
 
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)
102
102
  # Some parameter documentations has been truncated, see
103
103
  # {Lithic::Models::TokenizationApprovalRequestWebhookEvent} for more details.
104
104
  #
@@ -114,6 +114,8 @@ module Lithic
114
114
  #
115
115
  # @param issuer_decision [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::IssuerDecision] Whether Lithic decisioned on the token, and if so, what the decision was. APPROV
116
116
  #
117
+ # @param token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
118
+ #
117
119
  # @param tokenization_channel [Symbol, Lithic::Models::TokenizationApprovalRequestWebhookEvent::TokenizationChannel] The channel through which the tokenization was made.
118
120
  #
119
121
  # @param tokenization_token [String] Unique identifier for the digital wallet token attempt
@@ -122,8 +124,6 @@ module Lithic
122
124
  #
123
125
  # @param device [Lithic::Models::Device]
124
126
  #
125
- # @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
126
- #
127
127
  # @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
128
128
  #
129
129
  # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined
@@ -21,6 +21,12 @@ module Lithic
21
21
  # @return [Time]
22
22
  required :created, Time
23
23
 
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
+
24
30
  # @!attribute event_type
25
31
  # The name of this event
26
32
  #
@@ -57,12 +63,6 @@ module Lithic
57
63
  # @return [Lithic::Models::Device, nil]
58
64
  optional :device, -> { Lithic::Device }
59
65
 
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
-
66
66
  # @!attribute tokenization_source
67
67
  # The source of the tokenization.
68
68
  #
@@ -70,7 +70,7 @@ module Lithic
70
70
  optional :tokenization_source,
71
71
  enum: -> { Lithic::TokenizationDecisioningRequestWebhookEvent::TokenizationSource }
72
72
 
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)
74
74
  # Some parameter documentations has been truncated, see
75
75
  # {Lithic::Models::TokenizationDecisioningRequestWebhookEvent} for more details.
76
76
  #
@@ -82,6 +82,8 @@ module Lithic
82
82
  #
83
83
  # @param created [Time] Indicate when the request was received from Mastercard or Visa
84
84
  #
85
+ # @param digital_wallet_token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
86
+ #
85
87
  # @param event_type [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::EventType] The name of this event
86
88
  #
87
89
  # @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 @@ module Lithic
94
96
  #
95
97
  # @param device [Lithic::Models::Device]
96
98
  #
97
- # @param digital_wallet_token_metadata [Lithic::Models::DigitalWalletTokenMetadata] Contains the metadata for the digital wallet being tokenized.
98
- #
99
99
  # @param tokenization_source [Symbol, Lithic::Models::TokenizationDecisioningRequestWebhookEvent::TokenizationSource] The source of the tokenization.
100
100
 
101
101
  # The name of this event
data/lib/lithic/models.rb CHANGED
@@ -63,6 +63,8 @@ module Lithic
63
63
 
64
64
  AccountHolderRetrieveParams = Lithic::Models::AccountHolderRetrieveParams
65
65
 
66
+ AccountHolders = Lithic::Models::AccountHolders
67
+
66
68
  AccountHolderSimulateEnrollmentDocumentReviewParams =
67
69
  Lithic::Models::AccountHolderSimulateEnrollmentDocumentReviewParams
68
70
 
@@ -227,8 +229,6 @@ module Lithic
227
229
  DigitalWalletTokenizationUpdatedWebhookEvent =
228
230
  Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent
229
231
 
230
- DigitalWalletTokenMetadata = Lithic::Models::DigitalWalletTokenMetadata
231
-
232
232
  Dispute = Lithic::Models::Dispute
233
233
 
234
234
  DisputeCreateParams = Lithic::Models::DisputeCreateParams
@@ -536,6 +536,8 @@ module Lithic
536
536
 
537
537
  TokenizationUpdatedWebhookEvent = Lithic::Models::TokenizationUpdatedWebhookEvent
538
538
 
539
+ TokenMetadata = Lithic::Models::TokenMetadata
540
+
539
541
  Transaction = Lithic::Models::Transaction
540
542
 
541
543
  TransactionExpireAuthorizationParams = Lithic::Models::TransactionExpireAuthorizationParams