increase 1.354.0 → 1.356.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/README.md +1 -1
- data/lib/increase/client.rb +18 -0
- data/lib/increase/models/account_number.rb +1 -1
- data/lib/increase/models/account_number_create_params.rb +1 -1
- data/lib/increase/models/account_number_list_params.rb +1 -1
- data/lib/increase/models/account_number_update_params.rb +1 -1
- data/lib/increase/models/card_create_details_token_params.rb +22 -0
- data/lib/increase/models/card_details_token.rb +57 -0
- data/lib/increase/models/card_payment.rb +26 -1
- data/lib/increase/models/check_deposit.rb +3 -0
- data/lib/increase/models/digital_wallet_token.rb +3 -0
- data/lib/increase/models/digital_wallet_token_request.rb +307 -0
- data/lib/increase/models/digital_wallet_token_request_list_params.rb +99 -0
- data/lib/increase/models/digital_wallet_token_request_retrieve_params.rb +22 -0
- data/lib/increase/models/digital_wallet_token_transition_params.rb +48 -0
- data/lib/increase/models/inbound_real_time_payments_request_for_payment.rb +318 -0
- data/lib/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rb +113 -0
- data/lib/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rb +25 -0
- data/lib/increase/models/physical_check_batch.rb +266 -0
- data/lib/increase/models/physical_check_batch_cancel_params.rb +22 -0
- data/lib/increase/models/physical_check_batch_complete_params.rb +22 -0
- data/lib/increase/models/physical_check_batch_create_params.rb +189 -0
- data/lib/increase/models/real_time_decision.rb +6 -0
- data/lib/increase/models/real_time_payments_request_for_payment.rb +658 -0
- data/lib/increase/models/real_time_payments_requests_for_payment_cancel_params.rb +64 -0
- data/lib/increase/models/real_time_payments_requests_for_payment_create_params.rb +194 -0
- data/lib/increase/models/real_time_payments_requests_for_payment_list_params.rb +117 -0
- data/lib/increase/models/real_time_payments_requests_for_payment_retrieve_params.rb +23 -0
- data/lib/increase/models/simulations/fednow_transfer_complete_params.rb +103 -0
- data/lib/increase/models/simulations/inbound_check_deposit_accept_params.rb +24 -0
- data/lib/increase/models/transaction.rb +26 -1
- data/lib/increase/models.rb +42 -0
- data/lib/increase/resources/cards.rb +23 -0
- data/lib/increase/resources/digital_wallet_token_requests.rb +68 -0
- data/lib/increase/resources/digital_wallet_tokens.rb +28 -0
- data/lib/increase/resources/inbound_real_time_payments_requests_for_payment.rb +79 -0
- data/lib/increase/resources/physical_check_batches.rb +86 -0
- data/lib/increase/resources/real_time_payments_requests_for_payment.rb +159 -0
- data/lib/increase/resources/simulations/fednow_transfers.rb +43 -0
- data/lib/increase/resources/simulations/inbound_check_deposits.rb +22 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +25 -0
- data/rbi/increase/client.rbi +14 -0
- data/rbi/increase/models/account_number.rbi +1 -1
- data/rbi/increase/models/account_number_create_params.rbi +1 -1
- data/rbi/increase/models/account_number_list_params.rbi +1 -1
- data/rbi/increase/models/account_number_update_params.rbi +1 -1
- data/rbi/increase/models/card_create_details_token_params.rbi +43 -0
- data/rbi/increase/models/card_details_token.rbi +85 -0
- data/rbi/increase/models/card_payment.rbi +52 -0
- data/rbi/increase/models/check_deposit.rbi +7 -0
- data/rbi/increase/models/digital_wallet_token.rbi +7 -0
- data/rbi/increase/models/digital_wallet_token_request.rbi +586 -0
- data/rbi/increase/models/digital_wallet_token_request_list_params.rbi +171 -0
- data/rbi/increase/models/digital_wallet_token_request_retrieve_params.rbi +46 -0
- data/rbi/increase/models/digital_wallet_token_transition_params.rbi +100 -0
- data/rbi/increase/models/inbound_real_time_payments_request_for_payment.rbi +442 -0
- data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbi +188 -0
- data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbi +48 -0
- data/rbi/increase/models/physical_check_batch.rbi +382 -0
- data/rbi/increase/models/physical_check_batch_cancel_params.rbi +46 -0
- data/rbi/increase/models/physical_check_batch_complete_params.rbi +46 -0
- data/rbi/increase/models/physical_check_batch_create_params.rbi +326 -0
- data/rbi/increase/models/real_time_decision.rbi +14 -0
- data/rbi/increase/models/real_time_payments_request_for_payment.rbi +1166 -0
- data/rbi/increase/models/real_time_payments_requests_for_payment_cancel_params.rbi +136 -0
- data/rbi/increase/models/real_time_payments_requests_for_payment_create_params.rbi +303 -0
- data/rbi/increase/models/real_time_payments_requests_for_payment_list_params.rbi +192 -0
- data/rbi/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbi +46 -0
- data/rbi/increase/models/simulations/fednow_transfer_complete_params.rbi +243 -0
- data/rbi/increase/models/simulations/inbound_check_deposit_accept_params.rbi +48 -0
- data/rbi/increase/models/transaction.rbi +52 -0
- data/rbi/increase/models.rbi +50 -0
- data/rbi/increase/resources/cards.rbi +17 -0
- data/rbi/increase/resources/digital_wallet_token_requests.rbi +52 -0
- data/rbi/increase/resources/digital_wallet_tokens.rbi +21 -0
- data/rbi/increase/resources/inbound_real_time_payments_requests_for_payment.rbi +62 -0
- data/rbi/increase/resources/physical_check_batches.rbi +66 -0
- data/rbi/increase/resources/real_time_payments_requests_for_payment.rbi +127 -0
- data/rbi/increase/resources/simulations/fednow_transfers.rbi +34 -0
- data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +16 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +8 -0
- data/sig/increase/models/account_number.rbs +1 -1
- data/sig/increase/models/account_number_create_params.rbs +1 -1
- data/sig/increase/models/account_number_list_params.rbs +1 -1
- data/sig/increase/models/account_number_update_params.rbs +1 -1
- data/sig/increase/models/card_create_details_token_params.rbs +23 -0
- data/sig/increase/models/card_details_token.rbs +40 -0
- data/sig/increase/models/card_payment.rbs +19 -0
- data/sig/increase/models/check_deposit.rbs +5 -1
- data/sig/increase/models/digital_wallet_token.rbs +5 -1
- data/sig/increase/models/digital_wallet_token_request.rbs +260 -0
- data/sig/increase/models/digital_wallet_token_request_list_params.rbs +86 -0
- data/sig/increase/models/digital_wallet_token_request_retrieve_params.rbs +24 -0
- data/sig/increase/models/digital_wallet_token_transition_params.rbs +48 -0
- data/sig/increase/models/inbound_real_time_payments_request_for_payment.rbs +200 -0
- data/sig/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbs +93 -0
- data/sig/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
- data/sig/increase/models/physical_check_batch.rbs +193 -0
- data/sig/increase/models/physical_check_batch_cancel_params.rbs +24 -0
- data/sig/increase/models/physical_check_batch_complete_params.rbs +24 -0
- data/sig/increase/models/physical_check_batch_create_params.rbs +156 -0
- data/sig/increase/models/real_time_decision.rbs +10 -2
- data/sig/increase/models/real_time_payments_request_for_payment.rbs +513 -0
- data/sig/increase/models/real_time_payments_requests_for_payment_cancel_params.rbs +66 -0
- data/sig/increase/models/real_time_payments_requests_for_payment_create_params.rbs +149 -0
- data/sig/increase/models/real_time_payments_requests_for_payment_list_params.rbs +93 -0
- data/sig/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
- data/sig/increase/models/simulations/fednow_transfer_complete_params.rbs +122 -0
- data/sig/increase/models/simulations/inbound_check_deposit_accept_params.rbs +26 -0
- data/sig/increase/models/transaction.rbs +19 -0
- data/sig/increase/models.rbs +36 -0
- data/sig/increase/resources/cards.rbs +5 -0
- data/sig/increase/resources/digital_wallet_token_requests.rbs +20 -0
- data/sig/increase/resources/digital_wallet_tokens.rbs +6 -0
- data/sig/increase/resources/inbound_real_time_payments_requests_for_payment.rbs +21 -0
- data/sig/increase/resources/physical_check_batches.rbs +24 -0
- data/sig/increase/resources/real_time_payments_requests_for_payment.rbs +41 -0
- data/sig/increase/resources/simulations/fednow_transfers.rbs +15 -0
- data/sig/increase/resources/simulations/inbound_check_deposits.rbs +5 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +77 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4532da51bca0cb12caf00343e70ca42a16fbbf447eeced13b68420c0da8346a
|
|
4
|
+
data.tar.gz: f253c671aa0245eaba766cff42ae7a7f6308d80a872e2f848e884ba0902e2526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc8148ea32b6896d5ea2af7557c0def2abfb5ec27eafb83edf05c1b5df4343372bf21e0eceac78cdf986801dd38f81606186336ba6f03f2d028f9515d18cd485
|
|
7
|
+
data.tar.gz: a1ca94f05e79c3603e74544b9385cdad2535631a934cb77b680896daa3a14cbd1cec8c1c1fdaa944c228349c218fa392c6ea091a9b9587318d4adfba52e694ca
|
data/README.md
CHANGED
data/lib/increase/client.rb
CHANGED
|
@@ -59,6 +59,9 @@ module Increase
|
|
|
59
59
|
# @return [Increase::Resources::DigitalWalletTokens]
|
|
60
60
|
attr_reader :digital_wallet_tokens
|
|
61
61
|
|
|
62
|
+
# @return [Increase::Resources::DigitalWalletTokenRequests]
|
|
63
|
+
attr_reader :digital_wallet_token_requests
|
|
64
|
+
|
|
62
65
|
# @return [Increase::Resources::Transactions]
|
|
63
66
|
attr_reader :transactions
|
|
64
67
|
|
|
@@ -101,6 +104,12 @@ module Increase
|
|
|
101
104
|
# @return [Increase::Resources::InboundRealTimePaymentsTransfers]
|
|
102
105
|
attr_reader :inbound_real_time_payments_transfers
|
|
103
106
|
|
|
107
|
+
# @return [Increase::Resources::RealTimePaymentsRequestsForPayment]
|
|
108
|
+
attr_reader :real_time_payments_requests_for_payment
|
|
109
|
+
|
|
110
|
+
# @return [Increase::Resources::InboundRealTimePaymentsRequestsForPayment]
|
|
111
|
+
attr_reader :inbound_real_time_payments_requests_for_payment
|
|
112
|
+
|
|
104
113
|
# @return [Increase::Resources::FednowTransfers]
|
|
105
114
|
attr_reader :fednow_transfers
|
|
106
115
|
|
|
@@ -194,6 +203,9 @@ module Increase
|
|
|
194
203
|
# @return [Increase::Resources::CardValidations]
|
|
195
204
|
attr_reader :card_validations
|
|
196
205
|
|
|
206
|
+
# @return [Increase::Resources::PhysicalCheckBatches]
|
|
207
|
+
attr_reader :physical_check_batches
|
|
208
|
+
|
|
197
209
|
# @return [Increase::Resources::Simulations]
|
|
198
210
|
attr_reader :simulations
|
|
199
211
|
|
|
@@ -290,6 +302,7 @@ module Increase
|
|
|
290
302
|
@digital_card_profiles = Increase::Resources::DigitalCardProfiles.new(client: self)
|
|
291
303
|
@physical_card_profiles = Increase::Resources::PhysicalCardProfiles.new(client: self)
|
|
292
304
|
@digital_wallet_tokens = Increase::Resources::DigitalWalletTokens.new(client: self)
|
|
305
|
+
@digital_wallet_token_requests = Increase::Resources::DigitalWalletTokenRequests.new(client: self)
|
|
293
306
|
@transactions = Increase::Resources::Transactions.new(client: self)
|
|
294
307
|
@pending_transactions = Increase::Resources::PendingTransactions.new(client: self)
|
|
295
308
|
@declined_transactions = Increase::Resources::DeclinedTransactions.new(client: self)
|
|
@@ -305,6 +318,10 @@ module Increase
|
|
|
305
318
|
@real_time_payments_transfers = Increase::Resources::RealTimePaymentsTransfers.new(client: self)
|
|
306
319
|
@inbound_real_time_payments_transfers =
|
|
307
320
|
Increase::Resources::InboundRealTimePaymentsTransfers.new(client: self)
|
|
321
|
+
@real_time_payments_requests_for_payment =
|
|
322
|
+
Increase::Resources::RealTimePaymentsRequestsForPayment.new(client: self)
|
|
323
|
+
@inbound_real_time_payments_requests_for_payment =
|
|
324
|
+
Increase::Resources::InboundRealTimePaymentsRequestsForPayment.new(client: self)
|
|
308
325
|
@fednow_transfers = Increase::Resources::FednowTransfers.new(client: self)
|
|
309
326
|
@inbound_fednow_transfers = Increase::Resources::InboundFednowTransfers.new(client: self)
|
|
310
327
|
@swift_transfers = Increase::Resources::SwiftTransfers.new(client: self)
|
|
@@ -336,6 +353,7 @@ module Increase
|
|
|
336
353
|
@card_tokens = Increase::Resources::CardTokens.new(client: self)
|
|
337
354
|
@card_push_transfers = Increase::Resources::CardPushTransfers.new(client: self)
|
|
338
355
|
@card_validations = Increase::Resources::CardValidations.new(client: self)
|
|
356
|
+
@physical_check_batches = Increase::Resources::PhysicalCheckBatches.new(client: self)
|
|
339
357
|
@simulations = Increase::Resources::Simulations.new(client: self)
|
|
340
358
|
end
|
|
341
359
|
end
|
|
@@ -141,7 +141,7 @@ module Increase
|
|
|
141
141
|
# ACH Debits are allowed.
|
|
142
142
|
ALLOWED = :allowed
|
|
143
143
|
|
|
144
|
-
# ACH Debits are blocked.
|
|
144
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
145
145
|
BLOCKED = :blocked
|
|
146
146
|
|
|
147
147
|
# @!method self.values
|
|
@@ -74,7 +74,7 @@ module Increase
|
|
|
74
74
|
# ACH Debits are allowed.
|
|
75
75
|
ALLOWED = :allowed
|
|
76
76
|
|
|
77
|
-
# ACH Debits are blocked.
|
|
77
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
78
78
|
BLOCKED = :blocked
|
|
79
79
|
|
|
80
80
|
# @!method self.values
|
|
@@ -100,7 +100,7 @@ module Increase
|
|
|
100
100
|
# ACH Debits are allowed.
|
|
101
101
|
ALLOWED = :allowed
|
|
102
102
|
|
|
103
|
-
# ACH Debits are blocked.
|
|
103
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
104
104
|
BLOCKED = :blocked
|
|
105
105
|
|
|
106
106
|
# @!method self.values
|
|
@@ -80,7 +80,7 @@ module Increase
|
|
|
80
80
|
# ACH Debits are allowed.
|
|
81
81
|
ALLOWED = :allowed
|
|
82
82
|
|
|
83
|
-
# ACH Debits are blocked.
|
|
83
|
+
# ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
|
|
84
84
|
BLOCKED = :blocked
|
|
85
85
|
|
|
86
86
|
# @!method self.values
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Cards#create_details_token
|
|
6
|
+
class CardCreateDetailsTokenParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute card_id
|
|
11
|
+
# The identifier of the Card to mint a details token for.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :card_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(card_id:, request_options: {})
|
|
17
|
+
# @param card_id [String] The identifier of the Card to mint a details token for.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::Cards#create_details_token
|
|
6
|
+
class CardDetailsToken < Increase::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute token
|
|
8
|
+
# The token. Pass this to the `@increasebank/card-elements` library in your
|
|
9
|
+
# frontend. Treat it as a credential: it authorizes anyone holding it to read the
|
|
10
|
+
# Card's details until it expires.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :token, String
|
|
14
|
+
|
|
15
|
+
# @!attribute expires_at
|
|
16
|
+
# The time the token will expire. Tokens are valid for one hour.
|
|
17
|
+
#
|
|
18
|
+
# @return [Time]
|
|
19
|
+
required :expires_at, Time
|
|
20
|
+
|
|
21
|
+
# @!attribute type
|
|
22
|
+
# A constant representing the object's type. For this resource it will always be
|
|
23
|
+
# `card_details_token`.
|
|
24
|
+
#
|
|
25
|
+
# @return [Symbol, Increase::Models::CardDetailsToken::Type]
|
|
26
|
+
required :type, enum: -> { Increase::CardDetailsToken::Type }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(token:, expires_at:, type:)
|
|
29
|
+
# A short-lived token that authorizes Increase Card Elements to render the details
|
|
30
|
+
# of a single Card.
|
|
31
|
+
#
|
|
32
|
+
# @param token [String]
|
|
33
|
+
# The token. Pass this to the `@increasebank/card-elements` library in your
|
|
34
|
+
# frontend. Treat it as a credential: it authorizes anyone holding it to read the
|
|
35
|
+
# Card's details until it expires.
|
|
36
|
+
#
|
|
37
|
+
# @param expires_at [Time] The time the token will expire. Tokens are valid for one hour.
|
|
38
|
+
#
|
|
39
|
+
# @param type [Symbol, Increase::Models::CardDetailsToken::Type]
|
|
40
|
+
# A constant representing the object's type. For this resource it will always be
|
|
41
|
+
# `card_details_token`.
|
|
42
|
+
|
|
43
|
+
# A constant representing the object's type. For this resource it will always be
|
|
44
|
+
# `card_details_token`.
|
|
45
|
+
#
|
|
46
|
+
# @see Increase::Models::CardDetailsToken#type
|
|
47
|
+
module Type
|
|
48
|
+
extend Increase::Internal::Type::Enum
|
|
49
|
+
|
|
50
|
+
CARD_DETAILS_TOKEN = :card_details_token
|
|
51
|
+
|
|
52
|
+
# @!method self.values
|
|
53
|
+
# @return [Array<Symbol>]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -9004,6 +9004,12 @@ module Increase
|
|
|
9004
9004
|
# @return [String, nil]
|
|
9005
9005
|
required :merchant_state, String, nil?: true
|
|
9006
9006
|
|
|
9007
|
+
# @!attribute network
|
|
9008
|
+
# The card network on which this transaction was processed.
|
|
9009
|
+
#
|
|
9010
|
+
# @return [Symbol, Increase::Models::CardPayment::Element::CardRefund::Network]
|
|
9011
|
+
required :network, enum: -> { Increase::CardPayment::Element::CardRefund::Network }
|
|
9012
|
+
|
|
9007
9013
|
# @!attribute network_identifiers
|
|
9008
9014
|
# Network-specific identifiers for this refund.
|
|
9009
9015
|
#
|
|
@@ -9054,7 +9060,7 @@ module Increase
|
|
|
9054
9060
|
# @return [Symbol, Increase::Models::CardPayment::Element::CardRefund::Type]
|
|
9055
9061
|
required :type, enum: -> { Increase::CardPayment::Element::CardRefund::Type }
|
|
9056
9062
|
|
|
9057
|
-
# @!method initialize(id:, amount:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network_identifiers:, presentment_amount:, presentment_currency:, purchase_details:, scheme_fees:, transaction_id:, type:)
|
|
9063
|
+
# @!method initialize(id:, amount:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, presentment_amount:, presentment_currency:, purchase_details:, scheme_fees:, transaction_id:, type:)
|
|
9058
9064
|
# A Card Refund object. This field will be present in the JSON response if and
|
|
9059
9065
|
# only if `category` is equal to `card_refund`. Card Refunds move money back to
|
|
9060
9066
|
# the cardholder. While they are usually connected to a Card Settlement, an
|
|
@@ -9097,6 +9103,9 @@ module Increase
|
|
|
9097
9103
|
#
|
|
9098
9104
|
# @param merchant_state [String, nil] The state the merchant resides in.
|
|
9099
9105
|
#
|
|
9106
|
+
# @param network [Symbol, Increase::Models::CardPayment::Element::CardRefund::Network]
|
|
9107
|
+
# The card network on which this transaction was processed.
|
|
9108
|
+
#
|
|
9100
9109
|
# @param network_identifiers [Increase::Models::CardPayment::Element::CardRefund::NetworkIdentifiers]
|
|
9101
9110
|
# Network-specific identifiers for this refund.
|
|
9102
9111
|
#
|
|
@@ -9230,6 +9239,22 @@ module Increase
|
|
|
9230
9239
|
end
|
|
9231
9240
|
end
|
|
9232
9241
|
|
|
9242
|
+
# The card network on which this transaction was processed.
|
|
9243
|
+
#
|
|
9244
|
+
# @see Increase::Models::CardPayment::Element::CardRefund#network
|
|
9245
|
+
module Network
|
|
9246
|
+
extend Increase::Internal::Type::Enum
|
|
9247
|
+
|
|
9248
|
+
# Visa
|
|
9249
|
+
VISA = :visa
|
|
9250
|
+
|
|
9251
|
+
# Pulse
|
|
9252
|
+
PULSE = :pulse
|
|
9253
|
+
|
|
9254
|
+
# @!method self.values
|
|
9255
|
+
# @return [Array<Symbol>]
|
|
9256
|
+
end
|
|
9257
|
+
|
|
9233
9258
|
# @see Increase::Models::CardPayment::Element::CardRefund#network_identifiers
|
|
9234
9259
|
class NetworkIdentifiers < Increase::Internal::Type::BaseModel
|
|
9235
9260
|
# @!attribute acquirer_business_id
|
|
@@ -333,6 +333,9 @@ module Increase
|
|
|
333
333
|
module Reason
|
|
334
334
|
extend Increase::Internal::Type::Enum
|
|
335
335
|
|
|
336
|
+
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
|
|
337
|
+
WRONG_PAYEE_CREDIT = :wrong_payee_credit
|
|
338
|
+
|
|
336
339
|
# The check was deposited with a different amount than what was written on the check.
|
|
337
340
|
ADJUSTED_AMOUNT = :adjusted_amount
|
|
338
341
|
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::DigitalWalletTokenRequests#retrieve
|
|
6
|
+
class DigitalWalletTokenRequest < Increase::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The Digital Wallet Token Request identifier.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute card_id
|
|
14
|
+
# The identifier of the Card the tokenization was requested for.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :card_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
21
|
+
# the Digital Wallet Token Request was created.
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute declined
|
|
27
|
+
# Details of the decline. Present if and only if `outcome` is `declined`.
|
|
28
|
+
#
|
|
29
|
+
# @return [Increase::Models::DigitalWalletTokenRequest::Declined, nil]
|
|
30
|
+
required :declined, -> { Increase::DigitalWalletTokenRequest::Declined }, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute device
|
|
33
|
+
# The device that requested the tokenization.
|
|
34
|
+
#
|
|
35
|
+
# @return [Increase::Models::DigitalWalletTokenRequest::Device]
|
|
36
|
+
required :device, -> { Increase::DigitalWalletTokenRequest::Device }
|
|
37
|
+
|
|
38
|
+
# @!attribute outcome
|
|
39
|
+
# The outcome of the tokenization request.
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Outcome]
|
|
42
|
+
required :outcome, enum: -> { Increase::DigitalWalletTokenRequest::Outcome }
|
|
43
|
+
|
|
44
|
+
# @!attribute provisioned
|
|
45
|
+
# Details of the provisioned Digital Wallet Token. Present if and only if
|
|
46
|
+
# `outcome` is `provisioned`.
|
|
47
|
+
#
|
|
48
|
+
# @return [Increase::Models::DigitalWalletTokenRequest::Provisioned, nil]
|
|
49
|
+
required :provisioned, -> { Increase::DigitalWalletTokenRequest::Provisioned }, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute token_reference_identifier
|
|
52
|
+
# The reference identifier assigned by the card network to the token.
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :token_reference_identifier, String
|
|
56
|
+
|
|
57
|
+
# @!attribute token_requestor
|
|
58
|
+
# The digital wallet app being used.
|
|
59
|
+
#
|
|
60
|
+
# @return [Symbol, Increase::Models::DigitalWalletTokenRequest::TokenRequestor]
|
|
61
|
+
required :token_requestor, enum: -> { Increase::DigitalWalletTokenRequest::TokenRequestor }
|
|
62
|
+
|
|
63
|
+
# @!attribute type
|
|
64
|
+
# A constant representing the object's type. For this resource it will always be
|
|
65
|
+
# `digital_wallet_token_request`.
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Type]
|
|
68
|
+
required :type, enum: -> { Increase::DigitalWalletTokenRequest::Type }
|
|
69
|
+
|
|
70
|
+
# @!method initialize(id:, card_id:, created_at:, declined:, device:, outcome:, provisioned:, token_reference_identifier:, token_requestor:, type:)
|
|
71
|
+
# A Digital Wallet Token Request is created each time a digital wallet app, such
|
|
72
|
+
# as Apple Pay or Google Pay, requests to tokenize a Card.
|
|
73
|
+
#
|
|
74
|
+
# @param id [String] The Digital Wallet Token Request identifier.
|
|
75
|
+
#
|
|
76
|
+
# @param card_id [String] The identifier of the Card the tokenization was requested for.
|
|
77
|
+
#
|
|
78
|
+
# @param created_at [Time]
|
|
79
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
80
|
+
# the Digital Wallet Token Request was created.
|
|
81
|
+
#
|
|
82
|
+
# @param declined [Increase::Models::DigitalWalletTokenRequest::Declined, nil]
|
|
83
|
+
# Details of the decline. Present if and only if `outcome` is `declined`.
|
|
84
|
+
#
|
|
85
|
+
# @param device [Increase::Models::DigitalWalletTokenRequest::Device]
|
|
86
|
+
# The device that requested the tokenization.
|
|
87
|
+
#
|
|
88
|
+
# @param outcome [Symbol, Increase::Models::DigitalWalletTokenRequest::Outcome]
|
|
89
|
+
# The outcome of the tokenization request.
|
|
90
|
+
#
|
|
91
|
+
# @param provisioned [Increase::Models::DigitalWalletTokenRequest::Provisioned, nil]
|
|
92
|
+
# Details of the provisioned Digital Wallet Token. Present if and only if
|
|
93
|
+
# `outcome` is `provisioned`.
|
|
94
|
+
#
|
|
95
|
+
# @param token_reference_identifier [String]
|
|
96
|
+
# The reference identifier assigned by the card network to the token.
|
|
97
|
+
#
|
|
98
|
+
# @param token_requestor [Symbol, Increase::Models::DigitalWalletTokenRequest::TokenRequestor]
|
|
99
|
+
# The digital wallet app being used.
|
|
100
|
+
#
|
|
101
|
+
# @param type [Symbol, Increase::Models::DigitalWalletTokenRequest::Type]
|
|
102
|
+
# A constant representing the object's type. For this resource it will always be
|
|
103
|
+
# `digital_wallet_token_request`.
|
|
104
|
+
|
|
105
|
+
# @see Increase::Models::DigitalWalletTokenRequest#declined
|
|
106
|
+
class Declined < Increase::Internal::Type::BaseModel
|
|
107
|
+
# @!attribute reason
|
|
108
|
+
# The reason the tokenization was declined.
|
|
109
|
+
#
|
|
110
|
+
# @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Declined::Reason]
|
|
111
|
+
required :reason, enum: -> { Increase::DigitalWalletTokenRequest::Declined::Reason }
|
|
112
|
+
|
|
113
|
+
# @!method initialize(reason:)
|
|
114
|
+
# Details of the decline. Present if and only if `outcome` is `declined`.
|
|
115
|
+
#
|
|
116
|
+
# @param reason [Symbol, Increase::Models::DigitalWalletTokenRequest::Declined::Reason]
|
|
117
|
+
# The reason the tokenization was declined.
|
|
118
|
+
|
|
119
|
+
# The reason the tokenization was declined.
|
|
120
|
+
#
|
|
121
|
+
# @see Increase::Models::DigitalWalletTokenRequest::Declined#reason
|
|
122
|
+
module Reason
|
|
123
|
+
extend Increase::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
# The card is not active.
|
|
126
|
+
CARD_NOT_ACTIVE = :card_not_active
|
|
127
|
+
|
|
128
|
+
# The card does not have a two-factor authentication method.
|
|
129
|
+
NO_VERIFICATION_METHOD = :no_verification_method
|
|
130
|
+
|
|
131
|
+
# Your webhook timed out when evaluating the token provisioning attempt.
|
|
132
|
+
WEBHOOK_TIMED_OUT = :webhook_timed_out
|
|
133
|
+
|
|
134
|
+
# Your webhook declined the token provisioning attempt.
|
|
135
|
+
WEBHOOK_DECLINED = :webhook_declined
|
|
136
|
+
|
|
137
|
+
# The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
|
|
138
|
+
INCORRECT_CARD_VERIFICATION_CODE = :incorrect_card_verification_code
|
|
139
|
+
|
|
140
|
+
# The tokenization attempt was declined by the token requestor.
|
|
141
|
+
DECLINED_BY_TOKEN_REQUESTOR = :declined_by_token_requestor
|
|
142
|
+
|
|
143
|
+
# The group was locked.
|
|
144
|
+
GROUP_LOCKED = :group_locked
|
|
145
|
+
|
|
146
|
+
# The account has been closed.
|
|
147
|
+
ACCOUNT_CLOSED = :account_closed
|
|
148
|
+
|
|
149
|
+
# The account's entity was not active.
|
|
150
|
+
ENTITY_NOT_ACTIVE = :entity_not_active
|
|
151
|
+
|
|
152
|
+
# @!method self.values
|
|
153
|
+
# @return [Array<Symbol>]
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# @see Increase::Models::DigitalWalletTokenRequest#device
|
|
158
|
+
class Device < Increase::Internal::Type::BaseModel
|
|
159
|
+
# @!attribute device_type
|
|
160
|
+
# Device type.
|
|
161
|
+
#
|
|
162
|
+
# @return [Symbol, Increase::Models::DigitalWalletTokenRequest::Device::DeviceType, nil]
|
|
163
|
+
required :device_type,
|
|
164
|
+
enum: -> {
|
|
165
|
+
Increase::DigitalWalletTokenRequest::Device::DeviceType
|
|
166
|
+
},
|
|
167
|
+
nil?: true
|
|
168
|
+
|
|
169
|
+
# @!attribute identifier
|
|
170
|
+
# ID assigned to the device by the digital wallet provider.
|
|
171
|
+
#
|
|
172
|
+
# @return [String, nil]
|
|
173
|
+
required :identifier, String, nil?: true
|
|
174
|
+
|
|
175
|
+
# @!attribute ip_address
|
|
176
|
+
# IP address of the device.
|
|
177
|
+
#
|
|
178
|
+
# @return [String, nil]
|
|
179
|
+
required :ip_address, String, nil?: true
|
|
180
|
+
|
|
181
|
+
# @!attribute name
|
|
182
|
+
# Name of the device, for example "My Work Phone".
|
|
183
|
+
#
|
|
184
|
+
# @return [String, nil]
|
|
185
|
+
required :name, String, nil?: true
|
|
186
|
+
|
|
187
|
+
# @!method initialize(device_type:, identifier:, ip_address:, name:)
|
|
188
|
+
# The device that requested the tokenization.
|
|
189
|
+
#
|
|
190
|
+
# @param device_type [Symbol, Increase::Models::DigitalWalletTokenRequest::Device::DeviceType, nil]
|
|
191
|
+
# Device type.
|
|
192
|
+
#
|
|
193
|
+
# @param identifier [String, nil] ID assigned to the device by the digital wallet provider.
|
|
194
|
+
#
|
|
195
|
+
# @param ip_address [String, nil] IP address of the device.
|
|
196
|
+
#
|
|
197
|
+
# @param name [String, nil] Name of the device, for example "My Work Phone".
|
|
198
|
+
|
|
199
|
+
# Device type.
|
|
200
|
+
#
|
|
201
|
+
# @see Increase::Models::DigitalWalletTokenRequest::Device#device_type
|
|
202
|
+
module DeviceType
|
|
203
|
+
extend Increase::Internal::Type::Enum
|
|
204
|
+
|
|
205
|
+
# Unknown
|
|
206
|
+
UNKNOWN = :unknown
|
|
207
|
+
|
|
208
|
+
# Mobile Phone
|
|
209
|
+
MOBILE_PHONE = :mobile_phone
|
|
210
|
+
|
|
211
|
+
# Tablet
|
|
212
|
+
TABLET = :tablet
|
|
213
|
+
|
|
214
|
+
# Watch
|
|
215
|
+
WATCH = :watch
|
|
216
|
+
|
|
217
|
+
# Mobile Phone or Tablet
|
|
218
|
+
MOBILEPHONE_OR_TABLET = :mobilephone_or_tablet
|
|
219
|
+
|
|
220
|
+
# PC
|
|
221
|
+
PC = :pc
|
|
222
|
+
|
|
223
|
+
# Household Device
|
|
224
|
+
HOUSEHOLD_DEVICE = :household_device
|
|
225
|
+
|
|
226
|
+
# Wearable Device
|
|
227
|
+
WEARABLE_DEVICE = :wearable_device
|
|
228
|
+
|
|
229
|
+
# Automobile Device
|
|
230
|
+
AUTOMOBILE_DEVICE = :automobile_device
|
|
231
|
+
|
|
232
|
+
# @!method self.values
|
|
233
|
+
# @return [Array<Symbol>]
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# The outcome of the tokenization request.
|
|
238
|
+
#
|
|
239
|
+
# @see Increase::Models::DigitalWalletTokenRequest#outcome
|
|
240
|
+
module Outcome
|
|
241
|
+
extend Increase::Internal::Type::Enum
|
|
242
|
+
|
|
243
|
+
# The tokenization request was approved and a Digital Wallet Token was provisioned.
|
|
244
|
+
PROVISIONED = :provisioned
|
|
245
|
+
|
|
246
|
+
# The tokenization request was declined.
|
|
247
|
+
DECLINED = :declined
|
|
248
|
+
|
|
249
|
+
# @!method self.values
|
|
250
|
+
# @return [Array<Symbol>]
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# @see Increase::Models::DigitalWalletTokenRequest#provisioned
|
|
254
|
+
class Provisioned < Increase::Internal::Type::BaseModel
|
|
255
|
+
# @!attribute digital_wallet_token_id
|
|
256
|
+
# The identifier of the Digital Wallet Token that was provisioned.
|
|
257
|
+
#
|
|
258
|
+
# @return [String]
|
|
259
|
+
required :digital_wallet_token_id, String
|
|
260
|
+
|
|
261
|
+
# @!method initialize(digital_wallet_token_id:)
|
|
262
|
+
# Details of the provisioned Digital Wallet Token. Present if and only if
|
|
263
|
+
# `outcome` is `provisioned`.
|
|
264
|
+
#
|
|
265
|
+
# @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token that was provisioned.
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# The digital wallet app being used.
|
|
269
|
+
#
|
|
270
|
+
# @see Increase::Models::DigitalWalletTokenRequest#token_requestor
|
|
271
|
+
module TokenRequestor
|
|
272
|
+
extend Increase::Internal::Type::Enum
|
|
273
|
+
|
|
274
|
+
# Apple Pay
|
|
275
|
+
APPLE_PAY = :apple_pay
|
|
276
|
+
|
|
277
|
+
# Google Pay
|
|
278
|
+
GOOGLE_PAY = :google_pay
|
|
279
|
+
|
|
280
|
+
# Samsung Pay
|
|
281
|
+
SAMSUNG_PAY = :samsung_pay
|
|
282
|
+
|
|
283
|
+
# Garmin Pay
|
|
284
|
+
GARMIN_PAY = :garmin_pay
|
|
285
|
+
|
|
286
|
+
# Unknown
|
|
287
|
+
UNKNOWN = :unknown
|
|
288
|
+
|
|
289
|
+
# @!method self.values
|
|
290
|
+
# @return [Array<Symbol>]
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# A constant representing the object's type. For this resource it will always be
|
|
294
|
+
# `digital_wallet_token_request`.
|
|
295
|
+
#
|
|
296
|
+
# @see Increase::Models::DigitalWalletTokenRequest#type
|
|
297
|
+
module Type
|
|
298
|
+
extend Increase::Internal::Type::Enum
|
|
299
|
+
|
|
300
|
+
DIGITAL_WALLET_TOKEN_REQUEST = :digital_wallet_token_request
|
|
301
|
+
|
|
302
|
+
# @!method self.values
|
|
303
|
+
# @return [Array<Symbol>]
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
# @see Increase::Resources::DigitalWalletTokenRequests#list
|
|
6
|
+
class DigitalWalletTokenRequestListParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute card_id
|
|
11
|
+
# Filter Digital Wallet Token Requests to ones for the specified Card.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :card_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute created_at
|
|
17
|
+
#
|
|
18
|
+
# @return [Increase::Models::DigitalWalletTokenRequestListParams::CreatedAt, nil]
|
|
19
|
+
optional :created_at, -> { Increase::DigitalWalletTokenRequestListParams::CreatedAt }
|
|
20
|
+
|
|
21
|
+
# @!attribute cursor
|
|
22
|
+
# Return the page of entries after this one.
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :cursor, String
|
|
26
|
+
|
|
27
|
+
# @!attribute limit
|
|
28
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
29
|
+
# objects.
|
|
30
|
+
#
|
|
31
|
+
# Defaults to `100`.
|
|
32
|
+
#
|
|
33
|
+
# @return [Integer, nil]
|
|
34
|
+
optional :limit, Integer
|
|
35
|
+
|
|
36
|
+
# @!method initialize(card_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {})
|
|
37
|
+
# @param card_id [String] Filter Digital Wallet Token Requests to ones for the specified Card.
|
|
38
|
+
#
|
|
39
|
+
# @param created_at [Increase::Models::DigitalWalletTokenRequestListParams::CreatedAt]
|
|
40
|
+
#
|
|
41
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
42
|
+
#
|
|
43
|
+
# @param limit [Integer]
|
|
44
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
45
|
+
# objects.
|
|
46
|
+
#
|
|
47
|
+
# Defaults to `100`.
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
+
|
|
51
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
52
|
+
# @!attribute after
|
|
53
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
54
|
+
# timestamp.
|
|
55
|
+
#
|
|
56
|
+
# @return [Time, nil]
|
|
57
|
+
optional :after, Time
|
|
58
|
+
|
|
59
|
+
# @!attribute before
|
|
60
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
61
|
+
# timestamp.
|
|
62
|
+
#
|
|
63
|
+
# @return [Time, nil]
|
|
64
|
+
optional :before, Time
|
|
65
|
+
|
|
66
|
+
# @!attribute on_or_after
|
|
67
|
+
# Return results on or after this
|
|
68
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
69
|
+
#
|
|
70
|
+
# @return [Time, nil]
|
|
71
|
+
optional :on_or_after, Time
|
|
72
|
+
|
|
73
|
+
# @!attribute on_or_before
|
|
74
|
+
# Return results on or before this
|
|
75
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
76
|
+
#
|
|
77
|
+
# @return [Time, nil]
|
|
78
|
+
optional :on_or_before, Time
|
|
79
|
+
|
|
80
|
+
# @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
|
|
81
|
+
# @param after [Time]
|
|
82
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
83
|
+
# timestamp.
|
|
84
|
+
#
|
|
85
|
+
# @param before [Time]
|
|
86
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
87
|
+
# timestamp.
|
|
88
|
+
#
|
|
89
|
+
# @param on_or_after [Time]
|
|
90
|
+
# Return results on or after this
|
|
91
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
92
|
+
#
|
|
93
|
+
# @param on_or_before [Time]
|
|
94
|
+
# Return results on or before this
|
|
95
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|