increase 1.33.0 → 1.35.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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +12 -0
  5. data/lib/increase/models/card_push_transfer.rb +824 -0
  6. data/lib/increase/models/card_push_transfer_approve_params.rb +14 -0
  7. data/lib/increase/models/card_push_transfer_cancel_params.rb +14 -0
  8. data/lib/increase/models/card_push_transfer_create_params.rb +215 -0
  9. data/lib/increase/models/card_push_transfer_list_params.rb +159 -0
  10. data/lib/increase/models/card_push_transfer_retrieve_params.rb +14 -0
  11. data/lib/increase/models/card_token.rb +87 -0
  12. data/lib/increase/models/card_token_capabilities.rb +123 -0
  13. data/lib/increase/models/card_token_capabilities_params.rb +14 -0
  14. data/lib/increase/models/card_token_list_params.rb +83 -0
  15. data/lib/increase/models/card_token_retrieve_params.rb +14 -0
  16. data/lib/increase/models/card_validation.rb +759 -0
  17. data/lib/increase/models/card_validation_create_params.rb +116 -0
  18. data/lib/increase/models/card_validation_list_params.rb +150 -0
  19. data/lib/increase/models/card_validation_retrieve_params.rb +14 -0
  20. data/lib/increase/models/external_account.rb +3 -0
  21. data/lib/increase/models/external_account_create_params.rb +3 -0
  22. data/lib/increase/models/external_account_update_params.rb +3 -0
  23. data/lib/increase/models/simulations/card_token_create_params.rb +140 -0
  24. data/lib/increase/models.rb +30 -0
  25. data/lib/increase/resources/card_push_transfers.rb +167 -0
  26. data/lib/increase/resources/card_tokens.rb +86 -0
  27. data/lib/increase/resources/card_validations.rb +117 -0
  28. data/lib/increase/resources/simulations/card_tokens.rb +46 -0
  29. data/lib/increase/resources/simulations.rb +4 -0
  30. data/lib/increase/version.rb +1 -1
  31. data/lib/increase.rb +20 -0
  32. data/rbi/increase/client.rbi +9 -0
  33. data/rbi/increase/models/card_push_transfer.rbi +1450 -0
  34. data/rbi/increase/models/card_push_transfer_approve_params.rbi +30 -0
  35. data/rbi/increase/models/card_push_transfer_cancel_params.rbi +30 -0
  36. data/rbi/increase/models/card_push_transfer_create_params.rbi +325 -0
  37. data/rbi/increase/models/card_push_transfer_list_params.rbi +329 -0
  38. data/rbi/increase/models/card_push_transfer_retrieve_params.rbi +30 -0
  39. data/rbi/increase/models/card_token.rbi +108 -0
  40. data/rbi/increase/models/card_token_capabilities.rbi +250 -0
  41. data/rbi/increase/models/card_token_capabilities_params.rbi +30 -0
  42. data/rbi/increase/models/card_token_list_params.rbi +146 -0
  43. data/rbi/increase/models/card_token_retrieve_params.rbi +27 -0
  44. data/rbi/increase/models/card_validation.rbi +1438 -0
  45. data/rbi/increase/models/card_validation_create_params.rbi +155 -0
  46. data/rbi/increase/models/card_validation_list_params.rbi +295 -0
  47. data/rbi/increase/models/card_validation_retrieve_params.rbi +30 -0
  48. data/rbi/increase/models/external_account.rbi +7 -0
  49. data/rbi/increase/models/external_account_create_params.rbi +7 -0
  50. data/rbi/increase/models/external_account_update_params.rbi +7 -0
  51. data/rbi/increase/models/simulations/card_token_create_params.rbi +297 -0
  52. data/rbi/increase/models.rbi +32 -0
  53. data/rbi/increase/resources/card_push_transfers.rbi +157 -0
  54. data/rbi/increase/resources/card_tokens.rbi +62 -0
  55. data/rbi/increase/resources/card_validations.rbi +107 -0
  56. data/rbi/increase/resources/simulations/card_tokens.rbi +43 -0
  57. data/rbi/increase/resources/simulations.rbi +3 -0
  58. data/sig/increase/client.rbs +6 -0
  59. data/sig/increase/models/card_push_transfer.rbs +679 -0
  60. data/sig/increase/models/card_push_transfer_approve_params.rbs +15 -0
  61. data/sig/increase/models/card_push_transfer_cancel_params.rbs +15 -0
  62. data/sig/increase/models/card_push_transfer_create_params.rbs +172 -0
  63. data/sig/increase/models/card_push_transfer_list_params.rbs +163 -0
  64. data/sig/increase/models/card_push_transfer_retrieve_params.rbs +15 -0
  65. data/sig/increase/models/card_token.rbs +60 -0
  66. data/sig/increase/models/card_token_capabilities.rbs +104 -0
  67. data/sig/increase/models/card_token_capabilities_params.rbs +15 -0
  68. data/sig/increase/models/card_token_list_params.rbs +79 -0
  69. data/sig/increase/models/card_token_retrieve_params.rbs +15 -0
  70. data/sig/increase/models/card_validation.rbs +634 -0
  71. data/sig/increase/models/card_validation_create_params.rbs +91 -0
  72. data/sig/increase/models/card_validation_list_params.rbs +151 -0
  73. data/sig/increase/models/card_validation_retrieve_params.rbs +15 -0
  74. data/sig/increase/models/external_account.rbs +4 -1
  75. data/sig/increase/models/external_account_create_params.rbs +4 -1
  76. data/sig/increase/models/external_account_update_params.rbs +4 -1
  77. data/sig/increase/models/simulations/card_token_create_params.rbs +129 -0
  78. data/sig/increase/models.rbs +30 -0
  79. data/sig/increase/resources/card_push_transfers.rbs +53 -0
  80. data/sig/increase/resources/card_tokens.rbs +24 -0
  81. data/sig/increase/resources/card_validations.rbs +38 -0
  82. data/sig/increase/resources/simulations/card_tokens.rbs +18 -0
  83. data/sig/increase/resources/simulations.rbs +2 -0
  84. metadata +62 -2
@@ -0,0 +1,297 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ class CardTokenCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Increase::Simulations::CardTokenCreateParams,
14
+ Increase::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # The capabilities of the outbound card token.
19
+ sig do
20
+ returns(
21
+ T.nilable(
22
+ T::Array[Increase::Simulations::CardTokenCreateParams::Capability]
23
+ )
24
+ )
25
+ end
26
+ attr_reader :capabilities
27
+
28
+ sig do
29
+ params(
30
+ capabilities:
31
+ T::Array[
32
+ Increase::Simulations::CardTokenCreateParams::Capability::OrHash
33
+ ]
34
+ ).void
35
+ end
36
+ attr_writer :capabilities
37
+
38
+ # The expiration date of the card.
39
+ sig { returns(T.nilable(Date)) }
40
+ attr_reader :expiration
41
+
42
+ sig { params(expiration: Date).void }
43
+ attr_writer :expiration
44
+
45
+ # The last 4 digits of the card number.
46
+ sig { returns(T.nilable(String)) }
47
+ attr_reader :last4
48
+
49
+ sig { params(last4: String).void }
50
+ attr_writer :last4
51
+
52
+ # The prefix of the card number, usually the first 8 digits.
53
+ sig { returns(T.nilable(String)) }
54
+ attr_reader :prefix
55
+
56
+ sig { params(prefix: String).void }
57
+ attr_writer :prefix
58
+
59
+ # The total length of the card number, including prefix and last4.
60
+ sig { returns(T.nilable(Integer)) }
61
+ attr_reader :primary_account_number_length
62
+
63
+ sig { params(primary_account_number_length: Integer).void }
64
+ attr_writer :primary_account_number_length
65
+
66
+ sig do
67
+ params(
68
+ capabilities:
69
+ T::Array[
70
+ Increase::Simulations::CardTokenCreateParams::Capability::OrHash
71
+ ],
72
+ expiration: Date,
73
+ last4: String,
74
+ prefix: String,
75
+ primary_account_number_length: Integer,
76
+ request_options: Increase::RequestOptions::OrHash
77
+ ).returns(T.attached_class)
78
+ end
79
+ def self.new(
80
+ # The capabilities of the outbound card token.
81
+ capabilities: nil,
82
+ # The expiration date of the card.
83
+ expiration: nil,
84
+ # The last 4 digits of the card number.
85
+ last4: nil,
86
+ # The prefix of the card number, usually the first 8 digits.
87
+ prefix: nil,
88
+ # The total length of the card number, including prefix and last4.
89
+ primary_account_number_length: nil,
90
+ request_options: {}
91
+ )
92
+ end
93
+
94
+ sig do
95
+ override.returns(
96
+ {
97
+ capabilities:
98
+ T::Array[
99
+ Increase::Simulations::CardTokenCreateParams::Capability
100
+ ],
101
+ expiration: Date,
102
+ last4: String,
103
+ prefix: String,
104
+ primary_account_number_length: Integer,
105
+ request_options: Increase::RequestOptions
106
+ }
107
+ )
108
+ end
109
+ def to_hash
110
+ end
111
+
112
+ class Capability < Increase::Internal::Type::BaseModel
113
+ OrHash =
114
+ T.type_alias do
115
+ T.any(
116
+ Increase::Simulations::CardTokenCreateParams::Capability,
117
+ Increase::Internal::AnyHash
118
+ )
119
+ end
120
+
121
+ # The cross-border push transfers capability.
122
+ sig do
123
+ returns(
124
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::OrSymbol
125
+ )
126
+ end
127
+ attr_accessor :cross_border_push_transfers
128
+
129
+ # The domestic push transfers capability.
130
+ sig do
131
+ returns(
132
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::OrSymbol
133
+ )
134
+ end
135
+ attr_accessor :domestic_push_transfers
136
+
137
+ # The route of the capability.
138
+ sig do
139
+ returns(
140
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::OrSymbol
141
+ )
142
+ end
143
+ attr_accessor :route
144
+
145
+ sig do
146
+ params(
147
+ cross_border_push_transfers:
148
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::OrSymbol,
149
+ domestic_push_transfers:
150
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::OrSymbol,
151
+ route:
152
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::OrSymbol
153
+ ).returns(T.attached_class)
154
+ end
155
+ def self.new(
156
+ # The cross-border push transfers capability.
157
+ cross_border_push_transfers:,
158
+ # The domestic push transfers capability.
159
+ domestic_push_transfers:,
160
+ # The route of the capability.
161
+ route:
162
+ )
163
+ end
164
+
165
+ sig do
166
+ override.returns(
167
+ {
168
+ cross_border_push_transfers:
169
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::OrSymbol,
170
+ domestic_push_transfers:
171
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::OrSymbol,
172
+ route:
173
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::OrSymbol
174
+ }
175
+ )
176
+ end
177
+ def to_hash
178
+ end
179
+
180
+ # The cross-border push transfers capability.
181
+ module CrossBorderPushTransfers
182
+ extend Increase::Internal::Type::Enum
183
+
184
+ TaggedSymbol =
185
+ T.type_alias do
186
+ T.all(
187
+ Symbol,
188
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers
189
+ )
190
+ end
191
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
192
+
193
+ # The capability is supported.
194
+ SUPPORTED =
195
+ T.let(
196
+ :supported,
197
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::TaggedSymbol
198
+ )
199
+
200
+ # The capability is not supported.
201
+ NOT_SUPPORTED =
202
+ T.let(
203
+ :not_supported,
204
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::TaggedSymbol
205
+ )
206
+
207
+ sig do
208
+ override.returns(
209
+ T::Array[
210
+ Increase::Simulations::CardTokenCreateParams::Capability::CrossBorderPushTransfers::TaggedSymbol
211
+ ]
212
+ )
213
+ end
214
+ def self.values
215
+ end
216
+ end
217
+
218
+ # The domestic push transfers capability.
219
+ module DomesticPushTransfers
220
+ extend Increase::Internal::Type::Enum
221
+
222
+ TaggedSymbol =
223
+ T.type_alias do
224
+ T.all(
225
+ Symbol,
226
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers
227
+ )
228
+ end
229
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
230
+
231
+ # The capability is supported.
232
+ SUPPORTED =
233
+ T.let(
234
+ :supported,
235
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::TaggedSymbol
236
+ )
237
+
238
+ # The capability is not supported.
239
+ NOT_SUPPORTED =
240
+ T.let(
241
+ :not_supported,
242
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::TaggedSymbol
243
+ )
244
+
245
+ sig do
246
+ override.returns(
247
+ T::Array[
248
+ Increase::Simulations::CardTokenCreateParams::Capability::DomesticPushTransfers::TaggedSymbol
249
+ ]
250
+ )
251
+ end
252
+ def self.values
253
+ end
254
+ end
255
+
256
+ # The route of the capability.
257
+ module Route
258
+ extend Increase::Internal::Type::Enum
259
+
260
+ TaggedSymbol =
261
+ T.type_alias do
262
+ T.all(
263
+ Symbol,
264
+ Increase::Simulations::CardTokenCreateParams::Capability::Route
265
+ )
266
+ end
267
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
268
+
269
+ # Visa and Interlink
270
+ VISA =
271
+ T.let(
272
+ :visa,
273
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::TaggedSymbol
274
+ )
275
+
276
+ # Mastercard and Maestro
277
+ MASTERCARD =
278
+ T.let(
279
+ :mastercard,
280
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::TaggedSymbol
281
+ )
282
+
283
+ sig do
284
+ override.returns(
285
+ T::Array[
286
+ Increase::Simulations::CardTokenCreateParams::Capability::Route::TaggedSymbol
287
+ ]
288
+ )
289
+ end
290
+ def self.values
291
+ end
292
+ end
293
+ end
294
+ end
295
+ end
296
+ end
297
+ end
@@ -134,10 +134,42 @@ module Increase
134
134
  CardPurchaseSupplementRetrieveParams =
135
135
  Increase::Models::CardPurchaseSupplementRetrieveParams
136
136
 
137
+ CardPushTransfer = Increase::Models::CardPushTransfer
138
+
139
+ CardPushTransferApproveParams =
140
+ Increase::Models::CardPushTransferApproveParams
141
+
142
+ CardPushTransferCancelParams = Increase::Models::CardPushTransferCancelParams
143
+
144
+ CardPushTransferCreateParams = Increase::Models::CardPushTransferCreateParams
145
+
146
+ CardPushTransferListParams = Increase::Models::CardPushTransferListParams
147
+
148
+ CardPushTransferRetrieveParams =
149
+ Increase::Models::CardPushTransferRetrieveParams
150
+
137
151
  CardRetrieveParams = Increase::Models::CardRetrieveParams
138
152
 
153
+ CardToken = Increase::Models::CardToken
154
+
155
+ CardTokenCapabilities = Increase::Models::CardTokenCapabilities
156
+
157
+ CardTokenCapabilitiesParams = Increase::Models::CardTokenCapabilitiesParams
158
+
159
+ CardTokenListParams = Increase::Models::CardTokenListParams
160
+
161
+ CardTokenRetrieveParams = Increase::Models::CardTokenRetrieveParams
162
+
139
163
  CardUpdateParams = Increase::Models::CardUpdateParams
140
164
 
165
+ CardValidation = Increase::Models::CardValidation
166
+
167
+ CardValidationCreateParams = Increase::Models::CardValidationCreateParams
168
+
169
+ CardValidationListParams = Increase::Models::CardValidationListParams
170
+
171
+ CardValidationRetrieveParams = Increase::Models::CardValidationRetrieveParams
172
+
141
173
  CheckDeposit = Increase::Models::CheckDeposit
142
174
 
143
175
  CheckDepositCreateParams = Increase::Models::CheckDepositCreateParams
@@ -0,0 +1,157 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class CardPushTransfers
6
+ # Create a Card Push Transfer
7
+ sig do
8
+ params(
9
+ amount: Integer,
10
+ business_application_identifier:
11
+ Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol,
12
+ card_token_id: String,
13
+ merchant_category_code: String,
14
+ merchant_city_name: String,
15
+ merchant_name: String,
16
+ merchant_name_prefix: String,
17
+ merchant_postal_code: String,
18
+ merchant_state: String,
19
+ recipient_name: String,
20
+ sender_address_city: String,
21
+ sender_address_line1: String,
22
+ sender_address_postal_code: String,
23
+ sender_address_state: String,
24
+ sender_name: String,
25
+ source_account_number_id: String,
26
+ require_approval: T::Boolean,
27
+ request_options: Increase::RequestOptions::OrHash
28
+ ).returns(Increase::CardPushTransfer)
29
+ end
30
+ def create(
31
+ # The transfer amount in USD cents. For Card Push transfers, must be positive.
32
+ amount:,
33
+ # The Business Application Identifier describes the type of transaction being
34
+ # performed. Your program must be approved for the specified Business Application
35
+ # Identifier in order to use it.
36
+ business_application_identifier:,
37
+ # The Increase identifier for the Card Token that represents the card number
38
+ # you're pushing funds to.
39
+ card_token_id:,
40
+ # The merchant category code (MCC) of the merchant (generally your business)
41
+ # sending the transfer. This is a four-digit code that describes the type of
42
+ # business or service provided by the merchant. Your program must be approved for
43
+ # the specified MCC in order to use it.
44
+ merchant_category_code:,
45
+ # The city name of the merchant (generally your business) sending the transfer.
46
+ merchant_city_name:,
47
+ # The merchant name shows up as the statement descriptor for the transfer. This is
48
+ # typically the name of your business or organization.
49
+ merchant_name:,
50
+ # For certain Business Application Identifiers, the statement descriptor is
51
+ # `merchant_name_prefix*sender_name`, where the `merchant_name_prefix` is a one to
52
+ # four character prefix that identifies the merchant.
53
+ merchant_name_prefix:,
54
+ # The postal code of the merchant (generally your business) sending the transfer.
55
+ merchant_postal_code:,
56
+ # The state of the merchant (generally your business) sending the transfer.
57
+ merchant_state:,
58
+ # The name of the funds recipient.
59
+ recipient_name:,
60
+ # The city of the sender.
61
+ sender_address_city:,
62
+ # The address line 1 of the sender.
63
+ sender_address_line1:,
64
+ # The postal code of the sender.
65
+ sender_address_postal_code:,
66
+ # The state of the sender.
67
+ sender_address_state:,
68
+ # The name of the funds originator.
69
+ sender_name:,
70
+ # The identifier of the Account Number from which to send the transfer.
71
+ source_account_number_id:,
72
+ # Whether the transfer requires explicit approval via the dashboard or API.
73
+ require_approval: nil,
74
+ request_options: {}
75
+ )
76
+ end
77
+
78
+ # Retrieve a Card Push Transfer
79
+ sig do
80
+ params(
81
+ card_push_transfer_id: String,
82
+ request_options: Increase::RequestOptions::OrHash
83
+ ).returns(Increase::CardPushTransfer)
84
+ end
85
+ def retrieve(
86
+ # The identifier of the Card Push Transfer.
87
+ card_push_transfer_id,
88
+ request_options: {}
89
+ )
90
+ end
91
+
92
+ # List Card Push Transfers
93
+ sig do
94
+ params(
95
+ account_id: String,
96
+ created_at: Increase::CardPushTransferListParams::CreatedAt::OrHash,
97
+ cursor: String,
98
+ idempotency_key: String,
99
+ limit: Integer,
100
+ status: Increase::CardPushTransferListParams::Status::OrHash,
101
+ request_options: Increase::RequestOptions::OrHash
102
+ ).returns(Increase::Internal::Page[Increase::CardPushTransfer])
103
+ end
104
+ def list(
105
+ # Filter Card Push Transfers to ones belonging to the specified Account.
106
+ account_id: nil,
107
+ created_at: nil,
108
+ # Return the page of entries after this one.
109
+ cursor: nil,
110
+ # Filter records to the one with the specified `idempotency_key` you chose for
111
+ # that object. This value is unique across Increase and is used to ensure that a
112
+ # request is only processed once. Learn more about
113
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
114
+ idempotency_key: nil,
115
+ # Limit the size of the list that is returned. The default (and maximum) is 100
116
+ # objects.
117
+ limit: nil,
118
+ status: nil,
119
+ request_options: {}
120
+ )
121
+ end
122
+
123
+ # Approves a Card Push Transfer in a pending_approval state.
124
+ sig do
125
+ params(
126
+ card_push_transfer_id: String,
127
+ request_options: Increase::RequestOptions::OrHash
128
+ ).returns(Increase::CardPushTransfer)
129
+ end
130
+ def approve(
131
+ # The identifier of the Card Push Transfer to approve.
132
+ card_push_transfer_id,
133
+ request_options: {}
134
+ )
135
+ end
136
+
137
+ # Cancels a Card Push Transfer in a pending_approval state.
138
+ sig do
139
+ params(
140
+ card_push_transfer_id: String,
141
+ request_options: Increase::RequestOptions::OrHash
142
+ ).returns(Increase::CardPushTransfer)
143
+ end
144
+ def cancel(
145
+ # The identifier of the pending Card Push Transfer to cancel.
146
+ card_push_transfer_id,
147
+ request_options: {}
148
+ )
149
+ end
150
+
151
+ # @api private
152
+ sig { params(client: Increase::Client).returns(T.attached_class) }
153
+ def self.new(client:)
154
+ end
155
+ end
156
+ end
157
+ end
@@ -0,0 +1,62 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class CardTokens
6
+ # Retrieve a Card Token
7
+ sig do
8
+ params(
9
+ card_token_id: String,
10
+ request_options: Increase::RequestOptions::OrHash
11
+ ).returns(Increase::CardToken)
12
+ end
13
+ def retrieve(
14
+ # The identifier of the Card Token.
15
+ card_token_id,
16
+ request_options: {}
17
+ )
18
+ end
19
+
20
+ # List Card Tokens
21
+ sig do
22
+ params(
23
+ created_at: Increase::CardTokenListParams::CreatedAt::OrHash,
24
+ cursor: String,
25
+ limit: Integer,
26
+ request_options: Increase::RequestOptions::OrHash
27
+ ).returns(Increase::Internal::Page[Increase::CardToken])
28
+ end
29
+ def list(
30
+ created_at: nil,
31
+ # Return the page of entries after this one.
32
+ cursor: nil,
33
+ # Limit the size of the list that is returned. The default (and maximum) is 100
34
+ # objects.
35
+ limit: nil,
36
+ request_options: {}
37
+ )
38
+ end
39
+
40
+ # The capabilities of a Card Token describe whether the card can be used for
41
+ # specific operations, such as Card Push Transfers. The capabilities can change
42
+ # over time based on the issuing bank's configuration of the card range.
43
+ sig do
44
+ params(
45
+ card_token_id: String,
46
+ request_options: Increase::RequestOptions::OrHash
47
+ ).returns(Increase::CardTokenCapabilities)
48
+ end
49
+ def capabilities(
50
+ # The identifier of the Card Token.
51
+ card_token_id,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ # @api private
57
+ sig { params(client: Increase::Client).returns(T.attached_class) }
58
+ def self.new(client:)
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,107 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class CardValidations
6
+ # Create a Card Validation
7
+ sig do
8
+ params(
9
+ account_id: String,
10
+ card_token_id: String,
11
+ merchant_category_code: String,
12
+ merchant_city_name: String,
13
+ merchant_name: String,
14
+ merchant_postal_code: String,
15
+ merchant_state: String,
16
+ cardholder_first_name: String,
17
+ cardholder_last_name: String,
18
+ cardholder_middle_name: String,
19
+ cardholder_postal_code: String,
20
+ cardholder_street_address: String,
21
+ request_options: Increase::RequestOptions::OrHash
22
+ ).returns(Increase::CardValidation)
23
+ end
24
+ def create(
25
+ # The identifier of the Account from which to send the validation.
26
+ account_id:,
27
+ # The Increase identifier for the Card Token that represents the card number
28
+ # you're validating.
29
+ card_token_id:,
30
+ # A four-digit code (MCC) identifying the type of business or service provided by
31
+ # the merchant.
32
+ merchant_category_code:,
33
+ # The city where the merchant (typically your business) is located.
34
+ merchant_city_name:,
35
+ # The merchant name that will appear in the cardholder’s statement descriptor.
36
+ # Typically your business name.
37
+ merchant_name:,
38
+ # The postal code for the merchant’s (typically your business’s) location.
39
+ merchant_postal_code:,
40
+ # The U.S. state where the merchant (typically your business) is located.
41
+ merchant_state:,
42
+ # The cardholder's first name.
43
+ cardholder_first_name: nil,
44
+ # The cardholder's last name.
45
+ cardholder_last_name: nil,
46
+ # The cardholder's middle name.
47
+ cardholder_middle_name: nil,
48
+ # The postal code of the cardholder's address.
49
+ cardholder_postal_code: nil,
50
+ # The cardholder's street address.
51
+ cardholder_street_address: nil,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ # Retrieve a Card Validation
57
+ sig do
58
+ params(
59
+ card_validation_id: String,
60
+ request_options: Increase::RequestOptions::OrHash
61
+ ).returns(Increase::CardValidation)
62
+ end
63
+ def retrieve(
64
+ # The identifier of the Card Validation.
65
+ card_validation_id,
66
+ request_options: {}
67
+ )
68
+ end
69
+
70
+ # List Card Validations
71
+ sig do
72
+ params(
73
+ account_id: String,
74
+ created_at: Increase::CardValidationListParams::CreatedAt::OrHash,
75
+ cursor: String,
76
+ idempotency_key: String,
77
+ limit: Integer,
78
+ status: Increase::CardValidationListParams::Status::OrHash,
79
+ request_options: Increase::RequestOptions::OrHash
80
+ ).returns(Increase::Internal::Page[Increase::CardValidation])
81
+ end
82
+ def list(
83
+ # Filter Card Validations to ones belonging to the specified Account.
84
+ account_id: nil,
85
+ created_at: nil,
86
+ # Return the page of entries after this one.
87
+ cursor: nil,
88
+ # Filter records to the one with the specified `idempotency_key` you chose for
89
+ # that object. This value is unique across Increase and is used to ensure that a
90
+ # request is only processed once. Learn more about
91
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
92
+ idempotency_key: nil,
93
+ # Limit the size of the list that is returned. The default (and maximum) is 100
94
+ # objects.
95
+ limit: nil,
96
+ status: nil,
97
+ request_options: {}
98
+ )
99
+ end
100
+
101
+ # @api private
102
+ sig { params(client: Increase::Client).returns(T.attached_class) }
103
+ def self.new(client:)
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,43 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class CardTokens
7
+ # Simulates tokenizing a card in the sandbox environment.
8
+ sig do
9
+ params(
10
+ capabilities:
11
+ T::Array[
12
+ Increase::Simulations::CardTokenCreateParams::Capability::OrHash
13
+ ],
14
+ expiration: Date,
15
+ last4: String,
16
+ prefix: String,
17
+ primary_account_number_length: Integer,
18
+ request_options: Increase::RequestOptions::OrHash
19
+ ).returns(Increase::CardToken)
20
+ end
21
+ def create(
22
+ # The capabilities of the outbound card token.
23
+ capabilities: nil,
24
+ # The expiration date of the card.
25
+ expiration: nil,
26
+ # The last 4 digits of the card number.
27
+ last4: nil,
28
+ # The prefix of the card number, usually the first 8 digits.
29
+ prefix: nil,
30
+ # The total length of the card number, including prefix and last4.
31
+ primary_account_number_length: nil,
32
+ request_options: {}
33
+ )
34
+ end
35
+
36
+ # @api private
37
+ sig { params(client: Increase::Client).returns(T.attached_class) }
38
+ def self.new(client:)
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end