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
@@ -5,95 +5,158 @@ module Lithic
|
|
5
5
|
# @see Lithic::Resources::ManagementOperations#create
|
6
6
|
class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
|
7
7
|
# @!attribute token
|
8
|
+
# Unique identifier for the transaction
|
8
9
|
#
|
9
10
|
# @return [String]
|
10
11
|
required :token, String
|
11
12
|
|
12
|
-
# @!attribute category
|
13
|
-
#
|
14
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
|
15
|
-
required :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
|
16
|
-
|
17
13
|
# @!attribute created
|
14
|
+
# ISO 8601 timestamp of when the transaction was created
|
18
15
|
#
|
19
16
|
# @return [Time]
|
20
17
|
required :created, Time
|
21
18
|
|
19
|
+
# @!attribute family
|
20
|
+
#
|
21
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
|
22
|
+
required :family, enum: -> { Lithic::ManagementOperationTransaction::Family }
|
23
|
+
|
24
|
+
# @!attribute status
|
25
|
+
# The status of the transaction
|
26
|
+
#
|
27
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
28
|
+
required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
|
29
|
+
|
30
|
+
# @!attribute updated
|
31
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
32
|
+
#
|
33
|
+
# @return [Time]
|
34
|
+
required :updated, Time
|
35
|
+
|
36
|
+
# @!attribute category
|
37
|
+
#
|
38
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category, nil]
|
39
|
+
optional :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
|
40
|
+
|
22
41
|
# @!attribute currency
|
23
42
|
#
|
24
|
-
# @return [String]
|
25
|
-
|
43
|
+
# @return [String, nil]
|
44
|
+
optional :currency, String
|
26
45
|
|
27
46
|
# @!attribute direction
|
28
47
|
#
|
29
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction]
|
30
|
-
|
48
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction, nil]
|
49
|
+
optional :direction, enum: -> { Lithic::ManagementOperationTransaction::Direction }
|
31
50
|
|
32
51
|
# @!attribute events
|
33
52
|
#
|
34
|
-
# @return [Array<Lithic::Models::ManagementOperationTransaction::Event
|
35
|
-
|
53
|
+
# @return [Array<Lithic::Models::ManagementOperationTransaction::Event>, nil]
|
54
|
+
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event] }
|
55
|
+
|
56
|
+
# @!attribute external_resource
|
57
|
+
# External resource associated with the management operation
|
58
|
+
#
|
59
|
+
# @return [Lithic::Models::ExternalResource, nil]
|
60
|
+
optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
|
36
61
|
|
37
62
|
# @!attribute financial_account_token
|
38
63
|
#
|
39
|
-
# @return [String]
|
40
|
-
|
64
|
+
# @return [String, nil]
|
65
|
+
optional :financial_account_token, String
|
41
66
|
|
42
67
|
# @!attribute pending_amount
|
43
68
|
#
|
44
|
-
# @return [Integer]
|
45
|
-
|
69
|
+
# @return [Integer, nil]
|
70
|
+
optional :pending_amount, Integer
|
46
71
|
|
47
72
|
# @!attribute result
|
48
73
|
#
|
49
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result]
|
50
|
-
|
74
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result, nil]
|
75
|
+
optional :result, enum: -> { Lithic::ManagementOperationTransaction::Result }
|
51
76
|
|
52
77
|
# @!attribute settled_amount
|
53
78
|
#
|
54
|
-
# @return [Integer]
|
55
|
-
|
56
|
-
|
57
|
-
# @!attribute status
|
58
|
-
#
|
59
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
60
|
-
required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
|
79
|
+
# @return [Integer, nil]
|
80
|
+
optional :settled_amount, Integer
|
61
81
|
|
62
82
|
# @!attribute transaction_series
|
63
83
|
#
|
64
84
|
# @return [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
|
65
|
-
|
85
|
+
optional :transaction_series,
|
66
86
|
-> {
|
67
87
|
Lithic::ManagementOperationTransaction::TransactionSeries
|
68
88
|
},
|
69
89
|
nil?: true
|
70
90
|
|
71
|
-
# @!attribute updated
|
72
|
-
#
|
73
|
-
# @return [Time]
|
74
|
-
required :updated, Time
|
75
|
-
|
76
91
|
# @!attribute user_defined_id
|
77
92
|
#
|
78
93
|
# @return [String, nil]
|
79
94
|
optional :user_defined_id, String
|
80
95
|
|
81
|
-
# @!method initialize(token:,
|
82
|
-
# @param token [String]
|
96
|
+
# @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, direction: nil, events: nil, external_resource: nil, financial_account_token: nil, pending_amount: nil, result: nil, settled_amount: nil, transaction_series: nil, user_defined_id: nil)
|
97
|
+
# @param token [String] Unique identifier for the transaction
|
98
|
+
#
|
99
|
+
# @param created [Time] ISO 8601 timestamp of when the transaction was created
|
100
|
+
#
|
101
|
+
# @param family [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
|
102
|
+
#
|
103
|
+
# @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status] The status of the transaction
|
104
|
+
#
|
105
|
+
# @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
|
106
|
+
#
|
83
107
|
# @param category [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
|
84
|
-
#
|
108
|
+
#
|
85
109
|
# @param currency [String]
|
110
|
+
#
|
86
111
|
# @param direction [Symbol, Lithic::Models::ManagementOperationTransaction::Direction]
|
112
|
+
#
|
87
113
|
# @param events [Array<Lithic::Models::ManagementOperationTransaction::Event>]
|
114
|
+
#
|
115
|
+
# @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
|
116
|
+
#
|
88
117
|
# @param financial_account_token [String]
|
118
|
+
#
|
89
119
|
# @param pending_amount [Integer]
|
120
|
+
#
|
90
121
|
# @param result [Symbol, Lithic::Models::ManagementOperationTransaction::Result]
|
122
|
+
#
|
91
123
|
# @param settled_amount [Integer]
|
92
|
-
#
|
124
|
+
#
|
93
125
|
# @param transaction_series [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
|
94
|
-
#
|
126
|
+
#
|
95
127
|
# @param user_defined_id [String]
|
96
128
|
|
129
|
+
# @see Lithic::Models::ManagementOperationTransaction#family
|
130
|
+
module Family
|
131
|
+
extend Lithic::Internal::Type::Enum
|
132
|
+
|
133
|
+
CARD = :CARD
|
134
|
+
PAYMENT = :PAYMENT
|
135
|
+
TRANSFER = :TRANSFER
|
136
|
+
INTERNAL = :INTERNAL
|
137
|
+
EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
|
138
|
+
MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
|
139
|
+
|
140
|
+
# @!method self.values
|
141
|
+
# @return [Array<Symbol>]
|
142
|
+
end
|
143
|
+
|
144
|
+
# The status of the transaction
|
145
|
+
#
|
146
|
+
# @see Lithic::Models::ManagementOperationTransaction#status
|
147
|
+
module Status
|
148
|
+
extend Lithic::Internal::Type::Enum
|
149
|
+
|
150
|
+
PENDING = :PENDING
|
151
|
+
SETTLED = :SETTLED
|
152
|
+
DECLINED = :DECLINED
|
153
|
+
REVERSED = :REVERSED
|
154
|
+
CANCELED = :CANCELED
|
155
|
+
|
156
|
+
# @!method self.values
|
157
|
+
# @return [Array<Symbol>]
|
158
|
+
end
|
159
|
+
|
97
160
|
# @see Lithic::Models::ManagementOperationTransaction#category
|
98
161
|
module Category
|
99
162
|
extend Lithic::Internal::Type::Enum
|
@@ -139,9 +202,7 @@ module Lithic
|
|
139
202
|
#
|
140
203
|
# @return [Array<Symbol, Lithic::Models::ManagementOperationTransaction::Event::DetailedResult>]
|
141
204
|
required :detailed_results,
|
142
|
-
-> {
|
143
|
-
Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult]
|
144
|
-
}
|
205
|
+
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult] }
|
145
206
|
|
146
207
|
# @!attribute effective_date
|
147
208
|
#
|
@@ -183,6 +244,7 @@ module Lithic
|
|
183
244
|
extend Lithic::Internal::Type::Enum
|
184
245
|
|
185
246
|
APPROVED = :APPROVED
|
247
|
+
INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
|
186
248
|
|
187
249
|
# @!method self.values
|
188
250
|
# @return [Array<Symbol>]
|
@@ -239,20 +301,6 @@ module Lithic
|
|
239
301
|
# @return [Array<Symbol>]
|
240
302
|
end
|
241
303
|
|
242
|
-
# @see Lithic::Models::ManagementOperationTransaction#status
|
243
|
-
module Status
|
244
|
-
extend Lithic::Internal::Type::Enum
|
245
|
-
|
246
|
-
PENDING = :PENDING
|
247
|
-
SETTLED = :SETTLED
|
248
|
-
DECLINED = :DECLINED
|
249
|
-
REVERSED = :REVERSED
|
250
|
-
CANCELED = :CANCELED
|
251
|
-
|
252
|
-
# @!method self.values
|
253
|
-
# @return [Array<Symbol>]
|
254
|
-
end
|
255
|
-
|
256
304
|
# @see Lithic::Models::ManagementOperationTransaction#transaction_series
|
257
305
|
class TransactionSeries < Lithic::Internal::Type::BaseModel
|
258
306
|
# @!attribute related_transaction_event_token
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#retrieve
|
6
|
+
class NetworkProgram < Lithic::Internal::Type::BaseModel
|
7
|
+
# @!attribute token
|
8
|
+
# Lithic-generated unique identifier for the program
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
required :token, String
|
12
|
+
|
13
|
+
# @!attribute default_product_code
|
14
|
+
# Network product ID associated with this program.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
required :default_product_code, String
|
18
|
+
|
19
|
+
# @!attribute name
|
20
|
+
# The name of the network program.
|
21
|
+
#
|
22
|
+
# @return [String]
|
23
|
+
required :name, String
|
24
|
+
|
25
|
+
# @!attribute registered_program_identification_number
|
26
|
+
# RPIN value assigned by the network.
|
27
|
+
#
|
28
|
+
# @return [String]
|
29
|
+
required :registered_program_identification_number, String
|
30
|
+
|
31
|
+
# @!method initialize(token:, default_product_code:, name:, registered_program_identification_number:)
|
32
|
+
# @param token [String] Lithic-generated unique identifier for the program
|
33
|
+
#
|
34
|
+
# @param default_product_code [String] Network product ID associated with this program.
|
35
|
+
#
|
36
|
+
# @param name [String] The name of the network program.
|
37
|
+
#
|
38
|
+
# @param registered_program_identification_number [String] RPIN value assigned by the network.
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#list
|
6
|
+
class NetworkProgramListParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute begin_
|
11
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
12
|
+
# will be included. UTC time zone.
|
13
|
+
#
|
14
|
+
# @return [Time, nil]
|
15
|
+
optional :begin_, Time
|
16
|
+
|
17
|
+
# @!attribute end_
|
18
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
19
|
+
# will be included. UTC time zone.
|
20
|
+
#
|
21
|
+
# @return [Time, nil]
|
22
|
+
optional :end_, Time
|
23
|
+
|
24
|
+
# @!attribute page_size
|
25
|
+
# Page size (for pagination).
|
26
|
+
#
|
27
|
+
# @return [Integer, nil]
|
28
|
+
optional :page_size, Integer
|
29
|
+
|
30
|
+
# @!method initialize(begin_: nil, end_: nil, page_size: nil, request_options: {})
|
31
|
+
# Some parameter documentations has been truncated, see
|
32
|
+
# {Lithic::Models::NetworkProgramListParams} for more details.
|
33
|
+
#
|
34
|
+
# @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
|
35
|
+
#
|
36
|
+
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
37
|
+
#
|
38
|
+
# @param page_size [Integer] Page size (for pagination).
|
39
|
+
#
|
40
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::NetworkPrograms#retrieve
|
6
|
+
class NetworkProgramRetrieveParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -123,6 +123,12 @@ module Lithic
|
|
123
123
|
# @return [String, nil]
|
124
124
|
optional :cardholder_currency, String
|
125
125
|
|
126
|
+
# @!attribute comment
|
127
|
+
# Additional context or information related to the card.
|
128
|
+
#
|
129
|
+
# @return [String, nil]
|
130
|
+
optional :comment, String
|
131
|
+
|
126
132
|
# @!attribute digital_card_art_token
|
127
133
|
# Specifies the digital card art to be displayed in the user's digital wallet
|
128
134
|
# after tokenization. This artwork must be approved by Mastercard and configured
|
@@ -155,6 +161,14 @@ module Lithic
|
|
155
161
|
# @return [String, nil]
|
156
162
|
optional :memo, String
|
157
163
|
|
164
|
+
# @!attribute network_program_token
|
165
|
+
# Globally unique identifier for the card's network program. Null if the card is
|
166
|
+
# not associated with a network program. Currently applicable to Visa cards
|
167
|
+
# participating in Account Level Management only
|
168
|
+
#
|
169
|
+
# @return [String, nil]
|
170
|
+
optional :network_program_token, String, nil?: true
|
171
|
+
|
158
172
|
# @!attribute pending_commands
|
159
173
|
# Indicates if there are offline PIN changes pending card interaction with an
|
160
174
|
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
@@ -178,7 +192,32 @@ module Lithic
|
|
178
192
|
# @return [String, nil]
|
179
193
|
optional :replacement_for, String, nil?: true
|
180
194
|
|
181
|
-
# @!
|
195
|
+
# @!attribute substatus
|
196
|
+
# Card state substatus values: _ `LOST` - The physical card is no longer in the
|
197
|
+
# cardholder's possession due to being lost or never received by the cardholder. _
|
198
|
+
# `COMPROMISED` - Card information has been exposed, potentially leading to
|
199
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
200
|
+
# data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
|
201
|
+
# as having chip failures or a demagnetized magnetic stripe. _
|
202
|
+
# `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
203
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
204
|
+
# or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
|
205
|
+
# reasons unrelated to fraud or damage, such as account inactivity, product or
|
206
|
+
# policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
|
207
|
+
# transaction activity for a specified period, applicable to statuses like
|
208
|
+
# `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
|
209
|
+
# suspicious transactions or activities that require review. This can involve
|
210
|
+
# prompting the cardholder to confirm legitimate use or report confirmed fraud. _
|
211
|
+
# `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
212
|
+
# review. _ `EXPIRED` - The card has expired and has been closed without being
|
213
|
+
# reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
|
214
|
+
# has been returned. \* `OTHER` - The reason for the status does not fall into any
|
215
|
+
# of the above categories. A comment can be provided to specify the reason.
|
216
|
+
#
|
217
|
+
# @return [Symbol, Lithic::Models::NonPCICard::Substatus, nil]
|
218
|
+
optional :substatus, enum: -> { Lithic::NonPCICard::Substatus }
|
219
|
+
|
220
|
+
# @!method initialize(token:, account_token:, card_program_token:, created:, funding:, last_four:, pin_status:, spend_limit:, spend_limit_duration:, state:, type:, auth_rule_tokens: nil, cardholder_currency: nil, comment: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, hostname: nil, memo: nil, network_program_token: nil, pending_commands: nil, product_id: nil, replacement_for: nil, substatus: nil)
|
182
221
|
# Some parameter documentations has been truncated, see
|
183
222
|
# {Lithic::Models::NonPCICard} for more details.
|
184
223
|
#
|
@@ -212,6 +251,8 @@ module Lithic
|
|
212
251
|
#
|
213
252
|
# @param cardholder_currency [String] 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
214
253
|
#
|
254
|
+
# @param comment [String] Additional context or information related to the card.
|
255
|
+
#
|
215
256
|
# @param digital_card_art_token [String] Specifies the digital card art to be displayed in the user's digital wallet afte
|
216
257
|
#
|
217
258
|
# @param exp_month [String] Two digit (MM) expiry month.
|
@@ -222,11 +263,16 @@ module Lithic
|
|
222
263
|
#
|
223
264
|
# @param memo [String] Friendly name to identify the card.
|
224
265
|
#
|
266
|
+
# @param network_program_token [String, nil] Globally unique identifier for the card's network program. Null if the card is n
|
267
|
+
#
|
225
268
|
# @param pending_commands [Array<String>] Indicates if there are offline PIN changes pending card interaction with an offl
|
226
269
|
#
|
227
270
|
# @param product_id [String] Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
228
271
|
#
|
229
272
|
# @param replacement_for [String, nil] If the card is a replacement for another card, the globally unique identifier fo
|
273
|
+
#
|
274
|
+
# @param substatus [Symbol, Lithic::Models::NonPCICard::Substatus] Card state substatus values: \* `LOST` - The physical card is no longer in the
|
275
|
+
# ca
|
230
276
|
|
231
277
|
# @see Lithic::Models::NonPCICard#funding
|
232
278
|
class Funding < Lithic::Internal::Type::BaseModel
|
@@ -401,6 +447,47 @@ module Lithic
|
|
401
447
|
# @!method self.values
|
402
448
|
# @return [Array<Symbol>]
|
403
449
|
end
|
450
|
+
|
451
|
+
# Card state substatus values: _ `LOST` - The physical card is no longer in the
|
452
|
+
# cardholder's possession due to being lost or never received by the cardholder. _
|
453
|
+
# `COMPROMISED` - Card information has been exposed, potentially leading to
|
454
|
+
# unauthorized access. This may involve physical card theft, cloning, or online
|
455
|
+
# data breaches. _ `DAMAGED` - The physical card is not functioning properly, such
|
456
|
+
# as having chip failures or a demagnetized magnetic stripe. _
|
457
|
+
# `END_USER_REQUEST` - The cardholder requested the closure of the card for
|
458
|
+
# reasons unrelated to fraud or damage, such as switching to a different product
|
459
|
+
# or closing the account. _ `ISSUER_REQUEST` - The issuer closed the card for
|
460
|
+
# reasons unrelated to fraud or damage, such as account inactivity, product or
|
461
|
+
# policy changes, or technology upgrades. _ `NOT_ACTIVE` - The card hasn’t had any
|
462
|
+
# transaction activity for a specified period, applicable to statuses like
|
463
|
+
# `PAUSED` or `CLOSED`. _ `SUSPICIOUS_ACTIVITY` - The card has one or more
|
464
|
+
# suspicious transactions or activities that require review. This can involve
|
465
|
+
# prompting the cardholder to confirm legitimate use or report confirmed fraud. _
|
466
|
+
# `INTERNAL_REVIEW` - The card is temporarily paused pending further internal
|
467
|
+
# review. _ `EXPIRED` - The card has expired and has been closed without being
|
468
|
+
# reissued. _ `UNDELIVERABLE` - The card cannot be delivered to the cardholder and
|
469
|
+
# has been returned. \* `OTHER` - The reason for the status does not fall into any
|
470
|
+
# of the above categories. A comment can be provided to specify the reason.
|
471
|
+
#
|
472
|
+
# @see Lithic::Models::NonPCICard#substatus
|
473
|
+
module Substatus
|
474
|
+
extend Lithic::Internal::Type::Enum
|
475
|
+
|
476
|
+
LOST = :LOST
|
477
|
+
COMPROMISED = :COMPROMISED
|
478
|
+
DAMAGED = :DAMAGED
|
479
|
+
END_USER_REQUEST = :END_USER_REQUEST
|
480
|
+
ISSUER_REQUEST = :ISSUER_REQUEST
|
481
|
+
NOT_ACTIVE = :NOT_ACTIVE
|
482
|
+
SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY
|
483
|
+
INTERNAL_REVIEW = :INTERNAL_REVIEW
|
484
|
+
EXPIRED = :EXPIRED
|
485
|
+
UNDELIVERABLE = :UNDELIVERABLE
|
486
|
+
OTHER = :OTHER
|
487
|
+
|
488
|
+
# @!method self.values
|
489
|
+
# @return [Array<Symbol>]
|
490
|
+
end
|
404
491
|
end
|
405
492
|
end
|
406
493
|
end
|
@@ -73,6 +73,12 @@ module Lithic
|
|
73
73
|
# @return [Integer]
|
74
74
|
required :pending_amount, Integer
|
75
75
|
|
76
|
+
# @!attribute related_account_tokens
|
77
|
+
# Account tokens related to a payment transaction
|
78
|
+
#
|
79
|
+
# @return [Lithic::Models::Payment::RelatedAccountTokens]
|
80
|
+
required :related_account_tokens, -> { Lithic::Payment::RelatedAccountTokens }
|
81
|
+
|
76
82
|
# @!attribute result
|
77
83
|
# APPROVED payments were successful while DECLINED payments were declined by
|
78
84
|
# Lithic or returned.
|
@@ -121,7 +127,13 @@ module Lithic
|
|
121
127
|
# @return [Date, nil]
|
122
128
|
optional :expected_release_date, Date
|
123
129
|
|
124
|
-
# @!
|
130
|
+
# @!attribute type
|
131
|
+
# Payment type indicating the specific ACH message or Fedwire transfer type
|
132
|
+
#
|
133
|
+
# @return [Symbol, Lithic::Models::Payment::Type, nil]
|
134
|
+
optional :type, enum: -> { Lithic::Payment::Type }
|
135
|
+
|
136
|
+
# @!method initialize(token:, category:, created:, currency:, descriptor:, direction:, events:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, user_defined_id:, expected_release_date: nil, type: nil)
|
125
137
|
# Some parameter documentations has been truncated, see {Lithic::Models::Payment}
|
126
138
|
# for more details.
|
127
139
|
#
|
@@ -149,6 +161,8 @@ module Lithic
|
|
149
161
|
#
|
150
162
|
# @param pending_amount [Integer] Pending amount of the payment in the currency's smallest unit (e.g., cents).
|
151
163
|
#
|
164
|
+
# @param related_account_tokens [Lithic::Models::Payment::RelatedAccountTokens] Account tokens related to a payment transaction
|
165
|
+
#
|
152
166
|
# @param result [Symbol, Lithic::Models::Payment::Result] APPROVED payments were successful while DECLINED payments were declined by Lithi
|
153
167
|
#
|
154
168
|
# @param settled_amount [Integer] Amount of the payment that has been settled in the currency's smallest unit (e.g
|
@@ -162,6 +176,8 @@ module Lithic
|
|
162
176
|
# @param user_defined_id [String, nil]
|
163
177
|
#
|
164
178
|
# @param expected_release_date [Date] Date when the financial transaction expected to be released after settlement
|
179
|
+
#
|
180
|
+
# @param type [Symbol, Lithic::Models::Payment::Type] Payment type indicating the specific ACH message or Fedwire transfer type
|
165
181
|
|
166
182
|
# Payment category
|
167
183
|
#
|
@@ -249,6 +265,8 @@ module Lithic
|
|
249
265
|
# Some parameter documentations has been truncated, see
|
250
266
|
# {Lithic::Models::Payment::Event} for more details.
|
251
267
|
#
|
268
|
+
# Payment Event
|
269
|
+
#
|
252
270
|
# @param token [String] Globally unique identifier.
|
253
271
|
#
|
254
272
|
# @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
|
@@ -401,6 +419,28 @@ module Lithic
|
|
401
419
|
end
|
402
420
|
end
|
403
421
|
|
422
|
+
# @see Lithic::Models::Payment#related_account_tokens
|
423
|
+
class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
|
424
|
+
# @!attribute account_token
|
425
|
+
# Globally unique identifier for the account
|
426
|
+
#
|
427
|
+
# @return [String, nil]
|
428
|
+
required :account_token, String, nil?: true
|
429
|
+
|
430
|
+
# @!attribute business_account_token
|
431
|
+
# Globally unique identifier for the business account
|
432
|
+
#
|
433
|
+
# @return [String, nil]
|
434
|
+
required :business_account_token, String, nil?: true
|
435
|
+
|
436
|
+
# @!method initialize(account_token:, business_account_token:)
|
437
|
+
# Account tokens related to a payment transaction
|
438
|
+
#
|
439
|
+
# @param account_token [String, nil] Globally unique identifier for the account
|
440
|
+
#
|
441
|
+
# @param business_account_token [String, nil] Globally unique identifier for the business account
|
442
|
+
end
|
443
|
+
|
404
444
|
# APPROVED payments were successful while DECLINED payments were declined by
|
405
445
|
# Lithic or returned.
|
406
446
|
#
|
@@ -446,6 +486,25 @@ module Lithic
|
|
446
486
|
# @!method self.values
|
447
487
|
# @return [Array<Symbol>]
|
448
488
|
end
|
489
|
+
|
490
|
+
# Payment type indicating the specific ACH message or Fedwire transfer type
|
491
|
+
#
|
492
|
+
# @see Lithic::Models::Payment#type
|
493
|
+
module Type
|
494
|
+
extend Lithic::Internal::Type::Enum
|
495
|
+
|
496
|
+
ORIGINATION_CREDIT = :ORIGINATION_CREDIT
|
497
|
+
ORIGINATION_DEBIT = :ORIGINATION_DEBIT
|
498
|
+
RECEIPT_CREDIT = :RECEIPT_CREDIT
|
499
|
+
RECEIPT_DEBIT = :RECEIPT_DEBIT
|
500
|
+
WIRE_INBOUND_PAYMENT = :WIRE_INBOUND_PAYMENT
|
501
|
+
WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN
|
502
|
+
WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
|
503
|
+
WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
|
504
|
+
|
505
|
+
# @!method self.values
|
506
|
+
# @return [Array<Symbol>]
|
507
|
+
end
|
449
508
|
end
|
450
509
|
end
|
451
510
|
end
|
@@ -43,6 +43,7 @@ module Lithic
|
|
43
43
|
ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
|
44
44
|
ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
|
45
45
|
ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
|
46
|
+
ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
|
46
47
|
ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
|
47
48
|
ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
|
48
49
|
ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
|
@@ -16,7 +16,7 @@ module Lithic
|
|
16
16
|
optional :ending_before, String
|
17
17
|
|
18
18
|
# @!attribute page_size
|
19
|
-
#
|
19
|
+
# Number of records per page.
|
20
20
|
#
|
21
21
|
# @return [Integer, nil]
|
22
22
|
optional :page_size, Integer
|
@@ -34,7 +34,7 @@ module Lithic
|
|
34
34
|
#
|
35
35
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
36
36
|
#
|
37
|
-
# @param page_size [Integer]
|
37
|
+
# @param page_size [Integer] Number of records per page.
|
38
38
|
#
|
39
39
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
40
40
|
#
|