lithic 0.1.0.pre.alpha.56 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -0
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +2 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +208 -49
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_operation.rb +5 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +19 -2
- data/lib/lithic/models/auth_rules/conditional_value.rb +4 -1
- data/lib/lithic/models/auth_rules/event_stream.rb +21 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +3 -17
- data/lib/lithic/models/auth_rules/v2_list_params.rb +16 -19
- data/lib/lithic/models/card_bulk_order.rb +106 -0
- data/lib/lithic/models/card_bulk_order_create_params.rb +52 -0
- data/lib/lithic/models/card_bulk_order_list_params.rb +61 -0
- data/lib/lithic/models/card_bulk_order_retrieve_params.rb +14 -0
- data/lib/lithic/models/card_bulk_order_update_params.rb +32 -0
- data/lib/lithic/models/card_convert_physical_params.rb +3 -0
- data/lib/lithic/models/card_create_params.rb +14 -1
- data/lib/lithic/models/card_program.rb +10 -10
- data/lib/lithic/models/card_reissue_params.rb +3 -0
- data/lib/lithic/models/card_renew_params.rb +3 -0
- data/lib/lithic/models/card_web_provision_params.rb +32 -1
- data/lib/lithic/models/card_web_provision_response.rb +98 -60
- data/lib/lithic/models/cardholder_authentication.rb +132 -0
- data/lib/lithic/models/device.rb +37 -0
- data/lib/lithic/models/digital_wallet_token_metadata.rb +141 -0
- data/lib/lithic/models/{external_bank_account_unpause_response.rb → external_bank_account.rb} +15 -16
- data/lib/lithic/models/external_payment.rb +12 -0
- data/lib/lithic/models/external_payment_create_params.rb +2 -0
- data/lib/lithic/models/external_payment_list_params.rb +2 -0
- data/lib/lithic/models/financial_account_balance.rb +112 -0
- data/lib/lithic/models/financial_accounts/statement.rb +9 -9
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -0
- data/lib/lithic/models/financial_event.rb +16 -0
- data/lib/lithic/models/{funding_event_retrieve_response.rb → funding_event.rb} +9 -10
- data/lib/lithic/models/internal_transaction.rb +166 -0
- data/lib/lithic/models/management_operation_create_params.rb +6 -0
- data/lib/lithic/models/management_operation_transaction.rb +6 -0
- data/lib/lithic/models/network_total.rb +169 -0
- data/lib/lithic/models/non_pci_card.rb +10 -1
- data/lib/lithic/models/payment.rb +11 -1
- data/lib/lithic/models/payment_create_params.rb +10 -1
- data/lib/lithic/models/three_ds_authentication.rb +1259 -0
- data/lib/lithic/models/token_info.rb +42 -0
- data/lib/lithic/models/tokenization.rb +9 -111
- data/lib/lithic/models/tokenization_decline_reason.rb +27 -0
- data/lib/lithic/models/tokenization_rule_result.rb +61 -0
- data/lib/lithic/models/tokenization_tfa_reason.rb +29 -0
- data/lib/lithic/models/transaction.rb +6 -174
- data/lib/lithic/models/wallet_decisioning_info.rb +44 -0
- data/lib/lithic/models.rb +38 -0
- data/lib/lithic/resources/auth_rules/v2.rb +17 -15
- data/lib/lithic/resources/card_bulk_orders.rb +127 -0
- data/lib/lithic/resources/cards/balances.rb +2 -2
- data/lib/lithic/resources/cards.rb +14 -3
- data/lib/lithic/resources/external_bank_accounts.rb +4 -4
- data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
- data/lib/lithic/resources/funding_events.rb +4 -4
- data/lib/lithic/resources/internal_transaction.rb +14 -0
- data/lib/lithic/resources/reports/settlement/network_totals.rb +4 -4
- data/lib/lithic/resources/three_ds/authentication.rb +2 -2
- data/lib/lithic/resources/tokenizations.rb +4 -4
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +23 -17
- data/manifest.yaml +1 -0
- data/rbi/lithic/client.rbi +6 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +339 -80
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +25 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +29 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +2 -1
- data/rbi/lithic/models/auth_rules/event_stream.rbi +44 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +4 -60
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +27 -59
- data/rbi/lithic/models/card_bulk_order.rbi +141 -0
- data/rbi/lithic/models/card_bulk_order_create_params.rbi +92 -0
- data/rbi/lithic/models/card_bulk_order_list_params.rbi +98 -0
- data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/card_bulk_order_update_params.rbi +68 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +8 -0
- data/rbi/lithic/models/card_create_params.rbi +23 -0
- data/rbi/lithic/models/card_program.rbi +10 -13
- data/rbi/lithic/models/card_reissue_params.rbi +8 -0
- data/rbi/lithic/models/card_renew_params.rbi +8 -0
- data/rbi/lithic/models/card_web_provision_params.rbi +44 -0
- data/rbi/lithic/models/card_web_provision_response.rbi +182 -102
- data/rbi/lithic/models/cardholder_authentication.rbi +296 -0
- data/rbi/lithic/models/device.rbi +54 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +290 -0
- data/rbi/lithic/models/{external_bank_account_unpause_response.rbi → external_bank_account.rbi} +26 -75
- data/rbi/lithic/models/external_payment.rbi +57 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +10 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +10 -0
- data/rbi/lithic/models/financial_account_balance.rbi +144 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +9 -9
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +90 -0
- data/rbi/lithic/models/financial_event.rbi +60 -0
- data/rbi/lithic/models/{funding_event_list_response.rbi → funding_event.rbi} +13 -35
- data/rbi/lithic/models/internal_transaction.rbi +277 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +30 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +30 -0
- data/rbi/lithic/models/network_total.rbi +226 -0
- data/rbi/lithic/models/non_pci_card.rbi +10 -0
- data/rbi/lithic/models/payment.rbi +12 -0
- data/rbi/lithic/models/payment_create_params.rbi +15 -1
- data/rbi/lithic/models/three_ds_authentication.rbi +2432 -0
- data/rbi/lithic/models/token_info.rbi +70 -0
- data/rbi/lithic/models/tokenization.rbi +12 -335
- data/rbi/lithic/models/tokenization_decline_reason.rbi +73 -0
- data/rbi/lithic/models/tokenization_rule_result.rbi +96 -0
- data/rbi/lithic/models/tokenization_tfa_reason.rbi +74 -0
- data/rbi/lithic/models/transaction.rbi +8 -410
- data/rbi/lithic/models/wallet_decisioning_info.rbi +63 -0
- data/rbi/lithic/models.rbi +38 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +15 -15
- data/rbi/lithic/resources/card_bulk_orders.rbi +101 -0
- data/rbi/lithic/resources/cards/balances.rbi +1 -3
- data/rbi/lithic/resources/cards.rbi +22 -1
- data/rbi/lithic/resources/external_bank_accounts.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/balances.rbi +1 -3
- data/rbi/lithic/resources/funding_events.rbi +2 -4
- data/rbi/lithic/resources/internal_transaction.rbi +12 -0
- data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -8
- data/rbi/lithic/resources/three_ds/authentication.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +2 -2
- data/sig/lithic/client.rbs +4 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +4 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +135 -36
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/event_stream.rbs +24 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -25
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +15 -25
- data/sig/lithic/models/card_bulk_order.rbs +76 -0
- data/sig/lithic/models/card_bulk_order_create_params.rbs +46 -0
- data/sig/lithic/models/card_bulk_order_list_params.rbs +56 -0
- data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +15 -0
- data/sig/lithic/models/card_bulk_order_update_params.rbs +34 -0
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -0
- data/sig/lithic/models/card_create_params.rbs +9 -0
- data/sig/lithic/models/card_program.rbs +5 -7
- data/sig/lithic/models/card_reissue_params.rbs +2 -0
- data/sig/lithic/models/card_renew_params.rbs +2 -0
- data/sig/lithic/models/card_web_provision_params.rbs +26 -2
- data/sig/lithic/models/card_web_provision_response.rbs +81 -51
- data/sig/lithic/models/cardholder_authentication.rbs +98 -0
- data/sig/lithic/models/device.rbs +21 -0
- data/sig/lithic/models/digital_wallet_token_metadata.rbs +119 -0
- data/sig/lithic/models/{external_bank_account_unpause_response.rbs → external_bank_account.rbs} +17 -17
- data/sig/lithic/models/external_payment.rbs +28 -1
- data/sig/lithic/models/external_payment_create_params.rbs +8 -1
- data/sig/lithic/models/external_payment_list_params.rbs +8 -1
- data/sig/lithic/models/financial_account_balance.rbs +78 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +12 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +36 -0
- data/sig/lithic/models/financial_event.rbs +32 -0
- data/sig/lithic/models/{funding_event_list_response.rbs → funding_event.rbs} +11 -11
- data/sig/lithic/models/internal_transaction.rbs +165 -0
- data/sig/lithic/models/management_operation_create_params.rbs +12 -0
- data/sig/lithic/models/management_operation_transaction.rbs +12 -0
- data/sig/lithic/models/network_total.rbs +125 -0
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/payment.rbs +9 -0
- data/sig/lithic/models/payment_create_params.rbs +7 -0
- data/sig/lithic/models/three_ds_authentication.rbs +911 -0
- data/sig/lithic/models/token_info.rbs +36 -0
- data/sig/lithic/models/tokenization.rbs +18 -137
- data/sig/lithic/models/tokenization_decline_reason.rbs +38 -0
- data/sig/lithic/models/tokenization_rule_result.rbs +48 -0
- data/sig/lithic/models/tokenization_tfa_reason.rbs +42 -0
- data/sig/lithic/models/transaction.rbs +8 -140
- data/sig/lithic/models/wallet_decisioning_info.rbs +35 -0
- data/sig/lithic/models.rbs +38 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +9 -8
- data/sig/lithic/resources/card_bulk_orders.rbs +34 -0
- data/sig/lithic/resources/cards/balances.rbs +1 -1
- data/sig/lithic/resources/cards.rbs +5 -1
- data/sig/lithic/resources/external_bank_accounts.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/balances.rbs +1 -1
- data/sig/lithic/resources/funding_events.rbs +2 -2
- data/sig/lithic/resources/internal_transaction.rbs +7 -0
- data/sig/lithic/resources/reports/settlement/network_totals.rbs +2 -2
- data/sig/lithic/resources/three_ds/authentication.rbs +1 -1
- data/sig/lithic/resources/tokenizations.rbs +2 -2
- metadata +70 -55
- data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -284
- data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -280
- data/lib/lithic/models/cards/balance_list_response.rb +0 -115
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +0 -242
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -115
- data/lib/lithic/models/funding_event_list_response.rb +0 -108
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -176
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -176
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +0 -1288
- data/lib/lithic/models/tokenization_simulate_response.rb +0 -16
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +0 -16
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +0 -518
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +0 -525
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +0 -528
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +0 -522
- data/rbi/lithic/models/cards/balance_list_response.rbi +0 -170
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +0 -375
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +0 -174
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +0 -184
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +0 -280
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +0 -280
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +0 -2580
- data/rbi/lithic/models/tokenization_simulate_response.rbi +0 -33
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +0 -31
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +0 -205
- data/sig/lithic/models/cards/balance_list_response.rbs +0 -80
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +0 -162
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -80
- data/sig/lithic/models/funding_event_retrieve_response.rbs +0 -85
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -129
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -129
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +0 -913
- data/sig/lithic/models/tokenization_simulate_response.rbs +0 -18
- data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +0 -16
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class FundingEvent < Lithic::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
|
-
T.type_alias
|
|
8
|
-
T.any(
|
|
9
|
-
Lithic::Models::FundingEventListResponse,
|
|
10
|
-
Lithic::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
7
|
+
T.type_alias { T.any(Lithic::FundingEvent, Lithic::Internal::AnyHash) }
|
|
13
8
|
|
|
14
9
|
# Unique token ID
|
|
15
10
|
sig { returns(String) }
|
|
@@ -17,9 +12,7 @@ module Lithic
|
|
|
17
12
|
|
|
18
13
|
# Collection resource type
|
|
19
14
|
sig do
|
|
20
|
-
returns(
|
|
21
|
-
Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
|
|
22
|
-
)
|
|
15
|
+
returns(Lithic::FundingEvent::CollectionResourceType::TaggedSymbol)
|
|
23
16
|
end
|
|
24
17
|
attr_accessor :collection_resource_type
|
|
25
18
|
|
|
@@ -37,13 +30,7 @@ module Lithic
|
|
|
37
30
|
attr_accessor :high_watermark
|
|
38
31
|
|
|
39
32
|
# Network settlement summary breakdown by network settlement date
|
|
40
|
-
sig
|
|
41
|
-
returns(
|
|
42
|
-
T::Array[
|
|
43
|
-
Lithic::Models::FundingEventListResponse::NetworkSettlementSummary
|
|
44
|
-
]
|
|
45
|
-
)
|
|
46
|
-
end
|
|
33
|
+
sig { returns(T::Array[Lithic::FundingEvent::NetworkSettlementSummary]) }
|
|
47
34
|
attr_accessor :network_settlement_summary
|
|
48
35
|
|
|
49
36
|
# Time of the previous high watermark
|
|
@@ -58,14 +45,12 @@ module Lithic
|
|
|
58
45
|
params(
|
|
59
46
|
token: String,
|
|
60
47
|
collection_resource_type:
|
|
61
|
-
Lithic::
|
|
48
|
+
Lithic::FundingEvent::CollectionResourceType::OrSymbol,
|
|
62
49
|
collection_tokens: T::Array[String],
|
|
63
50
|
created: Time,
|
|
64
51
|
high_watermark: Time,
|
|
65
52
|
network_settlement_summary:
|
|
66
|
-
T::Array[
|
|
67
|
-
Lithic::Models::FundingEventListResponse::NetworkSettlementSummary::OrHash
|
|
68
|
-
],
|
|
53
|
+
T::Array[Lithic::FundingEvent::NetworkSettlementSummary::OrHash],
|
|
69
54
|
previous_high_watermark: Time,
|
|
70
55
|
updated: Time
|
|
71
56
|
).returns(T.attached_class)
|
|
@@ -96,14 +81,12 @@ module Lithic
|
|
|
96
81
|
{
|
|
97
82
|
token: String,
|
|
98
83
|
collection_resource_type:
|
|
99
|
-
Lithic::
|
|
84
|
+
Lithic::FundingEvent::CollectionResourceType::TaggedSymbol,
|
|
100
85
|
collection_tokens: T::Array[String],
|
|
101
86
|
created: Time,
|
|
102
87
|
high_watermark: Time,
|
|
103
88
|
network_settlement_summary:
|
|
104
|
-
T::Array[
|
|
105
|
-
Lithic::Models::FundingEventListResponse::NetworkSettlementSummary
|
|
106
|
-
],
|
|
89
|
+
T::Array[Lithic::FundingEvent::NetworkSettlementSummary],
|
|
107
90
|
previous_high_watermark: Time,
|
|
108
91
|
updated: Time
|
|
109
92
|
}
|
|
@@ -118,29 +101,24 @@ module Lithic
|
|
|
118
101
|
|
|
119
102
|
TaggedSymbol =
|
|
120
103
|
T.type_alias do
|
|
121
|
-
T.all(
|
|
122
|
-
Symbol,
|
|
123
|
-
Lithic::Models::FundingEventListResponse::CollectionResourceType
|
|
124
|
-
)
|
|
104
|
+
T.all(Symbol, Lithic::FundingEvent::CollectionResourceType)
|
|
125
105
|
end
|
|
126
106
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
127
107
|
|
|
128
108
|
BOOK_TRANSFER =
|
|
129
109
|
T.let(
|
|
130
110
|
:BOOK_TRANSFER,
|
|
131
|
-
Lithic::
|
|
111
|
+
Lithic::FundingEvent::CollectionResourceType::TaggedSymbol
|
|
132
112
|
)
|
|
133
113
|
PAYMENT =
|
|
134
114
|
T.let(
|
|
135
115
|
:PAYMENT,
|
|
136
|
-
Lithic::
|
|
116
|
+
Lithic::FundingEvent::CollectionResourceType::TaggedSymbol
|
|
137
117
|
)
|
|
138
118
|
|
|
139
119
|
sig do
|
|
140
120
|
override.returns(
|
|
141
|
-
T::Array[
|
|
142
|
-
Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
|
|
143
|
-
]
|
|
121
|
+
T::Array[Lithic::FundingEvent::CollectionResourceType::TaggedSymbol]
|
|
144
122
|
)
|
|
145
123
|
end
|
|
146
124
|
def self.values
|
|
@@ -151,7 +129,7 @@ module Lithic
|
|
|
151
129
|
OrHash =
|
|
152
130
|
T.type_alias do
|
|
153
131
|
T.any(
|
|
154
|
-
Lithic::
|
|
132
|
+
Lithic::FundingEvent::NetworkSettlementSummary,
|
|
155
133
|
Lithic::Internal::AnyHash
|
|
156
134
|
)
|
|
157
135
|
end
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class InternalTransactionAPI < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::InternalTransactionAPI, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(String) }
|
|
12
|
+
attr_accessor :token
|
|
13
|
+
|
|
14
|
+
sig { returns(Lithic::InternalTransactionAPI::Category::OrSymbol) }
|
|
15
|
+
attr_accessor :category
|
|
16
|
+
|
|
17
|
+
sig { returns(Time) }
|
|
18
|
+
attr_accessor :created
|
|
19
|
+
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :currency
|
|
22
|
+
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :descriptor
|
|
25
|
+
|
|
26
|
+
sig { returns(T::Array[Lithic::InternalTransactionAPI::Event]) }
|
|
27
|
+
attr_accessor :events
|
|
28
|
+
|
|
29
|
+
sig { returns(Integer) }
|
|
30
|
+
attr_accessor :pending_amount
|
|
31
|
+
|
|
32
|
+
sig { returns(Lithic::InternalTransactionAPI::Result::OrSymbol) }
|
|
33
|
+
attr_accessor :result
|
|
34
|
+
|
|
35
|
+
sig { returns(Integer) }
|
|
36
|
+
attr_accessor :settled_amount
|
|
37
|
+
|
|
38
|
+
sig { returns(Lithic::InternalTransactionAPI::Status::OrSymbol) }
|
|
39
|
+
attr_accessor :status
|
|
40
|
+
|
|
41
|
+
sig { returns(Time) }
|
|
42
|
+
attr_accessor :updated
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
token: String,
|
|
47
|
+
category: Lithic::InternalTransactionAPI::Category::OrSymbol,
|
|
48
|
+
created: Time,
|
|
49
|
+
currency: String,
|
|
50
|
+
descriptor: String,
|
|
51
|
+
events: T::Array[Lithic::InternalTransactionAPI::Event::OrHash],
|
|
52
|
+
pending_amount: Integer,
|
|
53
|
+
result: Lithic::InternalTransactionAPI::Result::OrSymbol,
|
|
54
|
+
settled_amount: Integer,
|
|
55
|
+
status: Lithic::InternalTransactionAPI::Status::OrSymbol,
|
|
56
|
+
updated: Time
|
|
57
|
+
).returns(T.attached_class)
|
|
58
|
+
end
|
|
59
|
+
def self.new(
|
|
60
|
+
token:,
|
|
61
|
+
category:,
|
|
62
|
+
created:,
|
|
63
|
+
currency:,
|
|
64
|
+
descriptor:,
|
|
65
|
+
events:,
|
|
66
|
+
pending_amount:,
|
|
67
|
+
result:,
|
|
68
|
+
settled_amount:,
|
|
69
|
+
status:,
|
|
70
|
+
updated:
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
override.returns(
|
|
76
|
+
{
|
|
77
|
+
token: String,
|
|
78
|
+
category: Lithic::InternalTransactionAPI::Category::OrSymbol,
|
|
79
|
+
created: Time,
|
|
80
|
+
currency: String,
|
|
81
|
+
descriptor: String,
|
|
82
|
+
events: T::Array[Lithic::InternalTransactionAPI::Event],
|
|
83
|
+
pending_amount: Integer,
|
|
84
|
+
result: Lithic::InternalTransactionAPI::Result::OrSymbol,
|
|
85
|
+
settled_amount: Integer,
|
|
86
|
+
status: Lithic::InternalTransactionAPI::Status::OrSymbol,
|
|
87
|
+
updated: Time
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
def to_hash
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
module Category
|
|
95
|
+
extend Lithic::Internal::Type::Enum
|
|
96
|
+
|
|
97
|
+
TaggedSymbol =
|
|
98
|
+
T.type_alias do
|
|
99
|
+
T.all(Symbol, Lithic::InternalTransactionAPI::Category)
|
|
100
|
+
end
|
|
101
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
102
|
+
|
|
103
|
+
INTERNAL =
|
|
104
|
+
T.let(
|
|
105
|
+
:INTERNAL,
|
|
106
|
+
Lithic::InternalTransactionAPI::Category::TaggedSymbol
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
override.returns(
|
|
111
|
+
T::Array[Lithic::InternalTransactionAPI::Category::TaggedSymbol]
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def self.values
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class Event < Lithic::Internal::Type::BaseModel
|
|
119
|
+
OrHash =
|
|
120
|
+
T.type_alias do
|
|
121
|
+
T.any(
|
|
122
|
+
Lithic::InternalTransactionAPI::Event,
|
|
123
|
+
Lithic::Internal::AnyHash
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
sig { returns(String) }
|
|
128
|
+
attr_accessor :token
|
|
129
|
+
|
|
130
|
+
sig { returns(Integer) }
|
|
131
|
+
attr_accessor :amount
|
|
132
|
+
|
|
133
|
+
sig { returns(Time) }
|
|
134
|
+
attr_accessor :created
|
|
135
|
+
|
|
136
|
+
sig { returns(Lithic::InternalTransactionAPI::Event::Result::OrSymbol) }
|
|
137
|
+
attr_accessor :result
|
|
138
|
+
|
|
139
|
+
sig { returns(Lithic::InternalTransactionAPI::Event::Type::OrSymbol) }
|
|
140
|
+
attr_accessor :type
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
params(
|
|
144
|
+
token: String,
|
|
145
|
+
amount: Integer,
|
|
146
|
+
created: Time,
|
|
147
|
+
result: Lithic::InternalTransactionAPI::Event::Result::OrSymbol,
|
|
148
|
+
type: Lithic::InternalTransactionAPI::Event::Type::OrSymbol
|
|
149
|
+
).returns(T.attached_class)
|
|
150
|
+
end
|
|
151
|
+
def self.new(token:, amount:, created:, result:, type:)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
override.returns(
|
|
156
|
+
{
|
|
157
|
+
token: String,
|
|
158
|
+
amount: Integer,
|
|
159
|
+
created: Time,
|
|
160
|
+
result: Lithic::InternalTransactionAPI::Event::Result::OrSymbol,
|
|
161
|
+
type: Lithic::InternalTransactionAPI::Event::Type::OrSymbol
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
end
|
|
165
|
+
def to_hash
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
module Result
|
|
169
|
+
extend Lithic::Internal::Type::Enum
|
|
170
|
+
|
|
171
|
+
TaggedSymbol =
|
|
172
|
+
T.type_alias do
|
|
173
|
+
T.all(Symbol, Lithic::InternalTransactionAPI::Event::Result)
|
|
174
|
+
end
|
|
175
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
176
|
+
|
|
177
|
+
APPROVED =
|
|
178
|
+
T.let(
|
|
179
|
+
:APPROVED,
|
|
180
|
+
Lithic::InternalTransactionAPI::Event::Result::TaggedSymbol
|
|
181
|
+
)
|
|
182
|
+
DECLINED =
|
|
183
|
+
T.let(
|
|
184
|
+
:DECLINED,
|
|
185
|
+
Lithic::InternalTransactionAPI::Event::Result::TaggedSymbol
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
sig do
|
|
189
|
+
override.returns(
|
|
190
|
+
T::Array[
|
|
191
|
+
Lithic::InternalTransactionAPI::Event::Result::TaggedSymbol
|
|
192
|
+
]
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
def self.values
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
module Type
|
|
200
|
+
extend Lithic::Internal::Type::Enum
|
|
201
|
+
|
|
202
|
+
TaggedSymbol =
|
|
203
|
+
T.type_alias do
|
|
204
|
+
T.all(Symbol, Lithic::InternalTransactionAPI::Event::Type)
|
|
205
|
+
end
|
|
206
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
207
|
+
|
|
208
|
+
INTERNAL_ADJUSTMENT =
|
|
209
|
+
T.let(
|
|
210
|
+
:INTERNAL_ADJUSTMENT,
|
|
211
|
+
Lithic::InternalTransactionAPI::Event::Type::TaggedSymbol
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
sig do
|
|
215
|
+
override.returns(
|
|
216
|
+
T::Array[
|
|
217
|
+
Lithic::InternalTransactionAPI::Event::Type::TaggedSymbol
|
|
218
|
+
]
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
def self.values
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
module Result
|
|
227
|
+
extend Lithic::Internal::Type::Enum
|
|
228
|
+
|
|
229
|
+
TaggedSymbol =
|
|
230
|
+
T.type_alias { T.all(Symbol, Lithic::InternalTransactionAPI::Result) }
|
|
231
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
232
|
+
|
|
233
|
+
APPROVED =
|
|
234
|
+
T.let(:APPROVED, Lithic::InternalTransactionAPI::Result::TaggedSymbol)
|
|
235
|
+
DECLINED =
|
|
236
|
+
T.let(:DECLINED, Lithic::InternalTransactionAPI::Result::TaggedSymbol)
|
|
237
|
+
|
|
238
|
+
sig do
|
|
239
|
+
override.returns(
|
|
240
|
+
T::Array[Lithic::InternalTransactionAPI::Result::TaggedSymbol]
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
def self.values
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
module Status
|
|
248
|
+
extend Lithic::Internal::Type::Enum
|
|
249
|
+
|
|
250
|
+
TaggedSymbol =
|
|
251
|
+
T.type_alias { T.all(Symbol, Lithic::InternalTransactionAPI::Status) }
|
|
252
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
253
|
+
|
|
254
|
+
PENDING =
|
|
255
|
+
T.let(:PENDING, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
256
|
+
SETTLED =
|
|
257
|
+
T.let(:SETTLED, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
258
|
+
DECLINED =
|
|
259
|
+
T.let(:DECLINED, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
260
|
+
REVERSED =
|
|
261
|
+
T.let(:REVERSED, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
262
|
+
CANCELED =
|
|
263
|
+
T.let(:CANCELED, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
264
|
+
RETURNED =
|
|
265
|
+
T.let(:RETURNED, Lithic::InternalTransactionAPI::Status::TaggedSymbol)
|
|
266
|
+
|
|
267
|
+
sig do
|
|
268
|
+
override.returns(
|
|
269
|
+
T::Array[Lithic::InternalTransactionAPI::Status::TaggedSymbol]
|
|
270
|
+
)
|
|
271
|
+
end
|
|
272
|
+
def self.values
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
@@ -322,6 +322,36 @@ module Lithic
|
|
|
322
322
|
:DISBURSE_REVERSAL,
|
|
323
323
|
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
324
324
|
)
|
|
325
|
+
ANNUAL =
|
|
326
|
+
T.let(
|
|
327
|
+
:ANNUAL,
|
|
328
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
329
|
+
)
|
|
330
|
+
ANNUAL_REVERSAL =
|
|
331
|
+
T.let(
|
|
332
|
+
:ANNUAL_REVERSAL,
|
|
333
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
334
|
+
)
|
|
335
|
+
QUARTERLY =
|
|
336
|
+
T.let(
|
|
337
|
+
:QUARTERLY,
|
|
338
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
339
|
+
)
|
|
340
|
+
QUARTERLY_REVERSAL =
|
|
341
|
+
T.let(
|
|
342
|
+
:QUARTERLY_REVERSAL,
|
|
343
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
344
|
+
)
|
|
345
|
+
MONTHLY =
|
|
346
|
+
T.let(
|
|
347
|
+
:MONTHLY,
|
|
348
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
349
|
+
)
|
|
350
|
+
MONTHLY_REVERSAL =
|
|
351
|
+
T.let(
|
|
352
|
+
:MONTHLY_REVERSAL,
|
|
353
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
354
|
+
)
|
|
325
355
|
|
|
326
356
|
sig do
|
|
327
357
|
override.returns(
|
|
@@ -652,6 +652,36 @@ module Lithic
|
|
|
652
652
|
:DISBURSE_REVERSAL,
|
|
653
653
|
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
654
654
|
)
|
|
655
|
+
ANNUAL =
|
|
656
|
+
T.let(
|
|
657
|
+
:ANNUAL,
|
|
658
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
659
|
+
)
|
|
660
|
+
ANNUAL_REVERSAL =
|
|
661
|
+
T.let(
|
|
662
|
+
:ANNUAL_REVERSAL,
|
|
663
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
664
|
+
)
|
|
665
|
+
QUARTERLY =
|
|
666
|
+
T.let(
|
|
667
|
+
:QUARTERLY,
|
|
668
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
669
|
+
)
|
|
670
|
+
QUARTERLY_REVERSAL =
|
|
671
|
+
T.let(
|
|
672
|
+
:QUARTERLY_REVERSAL,
|
|
673
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
674
|
+
)
|
|
675
|
+
MONTHLY =
|
|
676
|
+
T.let(
|
|
677
|
+
:MONTHLY,
|
|
678
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
679
|
+
)
|
|
680
|
+
MONTHLY_REVERSAL =
|
|
681
|
+
T.let(
|
|
682
|
+
:MONTHLY_REVERSAL,
|
|
683
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
684
|
+
)
|
|
655
685
|
|
|
656
686
|
sig do
|
|
657
687
|
override.returns(
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class NetworkTotal < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Lithic::NetworkTotal, Lithic::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
# Globally unique identifier.
|
|
10
|
+
sig { returns(String) }
|
|
11
|
+
attr_accessor :token
|
|
12
|
+
|
|
13
|
+
sig { returns(Lithic::NetworkTotal::Amounts) }
|
|
14
|
+
attr_reader :amounts
|
|
15
|
+
|
|
16
|
+
sig { params(amounts: Lithic::NetworkTotal::Amounts::OrHash).void }
|
|
17
|
+
attr_writer :amounts
|
|
18
|
+
|
|
19
|
+
# RFC 3339 timestamp for when the record was created. UTC time zone.
|
|
20
|
+
sig { returns(Time) }
|
|
21
|
+
attr_accessor :created
|
|
22
|
+
|
|
23
|
+
# 3-character alphabetic ISO 4217 code.
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
attr_accessor :currency
|
|
26
|
+
|
|
27
|
+
# The institution that activity occurred on. For Mastercard: ICA (Interbank Card
|
|
28
|
+
# Association). For Maestro: institution ID. For Visa: lowest level SRE
|
|
29
|
+
# (Settlement Reporting Entity).
|
|
30
|
+
sig { returns(String) }
|
|
31
|
+
attr_accessor :institution_id
|
|
32
|
+
|
|
33
|
+
# Indicates that all settlement records related to this Network Total are
|
|
34
|
+
# available in the details endpoint.
|
|
35
|
+
sig { returns(T::Boolean) }
|
|
36
|
+
attr_accessor :is_complete
|
|
37
|
+
|
|
38
|
+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
|
|
39
|
+
# or INTERLINK.
|
|
40
|
+
sig { returns(Lithic::NetworkTotal::Network::TaggedSymbol) }
|
|
41
|
+
attr_accessor :network
|
|
42
|
+
|
|
43
|
+
# Date that the network total record applies to. YYYY-MM-DD format.
|
|
44
|
+
sig { returns(Date) }
|
|
45
|
+
attr_accessor :report_date
|
|
46
|
+
|
|
47
|
+
# The institution responsible for settlement. For Mastercard: same as
|
|
48
|
+
# `institution_id`. For Maestro: billing ICA. For Visa: Funds Transfer SRE
|
|
49
|
+
# (FTSRE).
|
|
50
|
+
sig { returns(String) }
|
|
51
|
+
attr_accessor :settlement_institution_id
|
|
52
|
+
|
|
53
|
+
# Settlement service.
|
|
54
|
+
sig { returns(String) }
|
|
55
|
+
attr_accessor :settlement_service
|
|
56
|
+
|
|
57
|
+
# RFC 3339 timestamp for when the record was last updated. UTC time zone.
|
|
58
|
+
sig { returns(Time) }
|
|
59
|
+
attr_accessor :updated
|
|
60
|
+
|
|
61
|
+
# The clearing cycle that the network total record applies to. Mastercard only.
|
|
62
|
+
sig { returns(T.nilable(Integer)) }
|
|
63
|
+
attr_reader :cycle
|
|
64
|
+
|
|
65
|
+
sig { params(cycle: Integer).void }
|
|
66
|
+
attr_writer :cycle
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
params(
|
|
70
|
+
token: String,
|
|
71
|
+
amounts: Lithic::NetworkTotal::Amounts::OrHash,
|
|
72
|
+
created: Time,
|
|
73
|
+
currency: String,
|
|
74
|
+
institution_id: String,
|
|
75
|
+
is_complete: T::Boolean,
|
|
76
|
+
network: Lithic::NetworkTotal::Network::OrSymbol,
|
|
77
|
+
report_date: Date,
|
|
78
|
+
settlement_institution_id: String,
|
|
79
|
+
settlement_service: String,
|
|
80
|
+
updated: Time,
|
|
81
|
+
cycle: Integer
|
|
82
|
+
).returns(T.attached_class)
|
|
83
|
+
end
|
|
84
|
+
def self.new(
|
|
85
|
+
# Globally unique identifier.
|
|
86
|
+
token:,
|
|
87
|
+
amounts:,
|
|
88
|
+
# RFC 3339 timestamp for when the record was created. UTC time zone.
|
|
89
|
+
created:,
|
|
90
|
+
# 3-character alphabetic ISO 4217 code.
|
|
91
|
+
currency:,
|
|
92
|
+
# The institution that activity occurred on. For Mastercard: ICA (Interbank Card
|
|
93
|
+
# Association). For Maestro: institution ID. For Visa: lowest level SRE
|
|
94
|
+
# (Settlement Reporting Entity).
|
|
95
|
+
institution_id:,
|
|
96
|
+
# Indicates that all settlement records related to this Network Total are
|
|
97
|
+
# available in the details endpoint.
|
|
98
|
+
is_complete:,
|
|
99
|
+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
|
|
100
|
+
# or INTERLINK.
|
|
101
|
+
network:,
|
|
102
|
+
# Date that the network total record applies to. YYYY-MM-DD format.
|
|
103
|
+
report_date:,
|
|
104
|
+
# The institution responsible for settlement. For Mastercard: same as
|
|
105
|
+
# `institution_id`. For Maestro: billing ICA. For Visa: Funds Transfer SRE
|
|
106
|
+
# (FTSRE).
|
|
107
|
+
settlement_institution_id:,
|
|
108
|
+
# Settlement service.
|
|
109
|
+
settlement_service:,
|
|
110
|
+
# RFC 3339 timestamp for when the record was last updated. UTC time zone.
|
|
111
|
+
updated:,
|
|
112
|
+
# The clearing cycle that the network total record applies to. Mastercard only.
|
|
113
|
+
cycle: nil
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
sig do
|
|
118
|
+
override.returns(
|
|
119
|
+
{
|
|
120
|
+
token: String,
|
|
121
|
+
amounts: Lithic::NetworkTotal::Amounts,
|
|
122
|
+
created: Time,
|
|
123
|
+
currency: String,
|
|
124
|
+
institution_id: String,
|
|
125
|
+
is_complete: T::Boolean,
|
|
126
|
+
network: Lithic::NetworkTotal::Network::TaggedSymbol,
|
|
127
|
+
report_date: Date,
|
|
128
|
+
settlement_institution_id: String,
|
|
129
|
+
settlement_service: String,
|
|
130
|
+
updated: Time,
|
|
131
|
+
cycle: Integer
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
def to_hash
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class Amounts < Lithic::Internal::Type::BaseModel
|
|
139
|
+
OrHash =
|
|
140
|
+
T.type_alias do
|
|
141
|
+
T.any(Lithic::NetworkTotal::Amounts, Lithic::Internal::AnyHash)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Total settlement amount excluding interchange, in currency's smallest unit.
|
|
145
|
+
sig { returns(Integer) }
|
|
146
|
+
attr_accessor :gross_settlement
|
|
147
|
+
|
|
148
|
+
# Interchange amount, in currency's smallest unit.
|
|
149
|
+
sig { returns(Integer) }
|
|
150
|
+
attr_accessor :interchange_fees
|
|
151
|
+
|
|
152
|
+
# `gross_settlement` net of `interchange_fees` and `visa_charges` (if applicable),
|
|
153
|
+
# in currency's smallest unit.
|
|
154
|
+
sig { returns(Integer) }
|
|
155
|
+
attr_accessor :net_settlement
|
|
156
|
+
|
|
157
|
+
# Charges specific to Visa/Interlink, in currency's smallest unit.
|
|
158
|
+
sig { returns(T.nilable(Integer)) }
|
|
159
|
+
attr_reader :visa_charges
|
|
160
|
+
|
|
161
|
+
sig { params(visa_charges: Integer).void }
|
|
162
|
+
attr_writer :visa_charges
|
|
163
|
+
|
|
164
|
+
sig do
|
|
165
|
+
params(
|
|
166
|
+
gross_settlement: Integer,
|
|
167
|
+
interchange_fees: Integer,
|
|
168
|
+
net_settlement: Integer,
|
|
169
|
+
visa_charges: Integer
|
|
170
|
+
).returns(T.attached_class)
|
|
171
|
+
end
|
|
172
|
+
def self.new(
|
|
173
|
+
# Total settlement amount excluding interchange, in currency's smallest unit.
|
|
174
|
+
gross_settlement:,
|
|
175
|
+
# Interchange amount, in currency's smallest unit.
|
|
176
|
+
interchange_fees:,
|
|
177
|
+
# `gross_settlement` net of `interchange_fees` and `visa_charges` (if applicable),
|
|
178
|
+
# in currency's smallest unit.
|
|
179
|
+
net_settlement:,
|
|
180
|
+
# Charges specific to Visa/Interlink, in currency's smallest unit.
|
|
181
|
+
visa_charges: nil
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
sig do
|
|
186
|
+
override.returns(
|
|
187
|
+
{
|
|
188
|
+
gross_settlement: Integer,
|
|
189
|
+
interchange_fees: Integer,
|
|
190
|
+
net_settlement: Integer,
|
|
191
|
+
visa_charges: Integer
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
def to_hash
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
|
|
200
|
+
# or INTERLINK.
|
|
201
|
+
module Network
|
|
202
|
+
extend Lithic::Internal::Type::Enum
|
|
203
|
+
|
|
204
|
+
TaggedSymbol =
|
|
205
|
+
T.type_alias { T.all(Symbol, Lithic::NetworkTotal::Network) }
|
|
206
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
207
|
+
|
|
208
|
+
AMEX = T.let(:AMEX, Lithic::NetworkTotal::Network::TaggedSymbol)
|
|
209
|
+
VISA = T.let(:VISA, Lithic::NetworkTotal::Network::TaggedSymbol)
|
|
210
|
+
MASTERCARD =
|
|
211
|
+
T.let(:MASTERCARD, Lithic::NetworkTotal::Network::TaggedSymbol)
|
|
212
|
+
MAESTRO = T.let(:MAESTRO, Lithic::NetworkTotal::Network::TaggedSymbol)
|
|
213
|
+
INTERLINK =
|
|
214
|
+
T.let(:INTERLINK, Lithic::NetworkTotal::Network::TaggedSymbol)
|
|
215
|
+
|
|
216
|
+
sig do
|
|
217
|
+
override.returns(
|
|
218
|
+
T::Array[Lithic::NetworkTotal::Network::TaggedSymbol]
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
def self.values
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|