increase 1.32.0 → 1.34.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +12 -0
- data/lib/increase/models/card_push_transfer.rb +824 -0
- data/lib/increase/models/card_push_transfer_approve_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_create_params.rb +215 -0
- data/lib/increase/models/card_push_transfer_list_params.rb +159 -0
- data/lib/increase/models/card_push_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/card_token.rb +87 -0
- data/lib/increase/models/card_token_capabilities.rb +123 -0
- data/lib/increase/models/card_token_capabilities_params.rb +14 -0
- data/lib/increase/models/card_token_list_params.rb +83 -0
- data/lib/increase/models/card_token_retrieve_params.rb +14 -0
- data/lib/increase/models/card_validation.rb +759 -0
- data/lib/increase/models/card_validation_create_params.rb +116 -0
- data/lib/increase/models/card_validation_list_params.rb +150 -0
- data/lib/increase/models/card_validation_retrieve_params.rb +14 -0
- data/lib/increase/models/entity_create_beneficial_owner_params.rb +9 -10
- data/lib/increase/models/entity_create_params.rb +9 -10
- data/lib/increase/models/entity_update_beneficial_owner_address_params.rb +9 -10
- data/lib/increase/models/simulations/card_token_create_params.rb +140 -0
- data/lib/increase/models.rb +30 -0
- data/lib/increase/resources/card_push_transfers.rb +167 -0
- data/lib/increase/resources/card_tokens.rb +86 -0
- data/lib/increase/resources/card_validations.rb +117 -0
- data/lib/increase/resources/simulations/card_tokens.rb +46 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +20 -0
- data/rbi/increase/client.rbi +9 -0
- data/rbi/increase/models/card_push_transfer.rbi +1450 -0
- data/rbi/increase/models/card_push_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_create_params.rbi +325 -0
- data/rbi/increase/models/card_push_transfer_list_params.rbi +329 -0
- data/rbi/increase/models/card_push_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/card_token.rbi +108 -0
- data/rbi/increase/models/card_token_capabilities.rbi +250 -0
- data/rbi/increase/models/card_token_capabilities_params.rbi +30 -0
- data/rbi/increase/models/card_token_list_params.rbi +146 -0
- data/rbi/increase/models/card_token_retrieve_params.rbi +27 -0
- data/rbi/increase/models/card_validation.rbi +1438 -0
- data/rbi/increase/models/card_validation_create_params.rbi +155 -0
- data/rbi/increase/models/card_validation_list_params.rbi +295 -0
- data/rbi/increase/models/card_validation_retrieve_params.rbi +30 -0
- data/rbi/increase/models/entity_create_beneficial_owner_params.rbi +8 -13
- data/rbi/increase/models/entity_create_params.rbi +8 -13
- data/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi +8 -13
- data/rbi/increase/models/simulations/card_token_create_params.rbi +297 -0
- data/rbi/increase/models.rbi +32 -0
- data/rbi/increase/resources/card_push_transfers.rbi +157 -0
- data/rbi/increase/resources/card_tokens.rbi +62 -0
- data/rbi/increase/resources/card_validations.rbi +107 -0
- data/rbi/increase/resources/simulations/card_tokens.rbi +43 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +6 -0
- data/sig/increase/models/card_push_transfer.rbs +679 -0
- data/sig/increase/models/card_push_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_create_params.rbs +172 -0
- data/sig/increase/models/card_push_transfer_list_params.rbs +163 -0
- data/sig/increase/models/card_push_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_token.rbs +60 -0
- data/sig/increase/models/card_token_capabilities.rbs +104 -0
- data/sig/increase/models/card_token_capabilities_params.rbs +15 -0
- data/sig/increase/models/card_token_list_params.rbs +79 -0
- data/sig/increase/models/card_token_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_validation.rbs +634 -0
- data/sig/increase/models/card_validation_create_params.rbs +91 -0
- data/sig/increase/models/card_validation_list_params.rbs +151 -0
- data/sig/increase/models/card_validation_retrieve_params.rbs +15 -0
- data/sig/increase/models/entity_create_beneficial_owner_params.rbs +5 -7
- data/sig/increase/models/entity_create_params.rbs +5 -7
- data/sig/increase/models/entity_update_beneficial_owner_address_params.rbs +5 -7
- data/sig/increase/models/simulations/card_token_create_params.rbs +129 -0
- data/sig/increase/models.rbs +30 -0
- data/sig/increase/resources/card_push_transfers.rbs +53 -0
- data/sig/increase/resources/card_tokens.rbs +24 -0
- data/sig/increase/resources/card_validations.rbs +38 -0
- data/sig/increase/resources/simulations/card_tokens.rbs +18 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +62 -2
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class CardPushTransfers
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Increase::Models::CardPushTransferCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Create a Card Push Transfer
|
|
10
|
+
#
|
|
11
|
+
# @overload create(amount:, business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param amount [Integer] The transfer amount in USD cents. For Card Push transfers, must be positive.
|
|
14
|
+
#
|
|
15
|
+
# @param business_application_identifier [Symbol, Increase::Models::CardPushTransferCreateParams::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf
|
|
16
|
+
#
|
|
17
|
+
# @param card_token_id [String] The Increase identifier for the Card Token that represents the card number you'r
|
|
18
|
+
#
|
|
19
|
+
# @param merchant_category_code [String] The merchant category code (MCC) of the merchant (generally your business) sendi
|
|
20
|
+
#
|
|
21
|
+
# @param merchant_city_name [String] The city name of the merchant (generally your business) sending the transfer.
|
|
22
|
+
#
|
|
23
|
+
# @param merchant_name [String] The merchant name shows up as the statement descriptor for the transfer. This is
|
|
24
|
+
#
|
|
25
|
+
# @param merchant_name_prefix [String] For certain Business Application Identifiers, the statement descriptor is `merch
|
|
26
|
+
#
|
|
27
|
+
# @param merchant_postal_code [String] The postal code of the merchant (generally your business) sending the transfer.
|
|
28
|
+
#
|
|
29
|
+
# @param merchant_state [String] The state of the merchant (generally your business) sending the transfer.
|
|
30
|
+
#
|
|
31
|
+
# @param recipient_name [String] The name of the funds recipient.
|
|
32
|
+
#
|
|
33
|
+
# @param sender_address_city [String] The city of the sender.
|
|
34
|
+
#
|
|
35
|
+
# @param sender_address_line1 [String] The address line 1 of the sender.
|
|
36
|
+
#
|
|
37
|
+
# @param sender_address_postal_code [String] The postal code of the sender.
|
|
38
|
+
#
|
|
39
|
+
# @param sender_address_state [String] The state of the sender.
|
|
40
|
+
#
|
|
41
|
+
# @param sender_name [String] The name of the funds originator.
|
|
42
|
+
#
|
|
43
|
+
# @param source_account_number_id [String] The identifier of the Account Number from which to send the transfer.
|
|
44
|
+
#
|
|
45
|
+
# @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
|
|
46
|
+
#
|
|
47
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
48
|
+
#
|
|
49
|
+
# @return [Increase::Models::CardPushTransfer]
|
|
50
|
+
#
|
|
51
|
+
# @see Increase::Models::CardPushTransferCreateParams
|
|
52
|
+
def create(params)
|
|
53
|
+
parsed, options = Increase::CardPushTransferCreateParams.dump_request(params)
|
|
54
|
+
@client.request(
|
|
55
|
+
method: :post,
|
|
56
|
+
path: "card_push_transfers",
|
|
57
|
+
body: parsed,
|
|
58
|
+
model: Increase::CardPushTransfer,
|
|
59
|
+
options: options
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Retrieve a Card Push Transfer
|
|
64
|
+
#
|
|
65
|
+
# @overload retrieve(card_push_transfer_id, request_options: {})
|
|
66
|
+
#
|
|
67
|
+
# @param card_push_transfer_id [String] The identifier of the Card Push Transfer.
|
|
68
|
+
#
|
|
69
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
70
|
+
#
|
|
71
|
+
# @return [Increase::Models::CardPushTransfer]
|
|
72
|
+
#
|
|
73
|
+
# @see Increase::Models::CardPushTransferRetrieveParams
|
|
74
|
+
def retrieve(card_push_transfer_id, params = {})
|
|
75
|
+
@client.request(
|
|
76
|
+
method: :get,
|
|
77
|
+
path: ["card_push_transfers/%1$s", card_push_transfer_id],
|
|
78
|
+
model: Increase::CardPushTransfer,
|
|
79
|
+
options: params[:request_options]
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Some parameter documentations has been truncated, see
|
|
84
|
+
# {Increase::Models::CardPushTransferListParams} for more details.
|
|
85
|
+
#
|
|
86
|
+
# List Card Push Transfers
|
|
87
|
+
#
|
|
88
|
+
# @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
|
89
|
+
#
|
|
90
|
+
# @param account_id [String] Filter Card Push Transfers to ones belonging to the specified Account.
|
|
91
|
+
#
|
|
92
|
+
# @param created_at [Increase::Models::CardPushTransferListParams::CreatedAt]
|
|
93
|
+
#
|
|
94
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
95
|
+
#
|
|
96
|
+
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
97
|
+
#
|
|
98
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
99
|
+
#
|
|
100
|
+
# @param status [Increase::Models::CardPushTransferListParams::Status]
|
|
101
|
+
#
|
|
102
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
103
|
+
#
|
|
104
|
+
# @return [Increase::Internal::Page<Increase::Models::CardPushTransfer>]
|
|
105
|
+
#
|
|
106
|
+
# @see Increase::Models::CardPushTransferListParams
|
|
107
|
+
def list(params = {})
|
|
108
|
+
parsed, options = Increase::CardPushTransferListParams.dump_request(params)
|
|
109
|
+
@client.request(
|
|
110
|
+
method: :get,
|
|
111
|
+
path: "card_push_transfers",
|
|
112
|
+
query: parsed,
|
|
113
|
+
page: Increase::Internal::Page,
|
|
114
|
+
model: Increase::CardPushTransfer,
|
|
115
|
+
options: options
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Approves a Card Push Transfer in a pending_approval state.
|
|
120
|
+
#
|
|
121
|
+
# @overload approve(card_push_transfer_id, request_options: {})
|
|
122
|
+
#
|
|
123
|
+
# @param card_push_transfer_id [String] The identifier of the Card Push Transfer to approve.
|
|
124
|
+
#
|
|
125
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
126
|
+
#
|
|
127
|
+
# @return [Increase::Models::CardPushTransfer]
|
|
128
|
+
#
|
|
129
|
+
# @see Increase::Models::CardPushTransferApproveParams
|
|
130
|
+
def approve(card_push_transfer_id, params = {})
|
|
131
|
+
@client.request(
|
|
132
|
+
method: :post,
|
|
133
|
+
path: ["card_push_transfers/%1$s/approve", card_push_transfer_id],
|
|
134
|
+
model: Increase::CardPushTransfer,
|
|
135
|
+
options: params[:request_options]
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Cancels a Card Push Transfer in a pending_approval state.
|
|
140
|
+
#
|
|
141
|
+
# @overload cancel(card_push_transfer_id, request_options: {})
|
|
142
|
+
#
|
|
143
|
+
# @param card_push_transfer_id [String] The identifier of the pending Card Push Transfer to cancel.
|
|
144
|
+
#
|
|
145
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
146
|
+
#
|
|
147
|
+
# @return [Increase::Models::CardPushTransfer]
|
|
148
|
+
#
|
|
149
|
+
# @see Increase::Models::CardPushTransferCancelParams
|
|
150
|
+
def cancel(card_push_transfer_id, params = {})
|
|
151
|
+
@client.request(
|
|
152
|
+
method: :post,
|
|
153
|
+
path: ["card_push_transfers/%1$s/cancel", card_push_transfer_id],
|
|
154
|
+
model: Increase::CardPushTransfer,
|
|
155
|
+
options: params[:request_options]
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# @api private
|
|
160
|
+
#
|
|
161
|
+
# @param client [Increase::Client]
|
|
162
|
+
def initialize(client:)
|
|
163
|
+
@client = client
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class CardTokens
|
|
6
|
+
# Retrieve a Card Token
|
|
7
|
+
#
|
|
8
|
+
# @overload retrieve(card_token_id, request_options: {})
|
|
9
|
+
#
|
|
10
|
+
# @param card_token_id [String] The identifier of the Card Token.
|
|
11
|
+
#
|
|
12
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
+
#
|
|
14
|
+
# @return [Increase::Models::CardToken]
|
|
15
|
+
#
|
|
16
|
+
# @see Increase::Models::CardTokenRetrieveParams
|
|
17
|
+
def retrieve(card_token_id, params = {})
|
|
18
|
+
@client.request(
|
|
19
|
+
method: :get,
|
|
20
|
+
path: ["card_tokens/%1$s", card_token_id],
|
|
21
|
+
model: Increase::CardToken,
|
|
22
|
+
options: params[:request_options]
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Increase::Models::CardTokenListParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# List Card Tokens
|
|
30
|
+
#
|
|
31
|
+
# @overload list(created_at: nil, cursor: nil, limit: nil, request_options: {})
|
|
32
|
+
#
|
|
33
|
+
# @param created_at [Increase::Models::CardTokenListParams::CreatedAt]
|
|
34
|
+
#
|
|
35
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
36
|
+
#
|
|
37
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
38
|
+
#
|
|
39
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
40
|
+
#
|
|
41
|
+
# @return [Increase::Internal::Page<Increase::Models::CardToken>]
|
|
42
|
+
#
|
|
43
|
+
# @see Increase::Models::CardTokenListParams
|
|
44
|
+
def list(params = {})
|
|
45
|
+
parsed, options = Increase::CardTokenListParams.dump_request(params)
|
|
46
|
+
@client.request(
|
|
47
|
+
method: :get,
|
|
48
|
+
path: "card_tokens",
|
|
49
|
+
query: parsed,
|
|
50
|
+
page: Increase::Internal::Page,
|
|
51
|
+
model: Increase::CardToken,
|
|
52
|
+
options: options
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# The capabilities of a Card Token describe whether the card can be used for
|
|
57
|
+
# specific operations, such as Card Push Transfers. The capabilities can change
|
|
58
|
+
# over time based on the issuing bank's configuration of the card range.
|
|
59
|
+
#
|
|
60
|
+
# @overload capabilities(card_token_id, request_options: {})
|
|
61
|
+
#
|
|
62
|
+
# @param card_token_id [String] The identifier of the Card Token.
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
65
|
+
#
|
|
66
|
+
# @return [Increase::Models::CardTokenCapabilities]
|
|
67
|
+
#
|
|
68
|
+
# @see Increase::Models::CardTokenCapabilitiesParams
|
|
69
|
+
def capabilities(card_token_id, params = {})
|
|
70
|
+
@client.request(
|
|
71
|
+
method: :get,
|
|
72
|
+
path: ["card_tokens/%1$s/capabilities", card_token_id],
|
|
73
|
+
model: Increase::CardTokenCapabilities,
|
|
74
|
+
options: params[:request_options]
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# @api private
|
|
79
|
+
#
|
|
80
|
+
# @param client [Increase::Client]
|
|
81
|
+
def initialize(client:)
|
|
82
|
+
@client = client
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class CardValidations
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Increase::Models::CardValidationCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Create a Card Validation
|
|
10
|
+
#
|
|
11
|
+
# @overload create(account_id:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_postal_code:, merchant_state:, cardholder_first_name: nil, cardholder_last_name: nil, cardholder_middle_name: nil, cardholder_postal_code: nil, cardholder_street_address: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param account_id [String] The identifier of the Account from which to send the validation.
|
|
14
|
+
#
|
|
15
|
+
# @param card_token_id [String] The Increase identifier for the Card Token that represents the card number you'r
|
|
16
|
+
#
|
|
17
|
+
# @param merchant_category_code [String] A four-digit code (MCC) identifying the type of business or service provided by
|
|
18
|
+
#
|
|
19
|
+
# @param merchant_city_name [String] The city where the merchant (typically your business) is located.
|
|
20
|
+
#
|
|
21
|
+
# @param merchant_name [String] The merchant name that will appear in the cardholder’s statement descriptor. Typ
|
|
22
|
+
#
|
|
23
|
+
# @param merchant_postal_code [String] The postal code for the merchant’s (typically your business’s) location.
|
|
24
|
+
#
|
|
25
|
+
# @param merchant_state [String] The U.S. state where the merchant (typically your business) is located.
|
|
26
|
+
#
|
|
27
|
+
# @param cardholder_first_name [String] The cardholder's first name.
|
|
28
|
+
#
|
|
29
|
+
# @param cardholder_last_name [String] The cardholder's last name.
|
|
30
|
+
#
|
|
31
|
+
# @param cardholder_middle_name [String] The cardholder's middle name.
|
|
32
|
+
#
|
|
33
|
+
# @param cardholder_postal_code [String] The postal code of the cardholder's address.
|
|
34
|
+
#
|
|
35
|
+
# @param cardholder_street_address [String] The cardholder's street address.
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
|
+
#
|
|
39
|
+
# @return [Increase::Models::CardValidation]
|
|
40
|
+
#
|
|
41
|
+
# @see Increase::Models::CardValidationCreateParams
|
|
42
|
+
def create(params)
|
|
43
|
+
parsed, options = Increase::CardValidationCreateParams.dump_request(params)
|
|
44
|
+
@client.request(
|
|
45
|
+
method: :post,
|
|
46
|
+
path: "card_validations",
|
|
47
|
+
body: parsed,
|
|
48
|
+
model: Increase::CardValidation,
|
|
49
|
+
options: options
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Retrieve a Card Validation
|
|
54
|
+
#
|
|
55
|
+
# @overload retrieve(card_validation_id, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param card_validation_id [String] The identifier of the Card Validation.
|
|
58
|
+
#
|
|
59
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
60
|
+
#
|
|
61
|
+
# @return [Increase::Models::CardValidation]
|
|
62
|
+
#
|
|
63
|
+
# @see Increase::Models::CardValidationRetrieveParams
|
|
64
|
+
def retrieve(card_validation_id, params = {})
|
|
65
|
+
@client.request(
|
|
66
|
+
method: :get,
|
|
67
|
+
path: ["card_validations/%1$s", card_validation_id],
|
|
68
|
+
model: Increase::CardValidation,
|
|
69
|
+
options: params[:request_options]
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Some parameter documentations has been truncated, see
|
|
74
|
+
# {Increase::Models::CardValidationListParams} for more details.
|
|
75
|
+
#
|
|
76
|
+
# List Card Validations
|
|
77
|
+
#
|
|
78
|
+
# @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
|
|
79
|
+
#
|
|
80
|
+
# @param account_id [String] Filter Card Validations to ones belonging to the specified Account.
|
|
81
|
+
#
|
|
82
|
+
# @param created_at [Increase::Models::CardValidationListParams::CreatedAt]
|
|
83
|
+
#
|
|
84
|
+
# @param cursor [String] Return the page of entries after this one.
|
|
85
|
+
#
|
|
86
|
+
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
87
|
+
#
|
|
88
|
+
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
89
|
+
#
|
|
90
|
+
# @param status [Increase::Models::CardValidationListParams::Status]
|
|
91
|
+
#
|
|
92
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
93
|
+
#
|
|
94
|
+
# @return [Increase::Internal::Page<Increase::Models::CardValidation>]
|
|
95
|
+
#
|
|
96
|
+
# @see Increase::Models::CardValidationListParams
|
|
97
|
+
def list(params = {})
|
|
98
|
+
parsed, options = Increase::CardValidationListParams.dump_request(params)
|
|
99
|
+
@client.request(
|
|
100
|
+
method: :get,
|
|
101
|
+
path: "card_validations",
|
|
102
|
+
query: parsed,
|
|
103
|
+
page: Increase::Internal::Page,
|
|
104
|
+
model: Increase::CardValidation,
|
|
105
|
+
options: options
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @api private
|
|
110
|
+
#
|
|
111
|
+
# @param client [Increase::Client]
|
|
112
|
+
def initialize(client:)
|
|
113
|
+
@client = client
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class CardTokens
|
|
7
|
+
# Simulates tokenizing a card in the sandbox environment.
|
|
8
|
+
#
|
|
9
|
+
# @overload create(capabilities: nil, expiration: nil, last4: nil, prefix: nil, primary_account_number_length: nil, request_options: {})
|
|
10
|
+
#
|
|
11
|
+
# @param capabilities [Array<Increase::Models::Simulations::CardTokenCreateParams::Capability>] The capabilities of the outbound card token.
|
|
12
|
+
#
|
|
13
|
+
# @param expiration [Date] The expiration date of the card.
|
|
14
|
+
#
|
|
15
|
+
# @param last4 [String] The last 4 digits of the card number.
|
|
16
|
+
#
|
|
17
|
+
# @param prefix [String] The prefix of the card number, usually the first 8 digits.
|
|
18
|
+
#
|
|
19
|
+
# @param primary_account_number_length [Integer] The total length of the card number, including prefix and last4.
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
|
+
#
|
|
23
|
+
# @return [Increase::Models::CardToken]
|
|
24
|
+
#
|
|
25
|
+
# @see Increase::Models::Simulations::CardTokenCreateParams
|
|
26
|
+
def create(params = {})
|
|
27
|
+
parsed, options = Increase::Simulations::CardTokenCreateParams.dump_request(params)
|
|
28
|
+
@client.request(
|
|
29
|
+
method: :post,
|
|
30
|
+
path: "simulations/card_tokens",
|
|
31
|
+
body: parsed,
|
|
32
|
+
model: Increase::CardToken,
|
|
33
|
+
options: options
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @api private
|
|
38
|
+
#
|
|
39
|
+
# @param client [Increase::Client]
|
|
40
|
+
def initialize(client:)
|
|
41
|
+
@client = client
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -87,6 +87,9 @@ module Increase
|
|
|
87
87
|
# @return [Increase::Resources::Simulations::Documents]
|
|
88
88
|
attr_reader :documents
|
|
89
89
|
|
|
90
|
+
# @return [Increase::Resources::Simulations::CardTokens]
|
|
91
|
+
attr_reader :card_tokens
|
|
92
|
+
|
|
90
93
|
# @api private
|
|
91
94
|
#
|
|
92
95
|
# @param client [Increase::Client]
|
|
@@ -125,6 +128,7 @@ module Increase
|
|
|
125
128
|
@programs = Increase::Resources::Simulations::Programs.new(client: client)
|
|
126
129
|
@account_statements = Increase::Resources::Simulations::AccountStatements.new(client: client)
|
|
127
130
|
@documents = Increase::Resources::Simulations::Documents.new(client: client)
|
|
131
|
+
@card_tokens = Increase::Resources::Simulations::CardTokens.new(client: client)
|
|
128
132
|
end
|
|
129
133
|
end
|
|
130
134
|
end
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
|
@@ -111,8 +111,23 @@ require_relative "increase/models/card_payment_retrieve_params"
|
|
|
111
111
|
require_relative "increase/models/card_purchase_supplement"
|
|
112
112
|
require_relative "increase/models/card_purchase_supplement_list_params"
|
|
113
113
|
require_relative "increase/models/card_purchase_supplement_retrieve_params"
|
|
114
|
+
require_relative "increase/models/card_push_transfer"
|
|
115
|
+
require_relative "increase/models/card_push_transfer_approve_params"
|
|
116
|
+
require_relative "increase/models/card_push_transfer_cancel_params"
|
|
117
|
+
require_relative "increase/models/card_push_transfer_create_params"
|
|
118
|
+
require_relative "increase/models/card_push_transfer_list_params"
|
|
119
|
+
require_relative "increase/models/card_push_transfer_retrieve_params"
|
|
114
120
|
require_relative "increase/models/card_retrieve_params"
|
|
121
|
+
require_relative "increase/models/card_token"
|
|
122
|
+
require_relative "increase/models/card_token_capabilities"
|
|
123
|
+
require_relative "increase/models/card_token_capabilities_params"
|
|
124
|
+
require_relative "increase/models/card_token_list_params"
|
|
125
|
+
require_relative "increase/models/card_token_retrieve_params"
|
|
115
126
|
require_relative "increase/models/card_update_params"
|
|
127
|
+
require_relative "increase/models/card_validation"
|
|
128
|
+
require_relative "increase/models/card_validation_create_params"
|
|
129
|
+
require_relative "increase/models/card_validation_list_params"
|
|
130
|
+
require_relative "increase/models/card_validation_retrieve_params"
|
|
116
131
|
require_relative "increase/models/check_deposit"
|
|
117
132
|
require_relative "increase/models/check_deposit_create_params"
|
|
118
133
|
require_relative "increase/models/check_deposit_list_params"
|
|
@@ -272,6 +287,7 @@ require_relative "increase/models/simulations/card_increment_create_params"
|
|
|
272
287
|
require_relative "increase/models/simulations/card_refund_create_params"
|
|
273
288
|
require_relative "increase/models/simulations/card_reversal_create_params"
|
|
274
289
|
require_relative "increase/models/simulations/card_settlement_create_params"
|
|
290
|
+
require_relative "increase/models/simulations/card_token_create_params"
|
|
275
291
|
require_relative "increase/models/simulations/check_deposit_reject_params"
|
|
276
292
|
require_relative "increase/models/simulations/check_deposit_return_params"
|
|
277
293
|
require_relative "increase/models/simulations/check_deposit_submit_params"
|
|
@@ -323,7 +339,10 @@ require_relative "increase/resources/bookkeeping_entry_sets"
|
|
|
323
339
|
require_relative "increase/resources/card_disputes"
|
|
324
340
|
require_relative "increase/resources/card_payments"
|
|
325
341
|
require_relative "increase/resources/card_purchase_supplements"
|
|
342
|
+
require_relative "increase/resources/card_push_transfers"
|
|
326
343
|
require_relative "increase/resources/cards"
|
|
344
|
+
require_relative "increase/resources/card_tokens"
|
|
345
|
+
require_relative "increase/resources/card_validations"
|
|
327
346
|
require_relative "increase/resources/check_deposits"
|
|
328
347
|
require_relative "increase/resources/check_transfers"
|
|
329
348
|
require_relative "increase/resources/declined_transactions"
|
|
@@ -370,6 +389,7 @@ require_relative "increase/resources/simulations/card_increments"
|
|
|
370
389
|
require_relative "increase/resources/simulations/card_refunds"
|
|
371
390
|
require_relative "increase/resources/simulations/card_reversals"
|
|
372
391
|
require_relative "increase/resources/simulations/card_settlements"
|
|
392
|
+
require_relative "increase/resources/simulations/card_tokens"
|
|
373
393
|
require_relative "increase/resources/simulations/check_deposits"
|
|
374
394
|
require_relative "increase/resources/simulations/check_transfers"
|
|
375
395
|
require_relative "increase/resources/simulations/digital_wallet_token_requests"
|
data/rbi/increase/client.rbi
CHANGED
|
@@ -175,6 +175,15 @@ module Increase
|
|
|
175
175
|
sig { returns(Increase::Resources::IntrafiExclusions) }
|
|
176
176
|
attr_reader :intrafi_exclusions
|
|
177
177
|
|
|
178
|
+
sig { returns(Increase::Resources::CardTokens) }
|
|
179
|
+
attr_reader :card_tokens
|
|
180
|
+
|
|
181
|
+
sig { returns(Increase::Resources::CardPushTransfers) }
|
|
182
|
+
attr_reader :card_push_transfers
|
|
183
|
+
|
|
184
|
+
sig { returns(Increase::Resources::CardValidations) }
|
|
185
|
+
attr_reader :card_validations
|
|
186
|
+
|
|
178
187
|
sig { returns(Increase::Resources::Simulations) }
|
|
179
188
|
attr_reader :simulations
|
|
180
189
|
|