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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +1 -1
- data/lib/lithic/internal/transport/base_client.rb +7 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
- data/lib/lithic/internal/type/union.rb +15 -3
- data/lib/lithic/models/account_activity_list_response.rb +48 -1141
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
- data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
- data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
- data/lib/lithic/models/book_transfer_response.rb +51 -48
- data/lib/lithic/models/card_provision_response.rb +25 -3
- data/lib/lithic/models/event.rb +0 -1
- data/lib/lithic/models/event_list_params.rb +0 -1
- data/lib/lithic/models/event_subscription.rb +0 -1
- data/lib/lithic/models/events/subscription_create_params.rb +0 -1
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
- data/lib/lithic/models/events/subscription_update_params.rb +0 -1
- data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
- data/lib/lithic/models/external_payment.rb +21 -23
- data/lib/lithic/models/financial_account.rb +48 -39
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/financial_transaction.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +21 -23
- data/lib/lithic/models/payment.rb +269 -140
- data/lib/lithic/models/payment_create_response.rb +2 -0
- data/lib/lithic/models/payment_retry_response.rb +2 -0
- data/lib/lithic/models/provision_response.rb +30 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
- data/lib/lithic/models/tokenization.rb +1 -0
- data/lib/lithic/models/transaction.rb +4 -0
- data/lib/lithic/models/transfer.rb +1 -0
- data/lib/lithic/models/verification_method.rb +0 -1
- data/lib/lithic/models.rb +2 -0
- data/lib/lithic/resources/account_activity.rb +2 -2
- data/lib/lithic/resources/auth_rules/v2.rb +0 -72
- data/lib/lithic/resources/external_bank_accounts.rb +1 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -2
- data/manifest.yaml +1 -0
- data/rbi/lithic/internal/transport/base_client.rbi +5 -0
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/lithic/internal/type/base_model.rbi +8 -4
- data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
- data/rbi/lithic/models/book_transfer_response.rbi +67 -68
- data/rbi/lithic/models/card_provision_response.rbi +50 -5
- data/rbi/lithic/models/event.rbi +0 -5
- data/rbi/lithic/models/event_list_params.rbi +0 -5
- data/rbi/lithic/models/event_subscription.rbi +0 -5
- data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
- data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
- data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
- data/rbi/lithic/models/external_payment.rbi +34 -39
- data/rbi/lithic/models/financial_account.rbi +74 -73
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +5 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
- data/rbi/lithic/models/payment.rbi +425 -182
- data/rbi/lithic/models/payment_create_response.rbi +1 -0
- data/rbi/lithic/models/payment_retry_response.rbi +1 -0
- data/rbi/lithic/models/provision_response.rbi +58 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
- data/rbi/lithic/models/tokenization.rbi +5 -0
- data/rbi/lithic/models/transaction.rbi +20 -0
- data/rbi/lithic/models/transfer.rbi +5 -0
- data/rbi/lithic/models/verification_method.rbi +0 -1
- data/rbi/lithic/models.rbi +2 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
- data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
- data/sig/lithic/internal/transport/base_client.rbs +2 -0
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
- data/sig/lithic/models/book_transfer_response.rbs +26 -19
- data/sig/lithic/models/card_provision_response.rbs +22 -5
- data/sig/lithic/models/event.rbs +0 -2
- data/sig/lithic/models/event_list_params.rbs +0 -2
- data/sig/lithic/models/event_subscription.rbs +0 -2
- data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
- data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
- data/sig/lithic/models/external_payment.rbs +19 -26
- data/sig/lithic/models/financial_account.rbs +28 -30
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +19 -26
- data/sig/lithic/models/payment.rbs +199 -76
- data/sig/lithic/models/provision_response.rbs +36 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
- data/sig/lithic/models/tokenization.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +8 -0
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/models/verification_method.rbs +1 -7
- data/sig/lithic/models.rbs +2 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
- data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
- metadata +5 -8
- data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
- data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
- data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
- data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
- data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
- data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
|
@@ -6,59 +6,51 @@ module Lithic
|
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias { T.any(Lithic::Payment, Lithic::Internal::AnyHash) }
|
|
8
8
|
|
|
9
|
-
#
|
|
9
|
+
# Unique identifier for the transaction
|
|
10
10
|
sig { returns(String) }
|
|
11
11
|
attr_accessor :token
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# Transaction category
|
|
14
14
|
sig { returns(Lithic::Payment::Category::TaggedSymbol) }
|
|
15
15
|
attr_accessor :category
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# ISO 8601 timestamp of when the transaction was created
|
|
18
18
|
sig { returns(Time) }
|
|
19
19
|
attr_accessor :created
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
sig { returns(String) }
|
|
23
|
-
attr_accessor :currency
|
|
24
|
-
|
|
25
|
-
# A string that provides a description of the payment; may be useful to display to
|
|
26
|
-
# users.
|
|
21
|
+
# Transaction descriptor
|
|
27
22
|
sig { returns(String) }
|
|
28
23
|
attr_accessor :descriptor
|
|
29
24
|
|
|
25
|
+
# Transfer direction
|
|
30
26
|
sig { returns(Lithic::Payment::Direction::TaggedSymbol) }
|
|
31
27
|
attr_accessor :direction
|
|
32
28
|
|
|
33
|
-
#
|
|
29
|
+
# List of transaction events
|
|
34
30
|
sig { returns(T::Array[Lithic::Payment::Event]) }
|
|
35
31
|
attr_accessor :events
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
# PAYMENT - Payment Transaction
|
|
34
|
+
sig { returns(Symbol) }
|
|
35
|
+
attr_accessor :family
|
|
39
36
|
|
|
37
|
+
# Financial account token
|
|
40
38
|
sig { returns(String) }
|
|
41
39
|
attr_accessor :financial_account_token
|
|
42
40
|
|
|
41
|
+
# Transfer method
|
|
43
42
|
sig { returns(Lithic::Payment::Method::TaggedSymbol) }
|
|
44
43
|
attr_accessor :method_
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
sig do
|
|
50
|
-
params(
|
|
51
|
-
method_attributes: Lithic::Payment::MethodAttributes::OrHash
|
|
52
|
-
).void
|
|
53
|
-
end
|
|
54
|
-
attr_writer :method_attributes
|
|
45
|
+
# Method-specific attributes
|
|
46
|
+
sig { returns(Lithic::Payment::MethodAttributes::Variants) }
|
|
47
|
+
attr_accessor :method_attributes
|
|
55
48
|
|
|
56
|
-
# Pending amount
|
|
57
|
-
# value of this field will go to zero over time once the payment is settled.
|
|
49
|
+
# Pending amount in cents
|
|
58
50
|
sig { returns(Integer) }
|
|
59
51
|
attr_accessor :pending_amount
|
|
60
52
|
|
|
61
|
-
#
|
|
53
|
+
# Related account tokens for the transaction
|
|
62
54
|
sig { returns(Lithic::Payment::RelatedAccountTokens) }
|
|
63
55
|
attr_reader :related_account_tokens
|
|
64
56
|
|
|
@@ -69,63 +61,67 @@ module Lithic
|
|
|
69
61
|
end
|
|
70
62
|
attr_writer :related_account_tokens
|
|
71
63
|
|
|
72
|
-
#
|
|
73
|
-
# Lithic or returned.
|
|
64
|
+
# Transaction result
|
|
74
65
|
sig { returns(Lithic::Payment::Result::TaggedSymbol) }
|
|
75
66
|
attr_accessor :result
|
|
76
67
|
|
|
77
|
-
#
|
|
78
|
-
# (e.g., cents).
|
|
68
|
+
# Settled amount in cents
|
|
79
69
|
sig { returns(Integer) }
|
|
80
70
|
attr_accessor :settled_amount
|
|
81
71
|
|
|
72
|
+
# Transaction source
|
|
82
73
|
sig { returns(Lithic::Payment::Source::TaggedSymbol) }
|
|
83
74
|
attr_accessor :source
|
|
84
75
|
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
# - `DECLINED` - The payment was declined.
|
|
88
|
-
# - `PENDING` - The payment is being processed and has yet to settle or release
|
|
89
|
-
# (origination debit).
|
|
90
|
-
# - `RETURNED` - The payment has been returned.
|
|
91
|
-
# - `SETTLED` - The payment is completed.
|
|
76
|
+
# The status of the transaction
|
|
92
77
|
sig { returns(Lithic::Payment::Status::TaggedSymbol) }
|
|
93
78
|
attr_accessor :status
|
|
94
79
|
|
|
95
|
-
#
|
|
80
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
|
96
81
|
sig { returns(Time) }
|
|
97
82
|
attr_accessor :updated
|
|
98
83
|
|
|
84
|
+
# Currency of the transaction in ISO 4217 format
|
|
99
85
|
sig { returns(T.nilable(String)) }
|
|
100
|
-
|
|
86
|
+
attr_reader :currency
|
|
87
|
+
|
|
88
|
+
sig { params(currency: String).void }
|
|
89
|
+
attr_writer :currency
|
|
101
90
|
|
|
102
|
-
#
|
|
91
|
+
# Expected release date for the transaction
|
|
103
92
|
sig { returns(T.nilable(Date)) }
|
|
104
|
-
|
|
93
|
+
attr_accessor :expected_release_date
|
|
105
94
|
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
# External bank account token
|
|
96
|
+
sig { returns(T.nilable(String)) }
|
|
97
|
+
attr_accessor :external_bank_account_token
|
|
108
98
|
|
|
109
|
-
# Payment type indicating the specific ACH message or Fedwire transfer type
|
|
110
99
|
sig { returns(T.nilable(Lithic::Payment::Type::TaggedSymbol)) }
|
|
111
100
|
attr_reader :type
|
|
112
101
|
|
|
113
102
|
sig { params(type: Lithic::Payment::Type::OrSymbol).void }
|
|
114
103
|
attr_writer :type
|
|
115
104
|
|
|
105
|
+
# User-defined identifier
|
|
106
|
+
sig { returns(T.nilable(String)) }
|
|
107
|
+
attr_accessor :user_defined_id
|
|
108
|
+
|
|
109
|
+
# Payment transaction
|
|
116
110
|
sig do
|
|
117
111
|
params(
|
|
118
112
|
token: String,
|
|
119
113
|
category: Lithic::Payment::Category::OrSymbol,
|
|
120
114
|
created: Time,
|
|
121
|
-
currency: String,
|
|
122
115
|
descriptor: String,
|
|
123
116
|
direction: Lithic::Payment::Direction::OrSymbol,
|
|
124
117
|
events: T::Array[Lithic::Payment::Event::OrHash],
|
|
125
|
-
external_bank_account_token: T.nilable(String),
|
|
126
118
|
financial_account_token: String,
|
|
127
119
|
method_: Lithic::Payment::Method::OrSymbol,
|
|
128
|
-
method_attributes:
|
|
120
|
+
method_attributes:
|
|
121
|
+
T.any(
|
|
122
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::OrHash,
|
|
123
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::OrHash
|
|
124
|
+
),
|
|
129
125
|
pending_amount: Integer,
|
|
130
126
|
related_account_tokens: Lithic::Payment::RelatedAccountTokens::OrHash,
|
|
131
127
|
result: Lithic::Payment::Result::OrSymbol,
|
|
@@ -133,57 +129,58 @@ module Lithic
|
|
|
133
129
|
source: Lithic::Payment::Source::OrSymbol,
|
|
134
130
|
status: Lithic::Payment::Status::OrSymbol,
|
|
135
131
|
updated: Time,
|
|
132
|
+
currency: String,
|
|
133
|
+
expected_release_date: T.nilable(Date),
|
|
134
|
+
external_bank_account_token: T.nilable(String),
|
|
135
|
+
type: Lithic::Payment::Type::OrSymbol,
|
|
136
136
|
user_defined_id: T.nilable(String),
|
|
137
|
-
|
|
138
|
-
type: Lithic::Payment::Type::OrSymbol
|
|
137
|
+
family: Symbol
|
|
139
138
|
).returns(T.attached_class)
|
|
140
139
|
end
|
|
141
140
|
def self.new(
|
|
142
|
-
#
|
|
141
|
+
# Unique identifier for the transaction
|
|
143
142
|
token:,
|
|
144
|
-
#
|
|
143
|
+
# Transaction category
|
|
145
144
|
category:,
|
|
146
|
-
#
|
|
145
|
+
# ISO 8601 timestamp of when the transaction was created
|
|
147
146
|
created:,
|
|
148
|
-
#
|
|
149
|
-
currency:,
|
|
150
|
-
# A string that provides a description of the payment; may be useful to display to
|
|
151
|
-
# users.
|
|
147
|
+
# Transaction descriptor
|
|
152
148
|
descriptor:,
|
|
149
|
+
# Transfer direction
|
|
153
150
|
direction:,
|
|
154
|
-
#
|
|
151
|
+
# List of transaction events
|
|
155
152
|
events:,
|
|
156
|
-
|
|
153
|
+
# Financial account token
|
|
157
154
|
financial_account_token:,
|
|
155
|
+
# Transfer method
|
|
158
156
|
method_:,
|
|
157
|
+
# Method-specific attributes
|
|
159
158
|
method_attributes:,
|
|
160
|
-
# Pending amount
|
|
161
|
-
# value of this field will go to zero over time once the payment is settled.
|
|
159
|
+
# Pending amount in cents
|
|
162
160
|
pending_amount:,
|
|
163
|
-
#
|
|
161
|
+
# Related account tokens for the transaction
|
|
164
162
|
related_account_tokens:,
|
|
165
|
-
#
|
|
166
|
-
# Lithic or returned.
|
|
163
|
+
# Transaction result
|
|
167
164
|
result:,
|
|
168
|
-
#
|
|
169
|
-
# (e.g., cents).
|
|
165
|
+
# Settled amount in cents
|
|
170
166
|
settled_amount:,
|
|
167
|
+
# Transaction source
|
|
171
168
|
source:,
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
# - `DECLINED` - The payment was declined.
|
|
175
|
-
# - `PENDING` - The payment is being processed and has yet to settle or release
|
|
176
|
-
# (origination debit).
|
|
177
|
-
# - `RETURNED` - The payment has been returned.
|
|
178
|
-
# - `SETTLED` - The payment is completed.
|
|
169
|
+
# The status of the transaction
|
|
179
170
|
status:,
|
|
180
|
-
#
|
|
171
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
|
181
172
|
updated:,
|
|
182
|
-
|
|
183
|
-
|
|
173
|
+
# Currency of the transaction in ISO 4217 format
|
|
174
|
+
currency: nil,
|
|
175
|
+
# Expected release date for the transaction
|
|
184
176
|
expected_release_date: nil,
|
|
185
|
-
#
|
|
186
|
-
|
|
177
|
+
# External bank account token
|
|
178
|
+
external_bank_account_token: nil,
|
|
179
|
+
type: nil,
|
|
180
|
+
# User-defined identifier
|
|
181
|
+
user_defined_id: nil,
|
|
182
|
+
# PAYMENT - Payment Transaction
|
|
183
|
+
family: :PAYMENT
|
|
187
184
|
)
|
|
188
185
|
end
|
|
189
186
|
|
|
@@ -193,14 +190,13 @@ module Lithic
|
|
|
193
190
|
token: String,
|
|
194
191
|
category: Lithic::Payment::Category::TaggedSymbol,
|
|
195
192
|
created: Time,
|
|
196
|
-
currency: String,
|
|
197
193
|
descriptor: String,
|
|
198
194
|
direction: Lithic::Payment::Direction::TaggedSymbol,
|
|
199
195
|
events: T::Array[Lithic::Payment::Event],
|
|
200
|
-
|
|
196
|
+
family: Symbol,
|
|
201
197
|
financial_account_token: String,
|
|
202
198
|
method_: Lithic::Payment::Method::TaggedSymbol,
|
|
203
|
-
method_attributes: Lithic::Payment::MethodAttributes,
|
|
199
|
+
method_attributes: Lithic::Payment::MethodAttributes::Variants,
|
|
204
200
|
pending_amount: Integer,
|
|
205
201
|
related_account_tokens: Lithic::Payment::RelatedAccountTokens,
|
|
206
202
|
result: Lithic::Payment::Result::TaggedSymbol,
|
|
@@ -208,16 +204,18 @@ module Lithic
|
|
|
208
204
|
source: Lithic::Payment::Source::TaggedSymbol,
|
|
209
205
|
status: Lithic::Payment::Status::TaggedSymbol,
|
|
210
206
|
updated: Time,
|
|
211
|
-
|
|
212
|
-
expected_release_date: Date,
|
|
213
|
-
|
|
207
|
+
currency: String,
|
|
208
|
+
expected_release_date: T.nilable(Date),
|
|
209
|
+
external_bank_account_token: T.nilable(String),
|
|
210
|
+
type: Lithic::Payment::Type::TaggedSymbol,
|
|
211
|
+
user_defined_id: T.nilable(String)
|
|
214
212
|
}
|
|
215
213
|
)
|
|
216
214
|
end
|
|
217
215
|
def to_hash
|
|
218
216
|
end
|
|
219
217
|
|
|
220
|
-
#
|
|
218
|
+
# Transaction category
|
|
221
219
|
module Category
|
|
222
220
|
extend Lithic::Internal::Type::Enum
|
|
223
221
|
|
|
@@ -225,6 +223,38 @@ module Lithic
|
|
|
225
223
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
226
224
|
|
|
227
225
|
ACH = T.let(:ACH, Lithic::Payment::Category::TaggedSymbol)
|
|
226
|
+
BALANCE_OR_FUNDING =
|
|
227
|
+
T.let(:BALANCE_OR_FUNDING, Lithic::Payment::Category::TaggedSymbol)
|
|
228
|
+
FEE = T.let(:FEE, Lithic::Payment::Category::TaggedSymbol)
|
|
229
|
+
REWARD = T.let(:REWARD, Lithic::Payment::Category::TaggedSymbol)
|
|
230
|
+
ADJUSTMENT = T.let(:ADJUSTMENT, Lithic::Payment::Category::TaggedSymbol)
|
|
231
|
+
DERECOGNITION =
|
|
232
|
+
T.let(:DERECOGNITION, Lithic::Payment::Category::TaggedSymbol)
|
|
233
|
+
DISPUTE = T.let(:DISPUTE, Lithic::Payment::Category::TaggedSymbol)
|
|
234
|
+
CARD = T.let(:CARD, Lithic::Payment::Category::TaggedSymbol)
|
|
235
|
+
EXTERNAL_ACH =
|
|
236
|
+
T.let(:EXTERNAL_ACH, Lithic::Payment::Category::TaggedSymbol)
|
|
237
|
+
EXTERNAL_CHECK =
|
|
238
|
+
T.let(:EXTERNAL_CHECK, Lithic::Payment::Category::TaggedSymbol)
|
|
239
|
+
EXTERNAL_TRANSFER =
|
|
240
|
+
T.let(:EXTERNAL_TRANSFER, Lithic::Payment::Category::TaggedSymbol)
|
|
241
|
+
EXTERNAL_WIRE =
|
|
242
|
+
T.let(:EXTERNAL_WIRE, Lithic::Payment::Category::TaggedSymbol)
|
|
243
|
+
MANAGEMENT_ADJUSTMENT =
|
|
244
|
+
T.let(:MANAGEMENT_ADJUSTMENT, Lithic::Payment::Category::TaggedSymbol)
|
|
245
|
+
MANAGEMENT_DISPUTE =
|
|
246
|
+
T.let(:MANAGEMENT_DISPUTE, Lithic::Payment::Category::TaggedSymbol)
|
|
247
|
+
MANAGEMENT_FEE =
|
|
248
|
+
T.let(:MANAGEMENT_FEE, Lithic::Payment::Category::TaggedSymbol)
|
|
249
|
+
MANAGEMENT_REWARD =
|
|
250
|
+
T.let(:MANAGEMENT_REWARD, Lithic::Payment::Category::TaggedSymbol)
|
|
251
|
+
MANAGEMENT_DISBURSEMENT =
|
|
252
|
+
T.let(
|
|
253
|
+
:MANAGEMENT_DISBURSEMENT,
|
|
254
|
+
Lithic::Payment::Category::TaggedSymbol
|
|
255
|
+
)
|
|
256
|
+
PROGRAM_FUNDING =
|
|
257
|
+
T.let(:PROGRAM_FUNDING, Lithic::Payment::Category::TaggedSymbol)
|
|
228
258
|
|
|
229
259
|
sig do
|
|
230
260
|
override.returns(T::Array[Lithic::Payment::Category::TaggedSymbol])
|
|
@@ -233,6 +263,7 @@ module Lithic
|
|
|
233
263
|
end
|
|
234
264
|
end
|
|
235
265
|
|
|
266
|
+
# Transfer direction
|
|
236
267
|
module Direction
|
|
237
268
|
extend Lithic::Internal::Type::Enum
|
|
238
269
|
|
|
@@ -285,14 +316,18 @@ module Lithic
|
|
|
285
316
|
# - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
|
|
286
317
|
# - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
|
|
287
318
|
# available balance.
|
|
288
|
-
# - `
|
|
289
|
-
#
|
|
319
|
+
# - `ACH_ORIGINATION_REJECTED` - ACH origination was rejected and not sent to the
|
|
320
|
+
# Federal Reserve.
|
|
290
321
|
# - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
|
|
291
|
-
# - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
|
|
292
322
|
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
|
293
323
|
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
|
294
324
|
# balance.
|
|
295
|
-
# - `
|
|
325
|
+
# - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
|
|
326
|
+
# - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
|
|
327
|
+
# Financial Institution.
|
|
328
|
+
# - `ACH_RETURN_SETTLED` - ACH return settled by the Receiving Depository
|
|
329
|
+
# Financial Institution.
|
|
330
|
+
# - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
|
|
296
331
|
# Financial Institution.
|
|
297
332
|
sig { returns(Lithic::Payment::Event::Type::TaggedSymbol) }
|
|
298
333
|
attr_accessor :type
|
|
@@ -349,14 +384,18 @@ module Lithic
|
|
|
349
384
|
# - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
|
|
350
385
|
# - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
|
|
351
386
|
# available balance.
|
|
352
|
-
# - `
|
|
353
|
-
#
|
|
387
|
+
# - `ACH_ORIGINATION_REJECTED` - ACH origination was rejected and not sent to the
|
|
388
|
+
# Federal Reserve.
|
|
354
389
|
# - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
|
|
355
|
-
# - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
|
|
356
390
|
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
|
357
391
|
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
|
358
392
|
# balance.
|
|
359
|
-
# - `
|
|
393
|
+
# - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
|
|
394
|
+
# - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
|
|
395
|
+
# Financial Institution.
|
|
396
|
+
# - `ACH_RETURN_SETTLED` - ACH return settled by the Receiving Depository
|
|
397
|
+
# Financial Institution.
|
|
398
|
+
# - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
|
|
360
399
|
# Financial Institution.
|
|
361
400
|
type:,
|
|
362
401
|
# More detailed reasons for the event
|
|
@@ -414,14 +453,18 @@ module Lithic
|
|
|
414
453
|
# - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
|
|
415
454
|
# - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
|
|
416
455
|
# available balance.
|
|
417
|
-
# - `
|
|
418
|
-
#
|
|
456
|
+
# - `ACH_ORIGINATION_REJECTED` - ACH origination was rejected and not sent to the
|
|
457
|
+
# Federal Reserve.
|
|
419
458
|
# - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
|
|
420
|
-
# - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
|
|
421
459
|
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
|
422
460
|
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
|
423
461
|
# balance.
|
|
424
|
-
# - `
|
|
462
|
+
# - `ACH_RETURN_INITIATED` - ACH initiated return for an ACH receipt.
|
|
463
|
+
# - `ACH_RETURN_PROCESSED` - ACH receipt returned by the Receiving Depository
|
|
464
|
+
# Financial Institution.
|
|
465
|
+
# - `ACH_RETURN_SETTLED` - ACH return settled by the Receiving Depository
|
|
466
|
+
# Financial Institution.
|
|
467
|
+
# - `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
|
|
425
468
|
# Financial Institution.
|
|
426
469
|
module Type
|
|
427
470
|
extend Lithic::Internal::Type::Enum
|
|
@@ -445,9 +488,9 @@ module Lithic
|
|
|
445
488
|
:ACH_ORIGINATION_PROCESSED,
|
|
446
489
|
Lithic::Payment::Event::Type::TaggedSymbol
|
|
447
490
|
)
|
|
448
|
-
|
|
491
|
+
ACH_ORIGINATION_REJECTED =
|
|
449
492
|
T.let(
|
|
450
|
-
:
|
|
493
|
+
:ACH_ORIGINATION_REJECTED,
|
|
451
494
|
Lithic::Payment::Event::Type::TaggedSymbol
|
|
452
495
|
)
|
|
453
496
|
ACH_ORIGINATION_RELEASED =
|
|
@@ -460,11 +503,21 @@ module Lithic
|
|
|
460
503
|
:ACH_ORIGINATION_REVIEWED,
|
|
461
504
|
Lithic::Payment::Event::Type::TaggedSymbol
|
|
462
505
|
)
|
|
506
|
+
ACH_ORIGINATION_SETTLED =
|
|
507
|
+
T.let(
|
|
508
|
+
:ACH_ORIGINATION_SETTLED,
|
|
509
|
+
Lithic::Payment::Event::Type::TaggedSymbol
|
|
510
|
+
)
|
|
463
511
|
ACH_RECEIPT_PROCESSED =
|
|
464
512
|
T.let(
|
|
465
513
|
:ACH_RECEIPT_PROCESSED,
|
|
466
514
|
Lithic::Payment::Event::Type::TaggedSymbol
|
|
467
515
|
)
|
|
516
|
+
ACH_RECEIPT_RELEASED =
|
|
517
|
+
T.let(
|
|
518
|
+
:ACH_RECEIPT_RELEASED,
|
|
519
|
+
Lithic::Payment::Event::Type::TaggedSymbol
|
|
520
|
+
)
|
|
468
521
|
ACH_RECEIPT_SETTLED =
|
|
469
522
|
T.let(
|
|
470
523
|
:ACH_RECEIPT_SETTLED,
|
|
@@ -480,6 +533,11 @@ module Lithic
|
|
|
480
533
|
:ACH_RETURN_PROCESSED,
|
|
481
534
|
Lithic::Payment::Event::Type::TaggedSymbol
|
|
482
535
|
)
|
|
536
|
+
ACH_RETURN_REJECTED =
|
|
537
|
+
T.let(
|
|
538
|
+
:ACH_RETURN_REJECTED,
|
|
539
|
+
Lithic::Payment::Event::Type::TaggedSymbol
|
|
540
|
+
)
|
|
483
541
|
ACH_RETURN_SETTLED =
|
|
484
542
|
T.let(
|
|
485
543
|
:ACH_RETURN_SETTLED,
|
|
@@ -545,6 +603,7 @@ module Lithic
|
|
|
545
603
|
end
|
|
546
604
|
end
|
|
547
605
|
|
|
606
|
+
# Transfer method
|
|
548
607
|
module Method
|
|
549
608
|
extend Lithic::Internal::Type::Enum
|
|
550
609
|
|
|
@@ -555,6 +614,7 @@ module Lithic
|
|
|
555
614
|
T.let(:ACH_NEXT_DAY, Lithic::Payment::Method::TaggedSymbol)
|
|
556
615
|
ACH_SAME_DAY =
|
|
557
616
|
T.let(:ACH_SAME_DAY, Lithic::Payment::Method::TaggedSymbol)
|
|
617
|
+
WIRE = T.let(:WIRE, Lithic::Payment::Method::TaggedSymbol)
|
|
558
618
|
|
|
559
619
|
sig do
|
|
560
620
|
override.returns(T::Array[Lithic::Payment::Method::TaggedSymbol])
|
|
@@ -563,107 +623,295 @@ module Lithic
|
|
|
563
623
|
end
|
|
564
624
|
end
|
|
565
625
|
|
|
566
|
-
|
|
567
|
-
|
|
626
|
+
# Method-specific attributes
|
|
627
|
+
module MethodAttributes
|
|
628
|
+
extend Lithic::Internal::Type::Union
|
|
629
|
+
|
|
630
|
+
Variants =
|
|
568
631
|
T.type_alias do
|
|
569
|
-
T.any(
|
|
632
|
+
T.any(
|
|
633
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes,
|
|
634
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes
|
|
635
|
+
)
|
|
570
636
|
end
|
|
571
637
|
|
|
572
|
-
|
|
573
|
-
|
|
638
|
+
class ACHMethodAttributes < Lithic::Internal::Type::BaseModel
|
|
639
|
+
OrHash =
|
|
640
|
+
T.type_alias do
|
|
641
|
+
T.any(
|
|
642
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes,
|
|
643
|
+
Lithic::Internal::AnyHash
|
|
644
|
+
)
|
|
645
|
+
end
|
|
574
646
|
|
|
575
|
-
|
|
576
|
-
|
|
647
|
+
# SEC code for ACH transaction
|
|
648
|
+
sig do
|
|
649
|
+
returns(
|
|
650
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
651
|
+
)
|
|
652
|
+
end
|
|
653
|
+
attr_accessor :sec_code
|
|
577
654
|
|
|
578
|
-
|
|
579
|
-
|
|
655
|
+
# Addenda information
|
|
656
|
+
sig { returns(T.nilable(String)) }
|
|
657
|
+
attr_accessor :addenda
|
|
580
658
|
|
|
581
|
-
|
|
582
|
-
|
|
659
|
+
# Company ID for the ACH transaction
|
|
660
|
+
sig { returns(T.nilable(String)) }
|
|
661
|
+
attr_accessor :company_id
|
|
583
662
|
|
|
584
|
-
|
|
585
|
-
returns(
|
|
586
|
-
|
|
587
|
-
attr_accessor :sec_code
|
|
663
|
+
# Receipt routing number
|
|
664
|
+
sig { returns(T.nilable(String)) }
|
|
665
|
+
attr_accessor :receipt_routing_number
|
|
588
666
|
|
|
589
|
-
|
|
590
|
-
|
|
667
|
+
# Number of retries attempted
|
|
668
|
+
sig { returns(T.nilable(Integer)) }
|
|
669
|
+
attr_accessor :retries
|
|
591
670
|
|
|
592
|
-
|
|
593
|
-
|
|
671
|
+
# Return reason code if the transaction was returned
|
|
672
|
+
sig { returns(T.nilable(String)) }
|
|
673
|
+
attr_accessor :return_reason_code
|
|
594
674
|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
receipt_routing_number: T.nilable(String),
|
|
599
|
-
retries: T.nilable(Integer),
|
|
600
|
-
return_reason_code: T.nilable(String),
|
|
601
|
-
sec_code: Lithic::Payment::MethodAttributes::SecCode::OrSymbol,
|
|
602
|
-
trace_numbers: T::Array[T.nilable(String)],
|
|
603
|
-
addenda: T.nilable(String)
|
|
604
|
-
).returns(T.attached_class)
|
|
605
|
-
end
|
|
606
|
-
def self.new(
|
|
607
|
-
company_id:,
|
|
608
|
-
receipt_routing_number:,
|
|
609
|
-
retries:,
|
|
610
|
-
return_reason_code:,
|
|
611
|
-
sec_code:,
|
|
612
|
-
trace_numbers:,
|
|
613
|
-
addenda: nil
|
|
614
|
-
)
|
|
615
|
-
end
|
|
675
|
+
# Trace numbers for the ACH transaction
|
|
676
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
677
|
+
attr_reader :trace_numbers
|
|
616
678
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
679
|
+
sig { params(trace_numbers: T::Array[String]).void }
|
|
680
|
+
attr_writer :trace_numbers
|
|
681
|
+
|
|
682
|
+
sig do
|
|
683
|
+
params(
|
|
684
|
+
sec_code:
|
|
685
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::OrSymbol,
|
|
686
|
+
addenda: T.nilable(String),
|
|
620
687
|
company_id: T.nilable(String),
|
|
621
688
|
receipt_routing_number: T.nilable(String),
|
|
622
689
|
retries: T.nilable(Integer),
|
|
623
690
|
return_reason_code: T.nilable(String),
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
691
|
+
trace_numbers: T::Array[String]
|
|
692
|
+
).returns(T.attached_class)
|
|
693
|
+
end
|
|
694
|
+
def self.new(
|
|
695
|
+
# SEC code for ACH transaction
|
|
696
|
+
sec_code:,
|
|
697
|
+
# Addenda information
|
|
698
|
+
addenda: nil,
|
|
699
|
+
# Company ID for the ACH transaction
|
|
700
|
+
company_id: nil,
|
|
701
|
+
# Receipt routing number
|
|
702
|
+
receipt_routing_number: nil,
|
|
703
|
+
# Number of retries attempted
|
|
704
|
+
retries: nil,
|
|
705
|
+
# Return reason code if the transaction was returned
|
|
706
|
+
return_reason_code: nil,
|
|
707
|
+
# Trace numbers for the ACH transaction
|
|
708
|
+
trace_numbers: nil
|
|
629
709
|
)
|
|
630
|
-
|
|
631
|
-
def to_hash
|
|
632
|
-
end
|
|
710
|
+
end
|
|
633
711
|
|
|
634
|
-
|
|
635
|
-
|
|
712
|
+
sig do
|
|
713
|
+
override.returns(
|
|
714
|
+
{
|
|
715
|
+
sec_code:
|
|
716
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol,
|
|
717
|
+
addenda: T.nilable(String),
|
|
718
|
+
company_id: T.nilable(String),
|
|
719
|
+
receipt_routing_number: T.nilable(String),
|
|
720
|
+
retries: T.nilable(Integer),
|
|
721
|
+
return_reason_code: T.nilable(String),
|
|
722
|
+
trace_numbers: T::Array[String]
|
|
723
|
+
}
|
|
724
|
+
)
|
|
725
|
+
end
|
|
726
|
+
def to_hash
|
|
727
|
+
end
|
|
636
728
|
|
|
637
|
-
|
|
729
|
+
# SEC code for ACH transaction
|
|
730
|
+
module SecCode
|
|
731
|
+
extend Lithic::Internal::Type::Enum
|
|
732
|
+
|
|
733
|
+
TaggedSymbol =
|
|
734
|
+
T.type_alias do
|
|
735
|
+
T.all(
|
|
736
|
+
Symbol,
|
|
737
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode
|
|
738
|
+
)
|
|
739
|
+
end
|
|
740
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
741
|
+
|
|
742
|
+
CCD =
|
|
743
|
+
T.let(
|
|
744
|
+
:CCD,
|
|
745
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
746
|
+
)
|
|
747
|
+
PPD =
|
|
748
|
+
T.let(
|
|
749
|
+
:PPD,
|
|
750
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
751
|
+
)
|
|
752
|
+
WEB =
|
|
753
|
+
T.let(
|
|
754
|
+
:WEB,
|
|
755
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
756
|
+
)
|
|
757
|
+
TEL =
|
|
758
|
+
T.let(
|
|
759
|
+
:TEL,
|
|
760
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
761
|
+
)
|
|
762
|
+
CIE =
|
|
763
|
+
T.let(
|
|
764
|
+
:CIE,
|
|
765
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
766
|
+
)
|
|
767
|
+
CTX =
|
|
768
|
+
T.let(
|
|
769
|
+
:CTX,
|
|
770
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
771
|
+
)
|
|
772
|
+
|
|
773
|
+
sig do
|
|
774
|
+
override.returns(
|
|
775
|
+
T::Array[
|
|
776
|
+
Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol
|
|
777
|
+
]
|
|
778
|
+
)
|
|
779
|
+
end
|
|
780
|
+
def self.values
|
|
781
|
+
end
|
|
782
|
+
end
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
class WireMethodAttributes < Lithic::Internal::Type::BaseModel
|
|
786
|
+
OrHash =
|
|
638
787
|
T.type_alias do
|
|
639
|
-
T.
|
|
788
|
+
T.any(
|
|
789
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes,
|
|
790
|
+
Lithic::Internal::AnyHash
|
|
791
|
+
)
|
|
640
792
|
end
|
|
641
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
642
793
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
Lithic::Payment::MethodAttributes::
|
|
647
|
-
)
|
|
648
|
-
PPD =
|
|
649
|
-
T.let(
|
|
650
|
-
:PPD,
|
|
651
|
-
Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol
|
|
652
|
-
)
|
|
653
|
-
WEB =
|
|
654
|
-
T.let(
|
|
655
|
-
:WEB,
|
|
656
|
-
Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol
|
|
794
|
+
# Type of wire transfer
|
|
795
|
+
sig do
|
|
796
|
+
returns(
|
|
797
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol
|
|
657
798
|
)
|
|
799
|
+
end
|
|
800
|
+
attr_accessor :wire_network
|
|
801
|
+
|
|
802
|
+
sig { returns(T.nilable(Lithic::WirePartyDetails)) }
|
|
803
|
+
attr_reader :creditor
|
|
804
|
+
|
|
805
|
+
sig { params(creditor: Lithic::WirePartyDetails::OrHash).void }
|
|
806
|
+
attr_writer :creditor
|
|
807
|
+
|
|
808
|
+
sig { returns(T.nilable(Lithic::WirePartyDetails)) }
|
|
809
|
+
attr_reader :debtor
|
|
810
|
+
|
|
811
|
+
sig { params(debtor: Lithic::WirePartyDetails::OrHash).void }
|
|
812
|
+
attr_writer :debtor
|
|
813
|
+
|
|
814
|
+
# Point to point reference identifier, as assigned by the instructing party, used
|
|
815
|
+
# for tracking the message through the Fedwire system
|
|
816
|
+
sig { returns(T.nilable(String)) }
|
|
817
|
+
attr_accessor :message_id
|
|
818
|
+
|
|
819
|
+
# Payment details or invoice reference
|
|
820
|
+
sig { returns(T.nilable(String)) }
|
|
821
|
+
attr_accessor :remittance_information
|
|
822
|
+
|
|
823
|
+
# Type of wire message
|
|
824
|
+
sig { returns(T.nilable(String)) }
|
|
825
|
+
attr_reader :wire_message_type
|
|
826
|
+
|
|
827
|
+
sig { params(wire_message_type: String).void }
|
|
828
|
+
attr_writer :wire_message_type
|
|
829
|
+
|
|
830
|
+
sig do
|
|
831
|
+
params(
|
|
832
|
+
wire_network:
|
|
833
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol,
|
|
834
|
+
creditor: Lithic::WirePartyDetails::OrHash,
|
|
835
|
+
debtor: Lithic::WirePartyDetails::OrHash,
|
|
836
|
+
message_id: T.nilable(String),
|
|
837
|
+
remittance_information: T.nilable(String),
|
|
838
|
+
wire_message_type: String
|
|
839
|
+
).returns(T.attached_class)
|
|
840
|
+
end
|
|
841
|
+
def self.new(
|
|
842
|
+
# Type of wire transfer
|
|
843
|
+
wire_network:,
|
|
844
|
+
creditor: nil,
|
|
845
|
+
debtor: nil,
|
|
846
|
+
# Point to point reference identifier, as assigned by the instructing party, used
|
|
847
|
+
# for tracking the message through the Fedwire system
|
|
848
|
+
message_id: nil,
|
|
849
|
+
# Payment details or invoice reference
|
|
850
|
+
remittance_information: nil,
|
|
851
|
+
# Type of wire message
|
|
852
|
+
wire_message_type: nil
|
|
853
|
+
)
|
|
854
|
+
end
|
|
658
855
|
|
|
659
856
|
sig do
|
|
660
857
|
override.returns(
|
|
661
|
-
|
|
858
|
+
{
|
|
859
|
+
wire_network:
|
|
860
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol,
|
|
861
|
+
creditor: Lithic::WirePartyDetails,
|
|
862
|
+
debtor: Lithic::WirePartyDetails,
|
|
863
|
+
message_id: T.nilable(String),
|
|
864
|
+
remittance_information: T.nilable(String),
|
|
865
|
+
wire_message_type: String
|
|
866
|
+
}
|
|
662
867
|
)
|
|
663
868
|
end
|
|
664
|
-
def
|
|
869
|
+
def to_hash
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
# Type of wire transfer
|
|
873
|
+
module WireNetwork
|
|
874
|
+
extend Lithic::Internal::Type::Enum
|
|
875
|
+
|
|
876
|
+
TaggedSymbol =
|
|
877
|
+
T.type_alias do
|
|
878
|
+
T.all(
|
|
879
|
+
Symbol,
|
|
880
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork
|
|
881
|
+
)
|
|
882
|
+
end
|
|
883
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
884
|
+
|
|
885
|
+
FEDWIRE =
|
|
886
|
+
T.let(
|
|
887
|
+
:FEDWIRE,
|
|
888
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol
|
|
889
|
+
)
|
|
890
|
+
SWIFT =
|
|
891
|
+
T.let(
|
|
892
|
+
:SWIFT,
|
|
893
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
sig do
|
|
897
|
+
override.returns(
|
|
898
|
+
T::Array[
|
|
899
|
+
Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol
|
|
900
|
+
]
|
|
901
|
+
)
|
|
902
|
+
end
|
|
903
|
+
def self.values
|
|
904
|
+
end
|
|
665
905
|
end
|
|
666
906
|
end
|
|
907
|
+
|
|
908
|
+
sig do
|
|
909
|
+
override.returns(
|
|
910
|
+
T::Array[Lithic::Payment::MethodAttributes::Variants]
|
|
911
|
+
)
|
|
912
|
+
end
|
|
913
|
+
def self.variants
|
|
914
|
+
end
|
|
667
915
|
end
|
|
668
916
|
|
|
669
917
|
class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
|
|
@@ -683,7 +931,7 @@ module Lithic
|
|
|
683
931
|
sig { returns(T.nilable(String)) }
|
|
684
932
|
attr_accessor :business_account_token
|
|
685
933
|
|
|
686
|
-
#
|
|
934
|
+
# Related account tokens for the transaction
|
|
687
935
|
sig do
|
|
688
936
|
params(
|
|
689
937
|
account_token: T.nilable(String),
|
|
@@ -710,8 +958,7 @@ module Lithic
|
|
|
710
958
|
end
|
|
711
959
|
end
|
|
712
960
|
|
|
713
|
-
#
|
|
714
|
-
# Lithic or returned.
|
|
961
|
+
# Transaction result
|
|
715
962
|
module Result
|
|
716
963
|
extend Lithic::Internal::Type::Enum
|
|
717
964
|
|
|
@@ -728,14 +975,16 @@ module Lithic
|
|
|
728
975
|
end
|
|
729
976
|
end
|
|
730
977
|
|
|
978
|
+
# Transaction source
|
|
731
979
|
module Source
|
|
732
980
|
extend Lithic::Internal::Type::Enum
|
|
733
981
|
|
|
734
982
|
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Payment::Source) }
|
|
735
983
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
736
984
|
|
|
737
|
-
CUSTOMER = T.let(:CUSTOMER, Lithic::Payment::Source::TaggedSymbol)
|
|
738
985
|
LITHIC = T.let(:LITHIC, Lithic::Payment::Source::TaggedSymbol)
|
|
986
|
+
EXTERNAL = T.let(:EXTERNAL, Lithic::Payment::Source::TaggedSymbol)
|
|
987
|
+
CUSTOMER = T.let(:CUSTOMER, Lithic::Payment::Source::TaggedSymbol)
|
|
739
988
|
|
|
740
989
|
sig do
|
|
741
990
|
override.returns(T::Array[Lithic::Payment::Source::TaggedSymbol])
|
|
@@ -744,23 +993,18 @@ module Lithic
|
|
|
744
993
|
end
|
|
745
994
|
end
|
|
746
995
|
|
|
747
|
-
#
|
|
748
|
-
#
|
|
749
|
-
# - `DECLINED` - The payment was declined.
|
|
750
|
-
# - `PENDING` - The payment is being processed and has yet to settle or release
|
|
751
|
-
# (origination debit).
|
|
752
|
-
# - `RETURNED` - The payment has been returned.
|
|
753
|
-
# - `SETTLED` - The payment is completed.
|
|
996
|
+
# The status of the transaction
|
|
754
997
|
module Status
|
|
755
998
|
extend Lithic::Internal::Type::Enum
|
|
756
999
|
|
|
757
1000
|
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Payment::Status) }
|
|
758
1001
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
759
1002
|
|
|
760
|
-
DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol)
|
|
761
1003
|
PENDING = T.let(:PENDING, Lithic::Payment::Status::TaggedSymbol)
|
|
762
|
-
RETURNED = T.let(:RETURNED, Lithic::Payment::Status::TaggedSymbol)
|
|
763
1004
|
SETTLED = T.let(:SETTLED, Lithic::Payment::Status::TaggedSymbol)
|
|
1005
|
+
DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol)
|
|
1006
|
+
REVERSED = T.let(:REVERSED, Lithic::Payment::Status::TaggedSymbol)
|
|
1007
|
+
CANCELED = T.let(:CANCELED, Lithic::Payment::Status::TaggedSymbol)
|
|
764
1008
|
|
|
765
1009
|
sig do
|
|
766
1010
|
override.returns(T::Array[Lithic::Payment::Status::TaggedSymbol])
|
|
@@ -769,7 +1013,6 @@ module Lithic
|
|
|
769
1013
|
end
|
|
770
1014
|
end
|
|
771
1015
|
|
|
772
|
-
# Payment type indicating the specific ACH message or Fedwire transfer type
|
|
773
1016
|
module Type
|
|
774
1017
|
extend Lithic::Internal::Type::Enum
|
|
775
1018
|
|