lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.41
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/client.rb +8 -0
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/lithic/internal/type/array_of.rb +1 -0
- data/lib/lithic/internal/type/base_model.rb +3 -1
- data/lib/lithic/internal/type/converter.rb +27 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -0
- data/lib/lithic/internal/type/union.rb +9 -7
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account.rb +88 -1
- data/lib/lithic/models/account_activity_list_params.rb +156 -0
- data/lib/lithic/models/account_activity_list_response.rb +1435 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
- data/lib/lithic/models/account_holder.rb +16 -19
- data/lib/lithic/models/account_holder_create_params.rb +41 -47
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
- data/lib/lithic/models/account_holder_update_params.rb +2 -6
- data/lib/lithic/models/account_holder_update_response.rb +25 -20
- data/lib/lithic/models/account_update_params.rb +86 -1
- data/lib/lithic/models/aggregate_balance.rb +1 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
- data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
- data/lib/lithic/models/balance.rb +1 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- data/lib/lithic/models/book_transfer_create_params.rb +34 -6
- data/lib/lithic/models/book_transfer_response.rb +124 -28
- data/lib/lithic/models/card_create_params.rb +90 -1
- data/lib/lithic/models/card_program.rb +10 -1
- data/lib/lithic/models/card_update_params.rb +98 -1
- data/lib/lithic/models/cards/balance_list_response.rb +1 -0
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/events/subscription_create_params.rb +1 -3
- data/lib/lithic/models/events/subscription_update_params.rb +1 -3
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
- data/lib/lithic/models/external_payment.rb +89 -48
- data/lib/lithic/models/external_resource.rb +34 -0
- data/lib/lithic/models/external_resource_type.rb +18 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
- data/lib/lithic/models/financial_accounts/statement.rb +3 -10
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
- data/lib/lithic/models/financial_transaction.rb +2 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +2 -2
- data/lib/lithic/models/management_operation_create_params.rb +30 -1
- data/lib/lithic/models/management_operation_transaction.rb +100 -52
- data/lib/lithic/models/network_program.rb +41 -0
- data/lib/lithic/models/network_program_list_params.rb +43 -0
- data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
- data/lib/lithic/models/non_pci_card.rb +88 -1
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transaction.rb +31 -20
- data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
- data/lib/lithic/models/transfer.rb +2 -0
- data/lib/lithic/models/wire_party_details.rb +40 -0
- data/lib/lithic/models.rb +16 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/accounts.rb +5 -1
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/cards.rb +12 -2
- data/lib/lithic/resources/management_operations.rb +13 -1
- data/lib/lithic/resources/network_programs.rb +64 -0
- data/lib/lithic/resources/reports/settlement.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +13 -2
- data/rbi/lithic/client.rbi +6 -0
- data/rbi/lithic/errors.rbi +2 -2
- data/rbi/lithic/internal/transport/base_client.rbi +1 -1
- data/rbi/lithic/internal/type/converter.rbi +46 -0
- data/rbi/lithic/internal/type/union.rbi +7 -2
- data/rbi/lithic/models/account.rbi +131 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
- data/rbi/lithic/models/account_holder.rbi +21 -23
- data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
- data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
- data/rbi/lithic/models/account_update_params.rbi +159 -0
- data/rbi/lithic/models/aggregate_balance.rbi +5 -0
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
- data/rbi/lithic/models/balance.rbi +2 -0
- data/rbi/lithic/models/balance_list_params.rbi +5 -0
- data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
- data/rbi/lithic/models/book_transfer_response.rbi +320 -38
- data/rbi/lithic/models/card_create_params.rbi +190 -0
- data/rbi/lithic/models/card_program.rbi +13 -0
- data/rbi/lithic/models/card_update_params.rbi +168 -0
- data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/external_resource.rbi +57 -0
- data/rbi/lithic/models/external_resource_type.rbi +26 -0
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +1 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +2 -2
- data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
- data/rbi/lithic/models/network_program.rbi +61 -0
- data/rbi/lithic/models/network_program_list_params.rbi +72 -0
- data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/non_pci_card.rbi +133 -3
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +2 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
- data/rbi/lithic/models/transaction.rbi +23 -31
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/accounts.rbi +32 -0
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/cards.rbi +70 -0
- data/rbi/lithic/resources/management_operations.rbi +4 -0
- data/rbi/lithic/resources/network_programs.rbi +48 -0
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +4 -0
- data/sig/lithic/internal/transport/base_client.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +17 -0
- data/sig/lithic/internal/type/union.rbs +2 -2
- data/sig/lithic/models/account.rbs +41 -0
- data/sig/lithic/models/account_activity_list_params.rbs +173 -0
- data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
- data/sig/lithic/models/account_holder_create_params.rbs +33 -19
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
- data/sig/lithic/models/account_holder_update_response.rbs +10 -3
- data/sig/lithic/models/account_update_params.rbs +41 -0
- data/sig/lithic/models/aggregate_balance.rbs +2 -1
- data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
- data/sig/lithic/models/balance.rbs +2 -1
- data/sig/lithic/models/balance_list_params.rbs +2 -1
- data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
- data/sig/lithic/models/book_transfer_response.rbs +134 -15
- data/sig/lithic/models/card_create_params.rbs +47 -0
- data/sig/lithic/models/card_program.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +55 -1
- data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/external_resource.rbs +32 -0
- data/sig/lithic/models/external_resource_type.rbs +16 -0
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +2 -1
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_create_params.rbs +20 -0
- data/sig/lithic/models/management_operation_transaction.rbs +98 -42
- data/sig/lithic/models/network_program.rbs +35 -0
- data/sig/lithic/models/network_program_list_params.rbs +38 -0
- data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
- data/sig/lithic/models/non_pci_card.rbs +55 -3
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
- data/sig/lithic/models/transaction.rbs +2 -6
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +16 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/accounts.rbs +2 -0
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/management_operations.rbs +1 -0
- data/sig/lithic/resources/network_programs.rbs +19 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +38 -5
- data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
- data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -3,8 +3,11 @@ module Lithic
|
|
3
3
|
type external_payment =
|
4
4
|
{
|
5
5
|
token: String,
|
6
|
-
category: Lithic::Models::ExternalPayment::category,
|
7
6
|
created: Time,
|
7
|
+
family: Lithic::Models::ExternalPayment::family,
|
8
|
+
status: Lithic::Models::ExternalPayment::status,
|
9
|
+
updated: Time,
|
10
|
+
category: Lithic::Models::ExternalPayment::category,
|
8
11
|
currency: String,
|
9
12
|
events: ::Array[Lithic::ExternalPayment::Event],
|
10
13
|
financial_account_token: String,
|
@@ -12,35 +15,59 @@ module Lithic
|
|
12
15
|
pending_amount: Integer,
|
13
16
|
result: Lithic::Models::ExternalPayment::result,
|
14
17
|
settled_amount: Integer,
|
15
|
-
status: Lithic::Models::ExternalPayment::status,
|
16
|
-
updated: Time,
|
17
18
|
user_defined_id: String
|
18
19
|
}
|
19
20
|
|
20
21
|
class ExternalPayment < Lithic::Internal::Type::BaseModel
|
21
22
|
attr_accessor token: String
|
22
23
|
|
23
|
-
attr_accessor category: Lithic::Models::ExternalPayment::category
|
24
|
-
|
25
24
|
attr_accessor created: Time
|
26
25
|
|
27
|
-
attr_accessor
|
26
|
+
attr_accessor family: Lithic::Models::ExternalPayment::family
|
27
|
+
|
28
|
+
attr_accessor status: Lithic::Models::ExternalPayment::status
|
29
|
+
|
30
|
+
attr_accessor updated: Time
|
28
31
|
|
29
|
-
|
32
|
+
attr_reader category: Lithic::Models::ExternalPayment::category?
|
30
33
|
|
31
|
-
|
34
|
+
def category=: (
|
35
|
+
Lithic::Models::ExternalPayment::category
|
36
|
+
) -> Lithic::Models::ExternalPayment::category
|
32
37
|
|
33
|
-
|
38
|
+
attr_reader currency: String?
|
34
39
|
|
35
|
-
|
40
|
+
def currency=: (String) -> String
|
36
41
|
|
37
|
-
|
42
|
+
attr_reader events: ::Array[Lithic::ExternalPayment::Event]?
|
38
43
|
|
39
|
-
|
44
|
+
def events=: (
|
45
|
+
::Array[Lithic::ExternalPayment::Event]
|
46
|
+
) -> ::Array[Lithic::ExternalPayment::Event]
|
40
47
|
|
41
|
-
|
48
|
+
attr_reader financial_account_token: String?
|
42
49
|
|
43
|
-
|
50
|
+
def financial_account_token=: (String) -> String
|
51
|
+
|
52
|
+
attr_reader payment_type: Lithic::Models::ExternalPayment::payment_type?
|
53
|
+
|
54
|
+
def payment_type=: (
|
55
|
+
Lithic::Models::ExternalPayment::payment_type
|
56
|
+
) -> Lithic::Models::ExternalPayment::payment_type
|
57
|
+
|
58
|
+
attr_reader pending_amount: Integer?
|
59
|
+
|
60
|
+
def pending_amount=: (Integer) -> Integer
|
61
|
+
|
62
|
+
attr_reader result: Lithic::Models::ExternalPayment::result?
|
63
|
+
|
64
|
+
def result=: (
|
65
|
+
Lithic::Models::ExternalPayment::result
|
66
|
+
) -> Lithic::Models::ExternalPayment::result
|
67
|
+
|
68
|
+
attr_reader settled_amount: Integer?
|
69
|
+
|
70
|
+
def settled_amount=: (Integer) -> Integer
|
44
71
|
|
45
72
|
attr_reader user_defined_id: String?
|
46
73
|
|
@@ -48,24 +75,28 @@ module Lithic
|
|
48
75
|
|
49
76
|
def initialize: (
|
50
77
|
token: String,
|
51
|
-
category: Lithic::Models::ExternalPayment::category,
|
52
78
|
created: Time,
|
53
|
-
|
54
|
-
events: ::Array[Lithic::ExternalPayment::Event],
|
55
|
-
financial_account_token: String,
|
56
|
-
payment_type: Lithic::Models::ExternalPayment::payment_type,
|
57
|
-
pending_amount: Integer,
|
58
|
-
result: Lithic::Models::ExternalPayment::result,
|
59
|
-
settled_amount: Integer,
|
79
|
+
family: Lithic::Models::ExternalPayment::family,
|
60
80
|
status: Lithic::Models::ExternalPayment::status,
|
61
81
|
updated: Time,
|
82
|
+
?category: Lithic::Models::ExternalPayment::category,
|
83
|
+
?currency: String,
|
84
|
+
?events: ::Array[Lithic::ExternalPayment::Event],
|
85
|
+
?financial_account_token: String,
|
86
|
+
?payment_type: Lithic::Models::ExternalPayment::payment_type,
|
87
|
+
?pending_amount: Integer,
|
88
|
+
?result: Lithic::Models::ExternalPayment::result,
|
89
|
+
?settled_amount: Integer,
|
62
90
|
?user_defined_id: String
|
63
91
|
) -> void
|
64
92
|
|
65
93
|
def to_hash: -> {
|
66
94
|
token: String,
|
67
|
-
category: Lithic::Models::ExternalPayment::category,
|
68
95
|
created: Time,
|
96
|
+
family: Lithic::Models::ExternalPayment::family,
|
97
|
+
status: Lithic::Models::ExternalPayment::status,
|
98
|
+
updated: Time,
|
99
|
+
category: Lithic::Models::ExternalPayment::category,
|
69
100
|
currency: String,
|
70
101
|
events: ::Array[Lithic::ExternalPayment::Event],
|
71
102
|
financial_account_token: String,
|
@@ -73,11 +104,44 @@ module Lithic
|
|
73
104
|
pending_amount: Integer,
|
74
105
|
result: Lithic::Models::ExternalPayment::result,
|
75
106
|
settled_amount: Integer,
|
76
|
-
status: Lithic::Models::ExternalPayment::status,
|
77
|
-
updated: Time,
|
78
107
|
user_defined_id: String
|
79
108
|
}
|
80
109
|
|
110
|
+
type family =
|
111
|
+
:CARD
|
112
|
+
| :PAYMENT
|
113
|
+
| :TRANSFER
|
114
|
+
| :INTERNAL
|
115
|
+
| :EXTERNAL_PAYMENT
|
116
|
+
| :MANAGEMENT_OPERATION
|
117
|
+
|
118
|
+
module Family
|
119
|
+
extend Lithic::Internal::Type::Enum
|
120
|
+
|
121
|
+
CARD: :CARD
|
122
|
+
PAYMENT: :PAYMENT
|
123
|
+
TRANSFER: :TRANSFER
|
124
|
+
INTERNAL: :INTERNAL
|
125
|
+
EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
|
126
|
+
MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
|
127
|
+
|
128
|
+
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family]
|
129
|
+
end
|
130
|
+
|
131
|
+
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
132
|
+
|
133
|
+
module Status
|
134
|
+
extend Lithic::Internal::Type::Enum
|
135
|
+
|
136
|
+
PENDING: :PENDING
|
137
|
+
SETTLED: :SETTLED
|
138
|
+
DECLINED: :DECLINED
|
139
|
+
REVERSED: :REVERSED
|
140
|
+
CANCELED: :CANCELED
|
141
|
+
|
142
|
+
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::status]
|
143
|
+
end
|
144
|
+
|
81
145
|
type category =
|
82
146
|
:EXTERNAL_WIRE | :EXTERNAL_ACH | :EXTERNAL_CHECK | :EXTERNAL_TRANSFER
|
83
147
|
|
@@ -143,12 +207,13 @@ module Lithic
|
|
143
207
|
type: Lithic::Models::ExternalPayment::Event::type_
|
144
208
|
}
|
145
209
|
|
146
|
-
type detailed_result = :APPROVED
|
210
|
+
type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
|
147
211
|
|
148
212
|
module DetailedResult
|
149
213
|
extend Lithic::Internal::Type::Enum
|
150
214
|
|
151
215
|
APPROVED: :APPROVED
|
216
|
+
INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
|
152
217
|
|
153
218
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::Event::detailed_result]
|
154
219
|
end
|
@@ -235,20 +300,6 @@ module Lithic
|
|
235
300
|
|
236
301
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::result]
|
237
302
|
end
|
238
|
-
|
239
|
-
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
240
|
-
|
241
|
-
module Status
|
242
|
-
extend Lithic::Internal::Type::Enum
|
243
|
-
|
244
|
-
PENDING: :PENDING
|
245
|
-
SETTLED: :SETTLED
|
246
|
-
DECLINED: :DECLINED
|
247
|
-
REVERSED: :REVERSED
|
248
|
-
CANCELED: :CANCELED
|
249
|
-
|
250
|
-
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::status]
|
251
|
-
end
|
252
303
|
end
|
253
304
|
end
|
254
305
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type external_resource =
|
4
|
+
{
|
5
|
+
external_resource_token: String,
|
6
|
+
external_resource_type: Lithic::Models::external_resource_type,
|
7
|
+
external_resource_sub_token: String
|
8
|
+
}
|
9
|
+
|
10
|
+
class ExternalResource < Lithic::Internal::Type::BaseModel
|
11
|
+
attr_accessor external_resource_token: String
|
12
|
+
|
13
|
+
attr_accessor external_resource_type: Lithic::Models::external_resource_type
|
14
|
+
|
15
|
+
attr_reader external_resource_sub_token: String?
|
16
|
+
|
17
|
+
def external_resource_sub_token=: (String) -> String
|
18
|
+
|
19
|
+
def initialize: (
|
20
|
+
external_resource_token: String,
|
21
|
+
external_resource_type: Lithic::Models::external_resource_type,
|
22
|
+
?external_resource_sub_token: String
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
def to_hash: -> {
|
26
|
+
external_resource_token: String,
|
27
|
+
external_resource_type: Lithic::Models::external_resource_type,
|
28
|
+
external_resource_sub_token: String
|
29
|
+
}
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type external_resource_type = :STATEMENT | :COLLECTION | :DISPUTE | :UNKNOWN
|
4
|
+
|
5
|
+
module ExternalResourceType
|
6
|
+
extend Lithic::Internal::Type::Enum
|
7
|
+
|
8
|
+
STATEMENT: :STATEMENT
|
9
|
+
COLLECTION: :COLLECTION
|
10
|
+
DISPUTE: :DISPUTE
|
11
|
+
UNKNOWN: :UNKNOWN
|
12
|
+
|
13
|
+
def self?.values: -> ::Array[Lithic::Models::external_resource_type]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -166,6 +166,7 @@ module Lithic
|
|
166
166
|
| :SECURITY
|
167
167
|
| :PROGRAM_RECEIVABLES
|
168
168
|
| :COLLECTION
|
169
|
+
| :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
169
170
|
|
170
171
|
module Type
|
171
172
|
extend Lithic::Internal::Type::Enum
|
@@ -179,6 +180,7 @@ module Lithic
|
|
179
180
|
SECURITY: :SECURITY
|
180
181
|
PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
|
181
182
|
COLLECTION: :COLLECTION
|
183
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
182
184
|
|
183
185
|
def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
|
184
186
|
end
|
@@ -40,7 +40,7 @@ module Lithic
|
|
40
40
|
request_options: Lithic::RequestOptions
|
41
41
|
}
|
42
42
|
|
43
|
-
type type_ = :ISSUING | :OPERATING | :RESERVE
|
43
|
+
type type_ = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
44
44
|
|
45
45
|
module Type
|
46
46
|
extend Lithic::Internal::Type::Enum
|
@@ -48,6 +48,7 @@ module Lithic
|
|
48
48
|
ISSUING: :ISSUING
|
49
49
|
OPERATING: :OPERATING
|
50
50
|
RESERVE: :RESERVE
|
51
|
+
SECURITY: :SECURITY
|
51
52
|
|
52
53
|
def self?.values: -> ::Array[Lithic::Models::FinancialAccountListParams::type_]
|
53
54
|
end
|
@@ -62,7 +62,7 @@ module Lithic
|
|
62
62
|
updated: Time
|
63
63
|
}
|
64
64
|
|
65
|
-
type type_ = :ISSUING | :OPERATING | :RESERVE
|
65
|
+
type type_ = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
66
66
|
|
67
67
|
module Type
|
68
68
|
extend Lithic::Internal::Type::Enum
|
@@ -70,6 +70,7 @@ module Lithic
|
|
70
70
|
ISSUING: :ISSUING
|
71
71
|
OPERATING: :OPERATING
|
72
72
|
RESERVE: :RESERVE
|
73
|
+
SECURITY: :SECURITY
|
73
74
|
|
74
75
|
def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::BalanceListResponse::type_]
|
75
76
|
end
|
@@ -10,6 +10,7 @@ module Lithic
|
|
10
10
|
| :SECURITY
|
11
11
|
| :PROGRAM_RECEIVABLES
|
12
12
|
| :COLLECTION
|
13
|
+
| :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
13
14
|
|
14
15
|
module InstanceFinancialAccountType
|
15
16
|
extend Lithic::Internal::Type::Enum
|
@@ -23,6 +24,7 @@ module Lithic
|
|
23
24
|
SECURITY: :SECURITY
|
24
25
|
PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
|
25
26
|
COLLECTION: :COLLECTION
|
27
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
26
28
|
|
27
29
|
def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type]
|
28
30
|
end
|
@@ -10,6 +10,7 @@ module Lithic
|
|
10
10
|
financial_account_token: String,
|
11
11
|
token: String,
|
12
12
|
memo: String,
|
13
|
+
on_closed_account: Lithic::Models::ManagementOperationCreateParams::on_closed_account,
|
13
14
|
subtype: String,
|
14
15
|
user_defined_id: String
|
15
16
|
}
|
@@ -39,6 +40,12 @@ module Lithic
|
|
39
40
|
|
40
41
|
def memo=: (String) -> String
|
41
42
|
|
43
|
+
attr_reader on_closed_account: Lithic::Models::ManagementOperationCreateParams::on_closed_account?
|
44
|
+
|
45
|
+
def on_closed_account=: (
|
46
|
+
Lithic::Models::ManagementOperationCreateParams::on_closed_account
|
47
|
+
) -> Lithic::Models::ManagementOperationCreateParams::on_closed_account
|
48
|
+
|
42
49
|
attr_reader subtype: String?
|
43
50
|
|
44
51
|
def subtype=: (String) -> String
|
@@ -56,6 +63,7 @@ module Lithic
|
|
56
63
|
financial_account_token: String,
|
57
64
|
?token: String,
|
58
65
|
?memo: String,
|
66
|
+
?on_closed_account: Lithic::Models::ManagementOperationCreateParams::on_closed_account,
|
59
67
|
?subtype: String,
|
60
68
|
?user_defined_id: String,
|
61
69
|
?request_options: Lithic::request_opts
|
@@ -70,6 +78,7 @@ module Lithic
|
|
70
78
|
financial_account_token: String,
|
71
79
|
token: String,
|
72
80
|
memo: String,
|
81
|
+
on_closed_account: Lithic::Models::ManagementOperationCreateParams::on_closed_account,
|
73
82
|
subtype: String,
|
74
83
|
user_defined_id: String,
|
75
84
|
request_options: Lithic::RequestOptions
|
@@ -151,6 +160,17 @@ module Lithic
|
|
151
160
|
|
152
161
|
def self?.values: -> ::Array[Lithic::Models::ManagementOperationCreateParams::event_type]
|
153
162
|
end
|
163
|
+
|
164
|
+
type on_closed_account = :FAIL | :USE_SUSPENSE
|
165
|
+
|
166
|
+
module OnClosedAccount
|
167
|
+
extend Lithic::Internal::Type::Enum
|
168
|
+
|
169
|
+
FAIL: :FAIL
|
170
|
+
USE_SUSPENSE: :USE_SUSPENSE
|
171
|
+
|
172
|
+
def self?.values: -> ::Array[Lithic::Models::ManagementOperationCreateParams::on_closed_account]
|
173
|
+
end
|
154
174
|
end
|
155
175
|
end
|
156
176
|
end
|
@@ -3,47 +3,77 @@ module Lithic
|
|
3
3
|
type management_operation_transaction =
|
4
4
|
{
|
5
5
|
token: String,
|
6
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
7
6
|
created: Time,
|
7
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
8
|
+
status: Lithic::Models::ManagementOperationTransaction::status,
|
9
|
+
updated: Time,
|
10
|
+
category: Lithic::Models::ManagementOperationTransaction::category,
|
8
11
|
currency: String,
|
9
12
|
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
10
13
|
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
14
|
+
external_resource: Lithic::ExternalResource?,
|
11
15
|
financial_account_token: String,
|
12
16
|
pending_amount: Integer,
|
13
17
|
result: Lithic::Models::ManagementOperationTransaction::result,
|
14
18
|
settled_amount: Integer,
|
15
|
-
status: Lithic::Models::ManagementOperationTransaction::status,
|
16
19
|
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
17
|
-
updated: Time,
|
18
20
|
user_defined_id: String
|
19
21
|
}
|
20
22
|
|
21
23
|
class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
|
22
24
|
attr_accessor token: String
|
23
25
|
|
24
|
-
attr_accessor category: Lithic::Models::ManagementOperationTransaction::category
|
25
|
-
|
26
26
|
attr_accessor created: Time
|
27
27
|
|
28
|
-
attr_accessor
|
28
|
+
attr_accessor family: Lithic::Models::ManagementOperationTransaction::family
|
29
29
|
|
30
|
-
attr_accessor
|
30
|
+
attr_accessor status: Lithic::Models::ManagementOperationTransaction::status
|
31
31
|
|
32
|
-
attr_accessor
|
32
|
+
attr_accessor updated: Time
|
33
33
|
|
34
|
-
|
34
|
+
attr_reader category: Lithic::Models::ManagementOperationTransaction::category?
|
35
35
|
|
36
|
-
|
36
|
+
def category=: (
|
37
|
+
Lithic::Models::ManagementOperationTransaction::category
|
38
|
+
) -> Lithic::Models::ManagementOperationTransaction::category
|
37
39
|
|
38
|
-
|
40
|
+
attr_reader currency: String?
|
39
41
|
|
40
|
-
|
42
|
+
def currency=: (String) -> String
|
41
43
|
|
42
|
-
|
44
|
+
attr_reader direction: Lithic::Models::ManagementOperationTransaction::direction?
|
43
45
|
|
44
|
-
|
46
|
+
def direction=: (
|
47
|
+
Lithic::Models::ManagementOperationTransaction::direction
|
48
|
+
) -> Lithic::Models::ManagementOperationTransaction::direction
|
45
49
|
|
46
|
-
|
50
|
+
attr_reader events: ::Array[Lithic::ManagementOperationTransaction::Event]?
|
51
|
+
|
52
|
+
def events=: (
|
53
|
+
::Array[Lithic::ManagementOperationTransaction::Event]
|
54
|
+
) -> ::Array[Lithic::ManagementOperationTransaction::Event]
|
55
|
+
|
56
|
+
attr_accessor external_resource: Lithic::ExternalResource?
|
57
|
+
|
58
|
+
attr_reader financial_account_token: String?
|
59
|
+
|
60
|
+
def financial_account_token=: (String) -> String
|
61
|
+
|
62
|
+
attr_reader pending_amount: Integer?
|
63
|
+
|
64
|
+
def pending_amount=: (Integer) -> Integer
|
65
|
+
|
66
|
+
attr_reader result: Lithic::Models::ManagementOperationTransaction::result?
|
67
|
+
|
68
|
+
def result=: (
|
69
|
+
Lithic::Models::ManagementOperationTransaction::result
|
70
|
+
) -> Lithic::Models::ManagementOperationTransaction::result
|
71
|
+
|
72
|
+
attr_reader settled_amount: Integer?
|
73
|
+
|
74
|
+
def settled_amount=: (Integer) -> Integer
|
75
|
+
|
76
|
+
attr_accessor transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?
|
47
77
|
|
48
78
|
attr_reader user_defined_id: String?
|
49
79
|
|
@@ -51,38 +81,77 @@ module Lithic
|
|
51
81
|
|
52
82
|
def initialize: (
|
53
83
|
token: String,
|
54
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
55
84
|
created: Time,
|
56
|
-
|
57
|
-
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
58
|
-
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
59
|
-
financial_account_token: String,
|
60
|
-
pending_amount: Integer,
|
61
|
-
result: Lithic::Models::ManagementOperationTransaction::result,
|
62
|
-
settled_amount: Integer,
|
85
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
63
86
|
status: Lithic::Models::ManagementOperationTransaction::status,
|
64
|
-
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
65
87
|
updated: Time,
|
88
|
+
?category: Lithic::Models::ManagementOperationTransaction::category,
|
89
|
+
?currency: String,
|
90
|
+
?direction: Lithic::Models::ManagementOperationTransaction::direction,
|
91
|
+
?events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
92
|
+
?external_resource: Lithic::ExternalResource?,
|
93
|
+
?financial_account_token: String,
|
94
|
+
?pending_amount: Integer,
|
95
|
+
?result: Lithic::Models::ManagementOperationTransaction::result,
|
96
|
+
?settled_amount: Integer,
|
97
|
+
?transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
66
98
|
?user_defined_id: String
|
67
99
|
) -> void
|
68
100
|
|
69
101
|
def to_hash: -> {
|
70
102
|
token: String,
|
71
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
72
103
|
created: Time,
|
104
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
105
|
+
status: Lithic::Models::ManagementOperationTransaction::status,
|
106
|
+
updated: Time,
|
107
|
+
category: Lithic::Models::ManagementOperationTransaction::category,
|
73
108
|
currency: String,
|
74
109
|
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
75
110
|
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
111
|
+
external_resource: Lithic::ExternalResource?,
|
76
112
|
financial_account_token: String,
|
77
113
|
pending_amount: Integer,
|
78
114
|
result: Lithic::Models::ManagementOperationTransaction::result,
|
79
115
|
settled_amount: Integer,
|
80
|
-
status: Lithic::Models::ManagementOperationTransaction::status,
|
81
116
|
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
82
|
-
updated: Time,
|
83
117
|
user_defined_id: String
|
84
118
|
}
|
85
119
|
|
120
|
+
type family =
|
121
|
+
:CARD
|
122
|
+
| :PAYMENT
|
123
|
+
| :TRANSFER
|
124
|
+
| :INTERNAL
|
125
|
+
| :EXTERNAL_PAYMENT
|
126
|
+
| :MANAGEMENT_OPERATION
|
127
|
+
|
128
|
+
module Family
|
129
|
+
extend Lithic::Internal::Type::Enum
|
130
|
+
|
131
|
+
CARD: :CARD
|
132
|
+
PAYMENT: :PAYMENT
|
133
|
+
TRANSFER: :TRANSFER
|
134
|
+
INTERNAL: :INTERNAL
|
135
|
+
EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
|
136
|
+
MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
|
137
|
+
|
138
|
+
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family]
|
139
|
+
end
|
140
|
+
|
141
|
+
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
142
|
+
|
143
|
+
module Status
|
144
|
+
extend Lithic::Internal::Type::Enum
|
145
|
+
|
146
|
+
PENDING: :PENDING
|
147
|
+
SETTLED: :SETTLED
|
148
|
+
DECLINED: :DECLINED
|
149
|
+
REVERSED: :REVERSED
|
150
|
+
CANCELED: :CANCELED
|
151
|
+
|
152
|
+
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::status]
|
153
|
+
end
|
154
|
+
|
86
155
|
type category =
|
87
156
|
:MANAGEMENT_FEE
|
88
157
|
| :MANAGEMENT_DISPUTE
|
@@ -171,12 +240,13 @@ module Lithic
|
|
171
240
|
subtype: String
|
172
241
|
}
|
173
242
|
|
174
|
-
type detailed_result = :APPROVED
|
243
|
+
type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
|
175
244
|
|
176
245
|
module DetailedResult
|
177
246
|
extend Lithic::Internal::Type::Enum
|
178
247
|
|
179
248
|
APPROVED: :APPROVED
|
249
|
+
INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
|
180
250
|
|
181
251
|
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::Event::detailed_result]
|
182
252
|
end
|
@@ -251,20 +321,6 @@ module Lithic
|
|
251
321
|
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::result]
|
252
322
|
end
|
253
323
|
|
254
|
-
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
255
|
-
|
256
|
-
module Status
|
257
|
-
extend Lithic::Internal::Type::Enum
|
258
|
-
|
259
|
-
PENDING: :PENDING
|
260
|
-
SETTLED: :SETTLED
|
261
|
-
DECLINED: :DECLINED
|
262
|
-
REVERSED: :REVERSED
|
263
|
-
CANCELED: :CANCELED
|
264
|
-
|
265
|
-
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::status]
|
266
|
-
end
|
267
|
-
|
268
324
|
type transaction_series =
|
269
325
|
{
|
270
326
|
related_transaction_event_token: String?,
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type network_program =
|
4
|
+
{
|
5
|
+
token: String,
|
6
|
+
default_product_code: String,
|
7
|
+
name: String,
|
8
|
+
registered_program_identification_number: String
|
9
|
+
}
|
10
|
+
|
11
|
+
class NetworkProgram < Lithic::Internal::Type::BaseModel
|
12
|
+
attr_accessor token: String
|
13
|
+
|
14
|
+
attr_accessor default_product_code: String
|
15
|
+
|
16
|
+
attr_accessor name: String
|
17
|
+
|
18
|
+
attr_accessor registered_program_identification_number: String
|
19
|
+
|
20
|
+
def initialize: (
|
21
|
+
token: String,
|
22
|
+
default_product_code: String,
|
23
|
+
name: String,
|
24
|
+
registered_program_identification_number: String
|
25
|
+
) -> void
|
26
|
+
|
27
|
+
def to_hash: -> {
|
28
|
+
token: String,
|
29
|
+
default_product_code: String,
|
30
|
+
name: String,
|
31
|
+
registered_program_identification_number: String
|
32
|
+
}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type network_program_list_params =
|
4
|
+
{ begin_: Time, end_: Time, page_size: Integer }
|
5
|
+
& Lithic::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class NetworkProgramListParams < Lithic::Internal::Type::BaseModel
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_reader begin_: Time?
|
12
|
+
|
13
|
+
def begin_=: (Time) -> Time
|
14
|
+
|
15
|
+
attr_reader end_: Time?
|
16
|
+
|
17
|
+
def end_=: (Time) -> Time
|
18
|
+
|
19
|
+
attr_reader page_size: Integer?
|
20
|
+
|
21
|
+
def page_size=: (Integer) -> Integer
|
22
|
+
|
23
|
+
def initialize: (
|
24
|
+
?begin_: Time,
|
25
|
+
?end_: Time,
|
26
|
+
?page_size: Integer,
|
27
|
+
?request_options: Lithic::request_opts
|
28
|
+
) -> void
|
29
|
+
|
30
|
+
def to_hash: -> {
|
31
|
+
begin_: Time,
|
32
|
+
end_: Time,
|
33
|
+
page_size: Integer,
|
34
|
+
request_options: Lithic::RequestOptions
|
35
|
+
}
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type network_program_retrieve_params =
|
4
|
+
{ } & Lithic::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
def initialize: (?request_options: Lithic::request_opts) -> void
|
11
|
+
|
12
|
+
def to_hash: -> { request_options: Lithic::RequestOptions }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|