lithic 0.1.0.pre.alpha.52 → 0.1.0.pre.alpha.54

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/lithic/internal/type/union.rb +15 -3
  7. data/lib/lithic/models/account_activity_list_response.rb +48 -1141
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
  11. data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
  12. data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
  14. data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
  16. data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
  17. data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
  18. data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
  19. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
  20. data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
  21. data/lib/lithic/models/book_transfer_response.rb +51 -48
  22. data/lib/lithic/models/card_provision_response.rb +25 -3
  23. data/lib/lithic/models/event.rb +0 -1
  24. data/lib/lithic/models/event_list_params.rb +0 -1
  25. data/lib/lithic/models/event_subscription.rb +0 -1
  26. data/lib/lithic/models/events/subscription_create_params.rb +0 -1
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  28. data/lib/lithic/models/events/subscription_update_params.rb +0 -1
  29. data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
  30. data/lib/lithic/models/external_payment.rb +21 -23
  31. data/lib/lithic/models/financial_account.rb +48 -39
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
  33. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  34. data/lib/lithic/models/financial_transaction.rb +1 -0
  35. data/lib/lithic/models/management_operation_transaction.rb +21 -23
  36. data/lib/lithic/models/payment.rb +269 -140
  37. data/lib/lithic/models/payment_create_response.rb +2 -0
  38. data/lib/lithic/models/payment_retry_response.rb +2 -0
  39. data/lib/lithic/models/provision_response.rb +30 -0
  40. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
  41. data/lib/lithic/models/tokenization.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +4 -0
  43. data/lib/lithic/models/transfer.rb +1 -0
  44. data/lib/lithic/models/verification_method.rb +0 -1
  45. data/lib/lithic/models.rb +2 -0
  46. data/lib/lithic/resources/account_activity.rb +2 -2
  47. data/lib/lithic/resources/auth_rules/v2.rb +0 -72
  48. data/lib/lithic/resources/external_bank_accounts.rb +1 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +2 -2
  51. data/manifest.yaml +1 -0
  52. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  53. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  54. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  55. data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
  56. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
  57. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
  58. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
  59. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
  60. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
  61. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
  64. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
  65. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
  66. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
  67. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
  68. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
  69. data/rbi/lithic/models/book_transfer_response.rbi +67 -68
  70. data/rbi/lithic/models/card_provision_response.rbi +50 -5
  71. data/rbi/lithic/models/event.rbi +0 -5
  72. data/rbi/lithic/models/event_list_params.rbi +0 -5
  73. data/rbi/lithic/models/event_subscription.rbi +0 -5
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
  77. data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
  78. data/rbi/lithic/models/external_payment.rbi +34 -39
  79. data/rbi/lithic/models/financial_account.rbi +74 -73
  80. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
  81. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  82. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  83. data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
  84. data/rbi/lithic/models/payment.rbi +425 -182
  85. data/rbi/lithic/models/payment_create_response.rbi +1 -0
  86. data/rbi/lithic/models/payment_retry_response.rbi +1 -0
  87. data/rbi/lithic/models/provision_response.rbi +58 -0
  88. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
  89. data/rbi/lithic/models/tokenization.rbi +5 -0
  90. data/rbi/lithic/models/transaction.rbi +20 -0
  91. data/rbi/lithic/models/transfer.rbi +5 -0
  92. data/rbi/lithic/models/verification_method.rbi +0 -1
  93. data/rbi/lithic/models.rbi +2 -0
  94. data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
  95. data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
  96. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  97. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  98. data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
  100. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
  103. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  104. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
  105. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  106. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
  107. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
  108. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
  109. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
  110. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
  111. data/sig/lithic/models/book_transfer_response.rbs +26 -19
  112. data/sig/lithic/models/card_provision_response.rbs +22 -5
  113. data/sig/lithic/models/event.rbs +0 -2
  114. data/sig/lithic/models/event_list_params.rbs +0 -2
  115. data/sig/lithic/models/event_subscription.rbs +0 -2
  116. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  117. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  118. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  119. data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
  120. data/sig/lithic/models/external_payment.rbs +19 -26
  121. data/sig/lithic/models/financial_account.rbs +28 -30
  122. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
  123. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  124. data/sig/lithic/models/financial_transaction.rbs +2 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +19 -26
  126. data/sig/lithic/models/payment.rbs +199 -76
  127. data/sig/lithic/models/provision_response.rbs +36 -0
  128. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
  129. data/sig/lithic/models/tokenization.rbs +2 -0
  130. data/sig/lithic/models/transaction.rbs +8 -0
  131. data/sig/lithic/models/transfer.rbs +2 -0
  132. data/sig/lithic/models/verification_method.rbs +1 -7
  133. data/sig/lithic/models.rbs +2 -0
  134. data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
  135. data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
  136. metadata +5 -8
  137. data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
  138. data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
  139. data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
  140. data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
  141. data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
  142. data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
@@ -5,8 +5,7 @@ module Lithic
5
5
  # @see Lithic::Resources::BookTransfers#create
6
6
  class BookTransferResponse < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute token
8
- # Customer-provided token that will serve as an idempotency token. This token will
9
- # become the transaction token.
8
+ # Unique identifier for the transaction
10
9
  #
11
10
  # @return [String]
12
11
  required :token, String
@@ -17,39 +16,33 @@ module Lithic
17
16
  required :category, enum: -> { Lithic::BookTransferResponse::Category }
18
17
 
19
18
  # @!attribute created
20
- # Date and time when the transfer occurred. UTC time zone.
19
+ # ISO 8601 timestamp of when the transaction was created
21
20
  #
22
21
  # @return [Time]
23
22
  required :created, Time
24
23
 
25
24
  # @!attribute currency
26
25
  # 3-character alphabetic ISO 4217 code for the settling currency of the
27
- # transaction.
26
+ # transaction
28
27
  #
29
28
  # @return [String]
30
29
  required :currency, String
31
30
 
32
31
  # @!attribute events
33
- # A list of all financial events that have modified this transfer.
32
+ # A list of all financial events that have modified this transfer
34
33
  #
35
34
  # @return [Array<Lithic::Models::BookTransferResponse::Event>]
36
35
  required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event] }
37
36
 
38
- # @!attribute external_id
39
- # External ID defined by the customer
40
- #
41
- # @return [String, nil]
42
- required :external_id, String, nil?: true
43
-
44
- # @!attribute external_resource
45
- # External resource associated with the management operation
37
+ # @!attribute family
38
+ # TRANSFER - Book Transfer Transaction
46
39
  #
47
- # @return [Lithic::Models::ExternalResource, nil]
48
- required :external_resource, -> { Lithic::ExternalResource }, nil?: true
40
+ # @return [Symbol, :TRANSFER]
41
+ required :family, const: :TRANSFER
49
42
 
50
43
  # @!attribute from_financial_account_token
51
44
  # Globally unique identifier for the financial account or card that will send the
52
- # funds. Accepted type dependent on the program's use case.
45
+ # funds. Accepted type dependent on the program's use case
53
46
  #
54
47
  # @return [String]
55
48
  required :from_financial_account_token, String
@@ -71,57 +64,63 @@ module Lithic
71
64
 
72
65
  # @!attribute settled_amount
73
66
  # Amount of the transaction that has been settled in the currency's smallest unit
74
- # (e.g., cents).
67
+ # (e.g., cents)
75
68
  #
76
69
  # @return [Integer]
77
70
  required :settled_amount, Integer
78
71
 
79
72
  # @!attribute status
80
- # Status types:
81
- #
82
- # - `DECLINED` - The transfer was declined.
83
- # - `REVERSED` - The transfer was reversed
84
- # - `SETTLED` - The transfer is completed.
73
+ # The status of the transaction
85
74
  #
86
75
  # @return [Symbol, Lithic::Models::BookTransferResponse::Status]
87
76
  required :status, enum: -> { Lithic::BookTransferResponse::Status }
88
77
 
89
78
  # @!attribute to_financial_account_token
90
79
  # Globally unique identifier for the financial account or card that will receive
91
- # the funds. Accepted type dependent on the program's use case.
80
+ # the funds. Accepted type dependent on the program's use case
92
81
  #
93
82
  # @return [String]
94
83
  required :to_financial_account_token, String
95
84
 
96
- # @!attribute transaction_series
97
- # A series of transactions that are grouped together.
98
- #
99
- # @return [Lithic::Models::BookTransferResponse::TransactionSeries, nil]
100
- required :transaction_series, -> { Lithic::BookTransferResponse::TransactionSeries }, nil?: true
101
-
102
85
  # @!attribute updated
103
- # Date and time when the financial transaction was last updated. UTC time zone.
86
+ # ISO 8601 timestamp of when the transaction was last updated
104
87
  #
105
88
  # @return [Time]
106
89
  required :updated, Time
107
90
 
108
- # @!method initialize(token:, category:, created:, currency:, events:, external_id:, external_resource:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, transaction_series:, updated:)
91
+ # @!attribute external_id
92
+ # External ID defined by the customer
93
+ #
94
+ # @return [String, nil]
95
+ optional :external_id, String, nil?: true
96
+
97
+ # @!attribute external_resource
98
+ # External resource associated with the management operation
99
+ #
100
+ # @return [Lithic::Models::ExternalResource, nil]
101
+ optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
102
+
103
+ # @!attribute transaction_series
104
+ # A series of transactions that are grouped together
105
+ #
106
+ # @return [Lithic::Models::BookTransferResponse::TransactionSeries, nil]
107
+ optional :transaction_series, -> { Lithic::BookTransferResponse::TransactionSeries }, nil?: true
108
+
109
+ # @!method initialize(token:, category:, created:, currency:, events:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, updated:, external_id: nil, external_resource: nil, transaction_series: nil, family: :TRANSFER)
109
110
  # Some parameter documentations has been truncated, see
110
111
  # {Lithic::Models::BookTransferResponse} for more details.
111
112
  #
112
- # @param token [String] Customer-provided token that will serve as an idempotency token. This token will
113
+ # Book transfer transaction
114
+ #
115
+ # @param token [String] Unique identifier for the transaction
113
116
  #
114
117
  # @param category [Symbol, Lithic::Models::BookTransferResponse::Category]
115
118
  #
116
- # @param created [Time] Date and time when the transfer occurred. UTC time zone.
119
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
117
120
  #
118
121
  # @param currency [String] 3-character alphabetic ISO 4217 code for the settling currency of the transactio
119
122
  #
120
- # @param events [Array<Lithic::Models::BookTransferResponse::Event>] A list of all financial events that have modified this transfer.
121
- #
122
- # @param external_id [String, nil] External ID defined by the customer
123
- #
124
- # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
123
+ # @param events [Array<Lithic::Models::BookTransferResponse::Event>] A list of all financial events that have modified this transfer
125
124
  #
126
125
  # @param from_financial_account_token [String] Globally unique identifier for the financial account or card that will send the
127
126
  #
@@ -131,13 +130,19 @@ module Lithic
131
130
  #
132
131
  # @param settled_amount [Integer] Amount of the transaction that has been settled in the currency's smallest unit
133
132
  #
134
- # @param status [Symbol, Lithic::Models::BookTransferResponse::Status] Status types:
133
+ # @param status [Symbol, Lithic::Models::BookTransferResponse::Status] The status of the transaction
135
134
  #
136
135
  # @param to_financial_account_token [String] Globally unique identifier for the financial account or card that will receive t
137
136
  #
138
- # @param transaction_series [Lithic::Models::BookTransferResponse::TransactionSeries, nil] A series of transactions that are grouped together.
137
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
138
+ #
139
+ # @param external_id [String, nil] External ID defined by the customer
140
+ #
141
+ # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
142
+ #
143
+ # @param transaction_series [Lithic::Models::BookTransferResponse::TransactionSeries, nil] A series of transactions that are grouped together
139
144
  #
140
- # @param updated [Time] Date and time when the financial transaction was last updated. UTC time zone.
145
+ # @param family [Symbol, :TRANSFER] TRANSFER - Book Transfer Transaction
141
146
 
142
147
  # @see Lithic::Models::BookTransferResponse#category
143
148
  module Category
@@ -312,19 +317,17 @@ module Lithic
312
317
  # @return [Array<Symbol>]
313
318
  end
314
319
 
315
- # Status types:
316
- #
317
- # - `DECLINED` - The transfer was declined.
318
- # - `REVERSED` - The transfer was reversed
319
- # - `SETTLED` - The transfer is completed.
320
+ # The status of the transaction
320
321
  #
321
322
  # @see Lithic::Models::BookTransferResponse#status
322
323
  module Status
323
324
  extend Lithic::Internal::Type::Enum
324
325
 
326
+ PENDING = :PENDING
327
+ SETTLED = :SETTLED
325
328
  DECLINED = :DECLINED
326
329
  REVERSED = :REVERSED
327
- SETTLED = :SETTLED
330
+ CANCELED = :CANCELED
328
331
 
329
332
  # @!method self.values
330
333
  # @return [Array<Symbol>]
@@ -348,7 +351,7 @@ module Lithic
348
351
  required :type, String
349
352
 
350
353
  # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:)
351
- # A series of transactions that are grouped together.
354
+ # A series of transactions that are grouped together
352
355
  #
353
356
  # @param related_transaction_event_token [String, nil]
354
357
  # @param related_transaction_token [String, nil]
@@ -5,12 +5,34 @@ module Lithic
5
5
  # @see Lithic::Resources::Cards#provision
6
6
  class CardProvisionResponse < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute provisioning_payload
8
+ # Base64 encoded JSON payload representing a payment card that can be passed to a
9
+ # device's digital wallet. Applies to Google and Samsung Pay wallets.
8
10
  #
9
- # @return [String, nil]
10
- optional :provisioning_payload, String
11
+ # @return [String, Lithic::Models::ProvisionResponse, nil]
12
+ optional :provisioning_payload, union: -> { Lithic::Models::CardProvisionResponse::ProvisioningPayload }
11
13
 
12
14
  # @!method initialize(provisioning_payload: nil)
13
- # @param provisioning_payload [String]
15
+ # Some parameter documentations has been truncated, see
16
+ # {Lithic::Models::CardProvisionResponse} for more details.
17
+ #
18
+ # @param provisioning_payload [String, Lithic::Models::ProvisionResponse] Base64 encoded JSON payload representing a payment card that can be passed to a
19
+
20
+ # Base64 encoded JSON payload representing a payment card that can be passed to a
21
+ # device's digital wallet. Applies to Google and Samsung Pay wallets.
22
+ #
23
+ # @see Lithic::Models::CardProvisionResponse#provisioning_payload
24
+ module ProvisioningPayload
25
+ extend Lithic::Internal::Type::Union
26
+
27
+ # Base64 encoded JSON payload representing a payment card that can be passed to a device's digital wallet. Applies to Google and Samsung Pay wallets.
28
+ variant String
29
+
30
+ # Object containing the fields required to add a card to Apple Pay. Applies only to Apple Pay wallet.
31
+ variant -> { Lithic::ProvisionResponse }
32
+
33
+ # @!method self.variants
34
+ # @return [Array(String, Lithic::Models::ProvisionResponse)]
35
+ end
14
36
  end
15
37
  end
16
38
  end
@@ -112,7 +112,6 @@ module Lithic
112
112
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
113
113
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
114
114
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
115
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
116
115
  BALANCE_UPDATED = :"balance.updated"
117
116
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
118
117
  CARD_CREATED = :"card.created"
@@ -79,7 +79,6 @@ module Lithic
79
79
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
80
80
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
81
81
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
82
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
83
82
  BALANCE_UPDATED = :"balance.updated"
84
83
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
85
84
  CARD_CREATED = :"card.created"
@@ -52,7 +52,6 @@ module Lithic
52
52
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
53
53
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
54
54
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
55
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
56
55
  BALANCE_UPDATED = :"balance.updated"
57
56
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
58
57
  CARD_CREATED = :"card.created"
@@ -54,7 +54,6 @@ module Lithic
54
54
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
55
55
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
56
56
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
57
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
58
57
  BALANCE_UPDATED = :"balance.updated"
59
58
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
60
59
  CARD_CREATED = :"card.created"
@@ -26,7 +26,6 @@ module Lithic
26
26
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
27
27
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
28
28
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
29
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
30
29
  BALANCE_UPDATED = :"balance.updated"
31
30
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
32
31
  CARD_CREATED = :"card.created"
@@ -54,7 +54,6 @@ module Lithic
54
54
  ACCOUNT_HOLDER_CREATED = :"account_holder.created"
55
55
  ACCOUNT_HOLDER_UPDATED = :"account_holder.updated"
56
56
  ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification"
57
- AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created"
58
57
  BALANCE_UPDATED = :"balance.updated"
59
58
  BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created"
60
59
  CARD_CREATED = :"card.created"
@@ -112,12 +112,7 @@ module Lithic
112
112
  # @return [Boolean, nil]
113
113
  optional :verification_enforcement, Lithic::Internal::Type::Boolean
114
114
 
115
- # @!attribute processor_token
116
- #
117
- # @return [String]
118
- required :processor_token, String
119
-
120
- # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, processor_token:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {})
115
+ # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {})
121
116
  # Some parameter documentations has been truncated, see
122
117
  # {Lithic::Models::ExternalBankAccountCreateParams} for more details.
123
118
  #
@@ -139,8 +134,6 @@ module Lithic
139
134
  #
140
135
  # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method
141
136
  #
142
- # @param processor_token [String]
143
- #
144
137
  # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte
145
138
  #
146
139
  # @param address [Lithic::Models::ExternalBankAccountAddress] Address
@@ -16,11 +16,6 @@ module Lithic
16
16
  # @return [Time]
17
17
  required :created, Time
18
18
 
19
- # @!attribute family
20
- #
21
- # @return [Symbol, Lithic::Models::ExternalPayment::Family]
22
- required :family, enum: -> { Lithic::ExternalPayment::Family }
23
-
24
19
  # @!attribute status
25
20
  # The status of the transaction
26
21
  #
@@ -48,6 +43,12 @@ module Lithic
48
43
  # @return [Array<Lithic::Models::ExternalPayment::Event>, nil]
49
44
  optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] }
50
45
 
46
+ # @!attribute family
47
+ # EXTERNAL_PAYMENT - External Payment Response
48
+ #
49
+ # @return [Symbol, Lithic::Models::ExternalPayment::Family, nil]
50
+ optional :family, enum: -> { Lithic::ExternalPayment::Family }
51
+
51
52
  # @!attribute financial_account_token
52
53
  #
53
54
  # @return [String, nil]
@@ -78,13 +79,11 @@ module Lithic
78
79
  # @return [String, nil]
79
80
  optional :user_defined_id, String
80
81
 
81
- # @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, events: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil)
82
+ # @!method initialize(token:, created:, status:, updated:, category: nil, currency: nil, events: nil, family: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil)
82
83
  # @param token [String] Unique identifier for the transaction
83
84
  #
84
85
  # @param created [Time] ISO 8601 timestamp of when the transaction was created
85
86
  #
86
- # @param family [Symbol, Lithic::Models::ExternalPayment::Family]
87
- #
88
87
  # @param status [Symbol, Lithic::Models::ExternalPayment::Status] The status of the transaction
89
88
  #
90
89
  # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
@@ -95,6 +94,8 @@ module Lithic
95
94
  #
96
95
  # @param events [Array<Lithic::Models::ExternalPayment::Event>]
97
96
  #
97
+ # @param family [Symbol, Lithic::Models::ExternalPayment::Family] EXTERNAL_PAYMENT - External Payment Response
98
+ #
98
99
  # @param financial_account_token [String]
99
100
  #
100
101
  # @param payment_type [Symbol, Lithic::Models::ExternalPayment::PaymentType]
@@ -107,21 +108,6 @@ module Lithic
107
108
  #
108
109
  # @param user_defined_id [String]
109
110
 
110
- # @see Lithic::Models::ExternalPayment#family
111
- module Family
112
- extend Lithic::Internal::Type::Enum
113
-
114
- CARD = :CARD
115
- PAYMENT = :PAYMENT
116
- TRANSFER = :TRANSFER
117
- INTERNAL = :INTERNAL
118
- EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
119
- MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
120
-
121
- # @!method self.values
122
- # @return [Array<Symbol>]
123
- end
124
-
125
111
  # The status of the transaction
126
112
  #
127
113
  # @see Lithic::Models::ExternalPayment#status
@@ -254,6 +240,18 @@ module Lithic
254
240
  end
255
241
  end
256
242
 
243
+ # EXTERNAL_PAYMENT - External Payment Response
244
+ #
245
+ # @see Lithic::Models::ExternalPayment#family
246
+ module Family
247
+ extend Lithic::Internal::Type::Enum
248
+
249
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
250
+
251
+ # @!method self.values
252
+ # @return [Array<Symbol>]
253
+ end
254
+
257
255
  # @see Lithic::Models::ExternalPayment#payment_type
258
256
  module PaymentType
259
257
  extend Lithic::Internal::Type::Enum
@@ -95,13 +95,11 @@ module Lithic
95
95
 
96
96
  # @see Lithic::Models::FinancialAccount#credit_configuration
97
97
  class CreditConfiguration < Lithic::Internal::Type::BaseModel
98
- # @!attribute charged_off_reason
99
- # Reason for the financial account being marked as Charged Off
98
+ # @!attribute auto_collection_configuration
100
99
  #
101
- # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil]
102
- required :charged_off_reason,
103
- enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason },
104
- nil?: true
100
+ # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration]
101
+ required :auto_collection_configuration,
102
+ -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration }
105
103
 
106
104
  # @!attribute credit_limit
107
105
  #
@@ -119,33 +117,40 @@ module Lithic
119
117
  # @return [String, nil]
120
118
  required :external_bank_account_token, String, nil?: true
121
119
 
120
+ # @!attribute tier
121
+ # Tier assigned to the financial account
122
+ #
123
+ # @return [String, nil]
124
+ required :tier, String, nil?: true
125
+
126
+ # @!attribute charged_off_reason
127
+ # @deprecated
128
+ #
129
+ # Reason for the financial account being marked as Charged Off
130
+ #
131
+ # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil]
132
+ optional :charged_off_reason,
133
+ enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason },
134
+ nil?: true
135
+
122
136
  # @!attribute financial_account_state
137
+ # @deprecated
138
+ #
123
139
  # State of the financial account
124
140
  #
125
141
  # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil]
126
- required :financial_account_state,
142
+ optional :financial_account_state,
127
143
  enum: -> { Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState },
128
144
  nil?: true
129
145
 
130
146
  # @!attribute is_spend_blocked
147
+ # @deprecated
131
148
  #
132
- # @return [Boolean]
133
- required :is_spend_blocked, Lithic::Internal::Type::Boolean
149
+ # @return [Boolean, nil]
150
+ optional :is_spend_blocked, Lithic::Internal::Type::Boolean
134
151
 
135
- # @!attribute tier
136
- # Tier assigned to the financial account
137
- #
138
- # @return [String, nil]
139
- required :tier, String, nil?: true
140
-
141
- # @!attribute auto_collection_configuration
142
- #
143
- # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, nil]
144
- optional :auto_collection_configuration,
145
- -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration }
146
-
147
- # @!method initialize(charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:, auto_collection_configuration: nil)
148
- # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
152
+ # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil)
153
+ # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration]
149
154
  #
150
155
  # @param credit_limit [Integer, nil]
151
156
  #
@@ -153,14 +158,28 @@ module Lithic
153
158
  #
154
159
  # @param external_bank_account_token [String, nil]
155
160
  #
156
- # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account
161
+ # @param tier [String, nil] Tier assigned to the financial account
157
162
  #
158
- # @param is_spend_blocked [Boolean]
163
+ # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
159
164
  #
160
- # @param tier [String, nil] Tier assigned to the financial account
165
+ # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account
161
166
  #
162
- # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration]
167
+ # @param is_spend_blocked [Boolean]
168
+
169
+ # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration
170
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
171
+ # @!attribute auto_collection_enabled
172
+ # If auto collection is enabled for this account
173
+ #
174
+ # @return [Boolean]
175
+ required :auto_collection_enabled, Lithic::Internal::Type::Boolean
176
+
177
+ # @!method initialize(auto_collection_enabled:)
178
+ # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account
179
+ end
163
180
 
181
+ # @deprecated
182
+ #
164
183
  # Reason for the financial account being marked as Charged Off
165
184
  #
166
185
  # @see Lithic::Models::FinancialAccount::CreditConfiguration#charged_off_reason
@@ -174,6 +193,8 @@ module Lithic
174
193
  # @return [Array<Symbol>]
175
194
  end
176
195
 
196
+ # @deprecated
197
+ #
177
198
  # State of the financial account
178
199
  #
179
200
  # @see Lithic::Models::FinancialAccount::CreditConfiguration#financial_account_state
@@ -188,18 +209,6 @@ module Lithic
188
209
  # @!method self.values
189
210
  # @return [Array<Symbol>]
190
211
  end
191
-
192
- # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration
193
- class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
194
- # @!attribute auto_collection_enabled
195
- # If auto collection is enabled for this account
196
- #
197
- # @return [Boolean]
198
- required :auto_collection_enabled, Lithic::Internal::Type::Boolean
199
-
200
- # @!method initialize(auto_collection_enabled:)
201
- # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account
202
- end
203
212
  end
204
213
 
205
214
  # Status of the financial account
@@ -17,14 +17,6 @@ module Lithic
17
17
  required :auto_collection_configuration,
18
18
  -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration }
19
19
 
20
- # @!attribute charged_off_reason
21
- # Reason for the financial account being marked as Charged Off
22
- #
23
- # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil]
24
- required :charged_off_reason,
25
- enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason },
26
- nil?: true
27
-
28
20
  # @!attribute credit_limit
29
21
  #
30
22
  # @return [Integer, nil]
@@ -41,42 +33,55 @@ module Lithic
41
33
  # @return [String, nil]
42
34
  required :external_bank_account_token, String, nil?: true
43
35
 
36
+ # @!attribute tier
37
+ # Tier assigned to the financial account
38
+ #
39
+ # @return [String, nil]
40
+ required :tier, String, nil?: true
41
+
42
+ # @!attribute charged_off_reason
43
+ # @deprecated
44
+ #
45
+ # Reason for the financial account being marked as Charged Off
46
+ #
47
+ # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil]
48
+ optional :charged_off_reason,
49
+ enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason },
50
+ nil?: true
51
+
44
52
  # @!attribute financial_account_state
53
+ # @deprecated
54
+ #
45
55
  # State of the financial account
46
56
  #
47
- # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState]
48
- required :financial_account_state,
57
+ # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, nil]
58
+ optional :financial_account_state,
49
59
  enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState }
50
60
 
51
61
  # @!attribute is_spend_blocked
62
+ # @deprecated
52
63
  #
53
- # @return [Boolean]
54
- required :is_spend_blocked, Lithic::Internal::Type::Boolean
55
-
56
- # @!attribute tier
57
- # Tier assigned to the financial account
58
- #
59
- # @return [String, nil]
60
- required :tier, String, nil?: true
64
+ # @return [Boolean, nil]
65
+ optional :is_spend_blocked, Lithic::Internal::Type::Boolean
61
66
 
62
- # @!method initialize(account_token:, auto_collection_configuration:, charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:)
67
+ # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil)
63
68
  # @param account_token [String] Globally unique identifier for the account
64
69
  #
65
70
  # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration]
66
71
  #
67
- # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
68
- #
69
72
  # @param credit_limit [Integer, nil]
70
73
  #
71
74
  # @param credit_product_token [String, nil] Globally unique identifier for the credit product
72
75
  #
73
76
  # @param external_bank_account_token [String, nil]
74
77
  #
78
+ # @param tier [String, nil] Tier assigned to the financial account
79
+ #
80
+ # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off
81
+ #
75
82
  # @param financial_account_state [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState] State of the financial account
76
83
  #
77
84
  # @param is_spend_blocked [Boolean]
78
- #
79
- # @param tier [String, nil] Tier assigned to the financial account
80
85
 
81
86
  # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#auto_collection_configuration
82
87
  class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
@@ -90,6 +95,8 @@ module Lithic
90
95
  # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account
91
96
  end
92
97
 
98
+ # @deprecated
99
+ #
93
100
  # Reason for the financial account being marked as Charged Off
94
101
  #
95
102
  # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#charged_off_reason
@@ -103,6 +110,8 @@ module Lithic
103
110
  # @return [Array<Symbol>]
104
111
  end
105
112
 
113
+ # @deprecated
114
+ #
106
115
  # State of the financial account
107
116
  #
108
117
  # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#financial_account_state
@@ -160,6 +160,7 @@ module Lithic
160
160
  ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
161
161
  ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
162
162
  ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
163
+ ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
163
164
  ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
164
165
  ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
165
166
  ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
@@ -210,6 +210,7 @@ module Lithic
210
210
  ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
211
211
  ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
212
212
  ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
213
+ ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
213
214
  ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
214
215
  ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
215
216
  ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED