increase 1.88.0 → 1.90.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 +0 -4
- data/lib/increase/models/{card_detail_create_details_iframe_params.rb → card_create_details_iframe_params.rb} +8 -4
- data/lib/increase/models/card_details.rb +7 -7
- data/lib/increase/models/{card_detail_details_params.rb → card_details_params.rb} +2 -2
- data/lib/increase/models/card_iframe_url.rb +1 -1
- data/lib/increase/models/card_update_params.rb +1 -9
- data/lib/increase/models/{card_detail_update_params.rb → card_update_pin_params.rb} +2 -2
- data/lib/increase/models/event_subscription_create_params.rb +23 -1
- data/lib/increase/models.rb +6 -6
- data/lib/increase/resources/cards.rb +75 -3
- data/lib/increase/resources/event_subscriptions.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +3 -4
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/models/{card_detail_create_details_iframe_params.rbi → card_create_details_iframe_params.rbi} +6 -4
- data/rbi/increase/models/card_details.rbi +8 -10
- data/rbi/increase/models/{card_detail_details_params.rbi → card_details_params.rbi} +2 -2
- data/rbi/increase/models/card_update_params.rbi +0 -11
- data/rbi/increase/models/{card_detail_update_params.rbi → card_update_pin_params.rbi} +2 -2
- data/rbi/increase/models/event_subscription_create_params.rbi +54 -0
- data/rbi/increase/models.rbi +7 -7
- data/rbi/increase/resources/cards.rbi +52 -3
- data/rbi/increase/resources/event_subscriptions.rbi +3 -0
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/models/{card_detail_create_details_iframe_params.rbs → card_create_details_iframe_params.rbs} +2 -2
- data/sig/increase/models/card_details.rbs +7 -7
- data/sig/increase/models/{card_detail_details_params.rbs → card_details_params.rbs} +2 -2
- data/sig/increase/models/card_update_params.rbs +0 -7
- data/sig/increase/models/{card_detail_update_params.rbs → card_update_pin_params.rbs} +2 -2
- data/sig/increase/models/event_subscription_create_params.rbs +24 -1
- data/sig/increase/models.rbs +6 -6
- data/sig/increase/resources/cards.rbs +17 -1
- data/sig/increase/resources/event_subscriptions.rbs +1 -0
- metadata +10 -13
- data/lib/increase/resources/card_details.rb +0 -85
- data/rbi/increase/resources/card_details.rbi +0 -63
- data/sig/increase/resources/card_details.rbs +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c9d5d521a0d4062d5793115d18701d7e78a947fd7ab9d0f5be3a6c8613034c2
|
4
|
+
data.tar.gz: 0733f79a7161419a12d3569e9119629ec015b9f5e9dc995430910c719649ca42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a10cc1146edfd8592c9cd270f59a894fec02a02e30f48bd0d9ea9c8443074bcc9b85127b9e57e9d28b5511f8043611a7911a8c8c6f1d5bd2a8b25dc673d70ba5
|
7
|
+
data.tar.gz: acadd05a61928c78a59d71db3e59f3076b46dfddb906c92720eba847e821d676f32157d63b6156a4d84abe98bfd523b741374045f89d247589b65e70e5c6a602
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.90.0 (2025-09-24)
|
4
|
+
|
5
|
+
Full Changelog: [v1.89.0...v1.90.0](https://github.com/Increase/increase-ruby/compare/v1.89.0...v1.90.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([1d66673](https://github.com/Increase/increase-ruby/commit/1d666739b4d2b06f94ee367cb34c6254b55ab137))
|
10
|
+
|
11
|
+
## 1.89.0 (2025-09-24)
|
12
|
+
|
13
|
+
Full Changelog: [v1.88.0...v1.89.0](https://github.com/Increase/increase-ruby/compare/v1.88.0...v1.89.0)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **api:** api update ([603e760](https://github.com/Increase/increase-ruby/commit/603e760be76b7ef00f4f13c32e4f79b33a1753e2))
|
18
|
+
|
3
19
|
## 1.88.0 (2025-09-24)
|
4
20
|
|
5
21
|
Full Changelog: [v1.87.0...v1.88.0](https://github.com/Increase/increase-ruby/compare/v1.87.0...v1.88.0)
|
data/README.md
CHANGED
data/lib/increase/client.rb
CHANGED
@@ -35,9 +35,6 @@ module Increase
|
|
35
35
|
# @return [Increase::Resources::Cards]
|
36
36
|
attr_reader :cards
|
37
37
|
|
38
|
-
# @return [Increase::Resources::CardDetails]
|
39
|
-
attr_reader :card_details
|
40
|
-
|
41
38
|
# @return [Increase::Resources::CardPayments]
|
42
39
|
attr_reader :card_payments
|
43
40
|
|
@@ -254,7 +251,6 @@ module Increase
|
|
254
251
|
@account_numbers = Increase::Resources::AccountNumbers.new(client: self)
|
255
252
|
@account_transfers = Increase::Resources::AccountTransfers.new(client: self)
|
256
253
|
@cards = Increase::Resources::Cards.new(client: self)
|
257
|
-
@card_details = Increase::Resources::CardDetails.new(client: self)
|
258
254
|
@card_payments = Increase::Resources::CardPayments.new(client: self)
|
259
255
|
@card_purchase_supplements = Increase::Resources::CardPurchaseSupplements.new(client: self)
|
260
256
|
@physical_cards = Increase::Resources::PhysicalCards.new(client: self)
|
@@ -2,19 +2,23 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
# @see Increase::Resources::
|
6
|
-
class
|
5
|
+
# @see Increase::Resources::Cards#create_details_iframe
|
6
|
+
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
10
10
|
# @!attribute physical_card_id
|
11
|
-
# The identifier of the Physical Card to
|
11
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
12
|
+
# the appearance of the card rendered in the iframe.
|
12
13
|
#
|
13
14
|
# @return [String, nil]
|
14
15
|
optional :physical_card_id, String
|
15
16
|
|
16
17
|
# @!method initialize(physical_card_id: nil, request_options: {})
|
17
|
-
#
|
18
|
+
# Some parameter documentations has been truncated, see
|
19
|
+
# {Increase::Models::CardCreateDetailsIframeParams} for more details.
|
20
|
+
#
|
21
|
+
# @param physical_card_id [String] The identifier of the Physical Card to create an iframe for. This will inform th
|
18
22
|
#
|
19
23
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
20
24
|
end
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
# @see Increase::Resources::
|
6
|
-
class
|
5
|
+
# @see Increase::Resources::Cards#details
|
6
|
+
class CardDetails < Increase::Internal::Type::BaseModel
|
7
7
|
# @!attribute card_id
|
8
8
|
# The identifier for the Card for which sensitive details have been returned.
|
9
9
|
#
|
@@ -38,8 +38,8 @@ module Increase
|
|
38
38
|
# A constant representing the object's type. For this resource it will always be
|
39
39
|
# `card_details`.
|
40
40
|
#
|
41
|
-
# @return [Symbol, Increase::Models::
|
42
|
-
required :type, enum: -> { Increase::
|
41
|
+
# @return [Symbol, Increase::Models::CardDetails::Type]
|
42
|
+
required :type, enum: -> { Increase::CardDetails::Type }
|
43
43
|
|
44
44
|
# @!attribute verification_code
|
45
45
|
# The three-digit verification code for the card. It's also known as the Card
|
@@ -51,7 +51,7 @@ module Increase
|
|
51
51
|
|
52
52
|
# @!method initialize(card_id:, expiration_month:, expiration_year:, pin:, primary_account_number:, type:, verification_code:)
|
53
53
|
# Some parameter documentations has been truncated, see
|
54
|
-
# {Increase::Models::
|
54
|
+
# {Increase::Models::CardDetails} for more details.
|
55
55
|
#
|
56
56
|
# An object containing the sensitive details (card number, CVC, PIN, etc) for a
|
57
57
|
# Card. These details are not included in the Card object. If you'd prefer to
|
@@ -69,14 +69,14 @@ module Increase
|
|
69
69
|
#
|
70
70
|
# @param primary_account_number [String] The card number.
|
71
71
|
#
|
72
|
-
# @param type [Symbol, Increase::Models::
|
72
|
+
# @param type [Symbol, Increase::Models::CardDetails::Type] A constant representing the object's type. For this resource it will always be `
|
73
73
|
#
|
74
74
|
# @param verification_code [String] The three-digit verification code for the card. It's also known as the Card Veri
|
75
75
|
|
76
76
|
# A constant representing the object's type. For this resource it will always be
|
77
77
|
# `card_details`.
|
78
78
|
#
|
79
|
-
# @see Increase::Models::
|
79
|
+
# @see Increase::Models::CardDetails#type
|
80
80
|
module Type
|
81
81
|
extend Increase::Internal::Type::Enum
|
82
82
|
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
# @see Increase::Resources::
|
6
|
-
class
|
5
|
+
# @see Increase::Resources::Cards#details
|
6
|
+
class CardDetailsParams < Increase::Internal::Type::BaseModel
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
# @see Increase::Resources::
|
5
|
+
# @see Increase::Resources::Cards#create_details_iframe
|
6
6
|
class CardIframeURL < Increase::Internal::Type::BaseModel
|
7
7
|
# @!attribute expires_at
|
8
8
|
# The time the iframe URL will expire.
|
@@ -34,19 +34,13 @@ module Increase
|
|
34
34
|
# @return [String, nil]
|
35
35
|
optional :entity_id, String
|
36
36
|
|
37
|
-
# @!attribute pin
|
38
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
39
|
-
#
|
40
|
-
# @return [String, nil]
|
41
|
-
optional :pin, String
|
42
|
-
|
43
37
|
# @!attribute status
|
44
38
|
# The status to update the Card with.
|
45
39
|
#
|
46
40
|
# @return [Symbol, Increase::Models::CardUpdateParams::Status, nil]
|
47
41
|
optional :status, enum: -> { Increase::CardUpdateParams::Status }
|
48
42
|
|
49
|
-
# @!method initialize(billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil,
|
43
|
+
# @!method initialize(billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, status: nil, request_options: {})
|
50
44
|
# Some parameter documentations has been truncated, see
|
51
45
|
# {Increase::Models::CardUpdateParams} for more details.
|
52
46
|
#
|
@@ -58,8 +52,6 @@ module Increase
|
|
58
52
|
#
|
59
53
|
# @param entity_id [String] The Entity the card belongs to. You only need to supply this in rare situations
|
60
54
|
#
|
61
|
-
# @param pin [String] The 4-digit PIN for the card, for use with ATMs.
|
62
|
-
#
|
63
55
|
# @param status [Symbol, Increase::Models::CardUpdateParams::Status] The status to update the Card with.
|
64
56
|
#
|
65
57
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
# @see Increase::Resources::
|
6
|
-
class
|
5
|
+
# @see Increase::Resources::Cards#update_pin
|
6
|
+
class CardUpdatePinParams < Increase::Internal::Type::BaseModel
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
@@ -35,7 +35,13 @@ module Increase
|
|
35
35
|
# @return [String, nil]
|
36
36
|
optional :shared_secret, String
|
37
37
|
|
38
|
-
# @!
|
38
|
+
# @!attribute status
|
39
|
+
# The status of the event subscription. Defaults to `active` if not specified.
|
40
|
+
#
|
41
|
+
# @return [Symbol, Increase::Models::EventSubscriptionCreateParams::Status, nil]
|
42
|
+
optional :status, enum: -> { Increase::EventSubscriptionCreateParams::Status }
|
43
|
+
|
44
|
+
# @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
|
39
45
|
# Some parameter documentations has been truncated, see
|
40
46
|
# {Increase::Models::EventSubscriptionCreateParams} for more details.
|
41
47
|
#
|
@@ -47,6 +53,8 @@ module Increase
|
|
47
53
|
#
|
48
54
|
# @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
|
49
55
|
#
|
56
|
+
# @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
|
57
|
+
#
|
50
58
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
51
59
|
|
52
60
|
# If specified, this subscription will only receive webhooks for Events with the
|
@@ -371,6 +379,20 @@ module Increase
|
|
371
379
|
# @!method self.values
|
372
380
|
# @return [Array<Symbol>]
|
373
381
|
end
|
382
|
+
|
383
|
+
# The status of the event subscription. Defaults to `active` if not specified.
|
384
|
+
module Status
|
385
|
+
extend Increase::Internal::Type::Enum
|
386
|
+
|
387
|
+
# The subscription is active and Events will be delivered normally.
|
388
|
+
ACTIVE = :active
|
389
|
+
|
390
|
+
# The subscription is temporarily disabled and Events will not be delivered.
|
391
|
+
DISABLED = :disabled
|
392
|
+
|
393
|
+
# @!method self.values
|
394
|
+
# @return [Array<Symbol>]
|
395
|
+
end
|
374
396
|
end
|
375
397
|
end
|
376
398
|
end
|
data/lib/increase/models.rb
CHANGED
@@ -131,15 +131,13 @@ module Increase
|
|
131
131
|
|
132
132
|
Card = Increase::Models::Card
|
133
133
|
|
134
|
-
|
135
|
-
|
136
|
-
CardDetailCreateDetailsIframeParams = Increase::Models::CardDetailCreateDetailsIframeParams
|
134
|
+
CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams
|
137
135
|
|
138
|
-
|
136
|
+
CardCreateParams = Increase::Models::CardCreateParams
|
139
137
|
|
140
|
-
|
138
|
+
CardDetails = Increase::Models::CardDetails
|
141
139
|
|
142
|
-
|
140
|
+
CardDetailsParams = Increase::Models::CardDetailsParams
|
143
141
|
|
144
142
|
CardIframeURL = Increase::Models::CardIframeURL
|
145
143
|
|
@@ -183,6 +181,8 @@ module Increase
|
|
183
181
|
|
184
182
|
CardUpdateParams = Increase::Models::CardUpdateParams
|
185
183
|
|
184
|
+
CardUpdatePinParams = Increase::Models::CardUpdatePinParams
|
185
|
+
|
186
186
|
CardValidation = Increase::Models::CardValidation
|
187
187
|
|
188
188
|
CardValidationCreateParams = Increase::Models::CardValidationCreateParams
|
@@ -55,7 +55,7 @@ module Increase
|
|
55
55
|
#
|
56
56
|
# Update a Card
|
57
57
|
#
|
58
|
-
# @overload update(card_id, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil,
|
58
|
+
# @overload update(card_id, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, status: nil, request_options: {})
|
59
59
|
#
|
60
60
|
# @param card_id [String] The card identifier.
|
61
61
|
#
|
@@ -67,8 +67,6 @@ module Increase
|
|
67
67
|
#
|
68
68
|
# @param entity_id [String] The Entity the card belongs to. You only need to supply this in rare situations
|
69
69
|
#
|
70
|
-
# @param pin [String] The 4-digit PIN for the card, for use with ATMs.
|
71
|
-
#
|
72
70
|
# @param status [Symbol, Increase::Models::CardUpdateParams::Status] The status to update the Card with.
|
73
71
|
#
|
74
72
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
@@ -123,6 +121,80 @@ module Increase
|
|
123
121
|
)
|
124
122
|
end
|
125
123
|
|
124
|
+
# Some parameter documentations has been truncated, see
|
125
|
+
# {Increase::Models::CardCreateDetailsIframeParams} for more details.
|
126
|
+
#
|
127
|
+
# Create an iframe URL for a Card to display the card details. More details about
|
128
|
+
# styling and usage can be found in the
|
129
|
+
# [documentation](/documentation/embedded-card-component).
|
130
|
+
#
|
131
|
+
# @overload create_details_iframe(card_id, physical_card_id: nil, request_options: {})
|
132
|
+
#
|
133
|
+
# @param card_id [String] The identifier of the Card to create an iframe for.
|
134
|
+
#
|
135
|
+
# @param physical_card_id [String] The identifier of the Physical Card to create an iframe for. This will inform th
|
136
|
+
#
|
137
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
138
|
+
#
|
139
|
+
# @return [Increase::Models::CardIframeURL]
|
140
|
+
#
|
141
|
+
# @see Increase::Models::CardCreateDetailsIframeParams
|
142
|
+
def create_details_iframe(card_id, params = {})
|
143
|
+
parsed, options = Increase::CardCreateDetailsIframeParams.dump_request(params)
|
144
|
+
@client.request(
|
145
|
+
method: :post,
|
146
|
+
path: ["cards/%1$s/create_details_iframe", card_id],
|
147
|
+
body: parsed,
|
148
|
+
model: Increase::CardIframeURL,
|
149
|
+
options: options
|
150
|
+
)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Sensitive details for a Card include the primary account number, expiry, card
|
154
|
+
# verification code, and PIN.
|
155
|
+
#
|
156
|
+
# @overload details(card_id, request_options: {})
|
157
|
+
#
|
158
|
+
# @param card_id [String] The identifier of the Card to retrieve details for.
|
159
|
+
#
|
160
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
161
|
+
#
|
162
|
+
# @return [Increase::Models::CardDetails]
|
163
|
+
#
|
164
|
+
# @see Increase::Models::CardDetailsParams
|
165
|
+
def details(card_id, params = {})
|
166
|
+
@client.request(
|
167
|
+
method: :get,
|
168
|
+
path: ["cards/%1$s/details", card_id],
|
169
|
+
model: Increase::CardDetails,
|
170
|
+
options: params[:request_options]
|
171
|
+
)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Update a Card's PIN
|
175
|
+
#
|
176
|
+
# @overload update_pin(card_id, pin:, request_options: {})
|
177
|
+
#
|
178
|
+
# @param card_id [String] The identifier of the Card to update the PIN for.
|
179
|
+
#
|
180
|
+
# @param pin [String] The 4-digit PIN for the card, for use with ATMs.
|
181
|
+
#
|
182
|
+
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
183
|
+
#
|
184
|
+
# @return [Increase::Models::CardDetails]
|
185
|
+
#
|
186
|
+
# @see Increase::Models::CardUpdatePinParams
|
187
|
+
def update_pin(card_id, params)
|
188
|
+
parsed, options = Increase::CardUpdatePinParams.dump_request(params)
|
189
|
+
@client.request(
|
190
|
+
method: :post,
|
191
|
+
path: ["cards/%1$s/update_pin", card_id],
|
192
|
+
body: parsed,
|
193
|
+
model: Increase::CardDetails,
|
194
|
+
options: options
|
195
|
+
)
|
196
|
+
end
|
197
|
+
|
126
198
|
# @api private
|
127
199
|
#
|
128
200
|
# @param client [Increase::Client]
|
@@ -8,7 +8,7 @@ module Increase
|
|
8
8
|
#
|
9
9
|
# Create an Event Subscription
|
10
10
|
#
|
11
|
-
# @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {})
|
11
|
+
# @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {})
|
12
12
|
#
|
13
13
|
# @param url [String] The URL you'd like us to send webhooks to.
|
14
14
|
#
|
@@ -18,6 +18,8 @@ module Increase
|
|
18
18
|
#
|
19
19
|
# @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri
|
20
20
|
#
|
21
|
+
# @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified.
|
22
|
+
#
|
21
23
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
22
24
|
#
|
23
25
|
# @return [Increase::Models::EventSubscription]
|
data/lib/increase/version.rb
CHANGED
data/lib/increase.rb
CHANGED
@@ -97,11 +97,10 @@ require_relative "increase/models/bookkeeping_entry_set_create_params"
|
|
97
97
|
require_relative "increase/models/bookkeeping_entry_set_list_params"
|
98
98
|
require_relative "increase/models/bookkeeping_entry_set_retrieve_params"
|
99
99
|
require_relative "increase/models/card"
|
100
|
+
require_relative "increase/models/card_create_details_iframe_params"
|
100
101
|
require_relative "increase/models/card_create_params"
|
101
|
-
require_relative "increase/models/card_detail_create_details_iframe_params"
|
102
|
-
require_relative "increase/models/card_detail_details_params"
|
103
102
|
require_relative "increase/models/card_details"
|
104
|
-
require_relative "increase/models/
|
103
|
+
require_relative "increase/models/card_details_params"
|
105
104
|
require_relative "increase/models/card_iframe_url"
|
106
105
|
require_relative "increase/models/card_list_params"
|
107
106
|
require_relative "increase/models/card_payment"
|
@@ -123,6 +122,7 @@ require_relative "increase/models/card_token_capabilities_params"
|
|
123
122
|
require_relative "increase/models/card_token_list_params"
|
124
123
|
require_relative "increase/models/card_token_retrieve_params"
|
125
124
|
require_relative "increase/models/card_update_params"
|
125
|
+
require_relative "increase/models/card_update_pin_params"
|
126
126
|
require_relative "increase/models/card_validation"
|
127
127
|
require_relative "increase/models/card_validation_create_params"
|
128
128
|
require_relative "increase/models/card_validation_list_params"
|
@@ -335,7 +335,6 @@ require_relative "increase/resources/ach_transfers"
|
|
335
335
|
require_relative "increase/resources/bookkeeping_accounts"
|
336
336
|
require_relative "increase/resources/bookkeeping_entries"
|
337
337
|
require_relative "increase/resources/bookkeeping_entry_sets"
|
338
|
-
require_relative "increase/resources/card_details"
|
339
338
|
require_relative "increase/resources/card_payments"
|
340
339
|
require_relative "increase/resources/card_purchase_supplements"
|
341
340
|
require_relative "increase/resources/card_push_transfers"
|
data/rbi/increase/client.rbi
CHANGED
@@ -34,9 +34,6 @@ module Increase
|
|
34
34
|
sig { returns(Increase::Resources::Cards) }
|
35
35
|
attr_reader :cards
|
36
36
|
|
37
|
-
sig { returns(Increase::Resources::CardDetails) }
|
38
|
-
attr_reader :card_details
|
39
|
-
|
40
37
|
sig { returns(Increase::Resources::CardPayments) }
|
41
38
|
attr_reader :card_payments
|
42
39
|
|
@@ -2,19 +2,20 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
11
|
T.any(
|
12
|
-
Increase::
|
12
|
+
Increase::CardCreateDetailsIframeParams,
|
13
13
|
Increase::Internal::AnyHash
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
# The identifier of the Physical Card to
|
17
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
18
|
+
# the appearance of the card rendered in the iframe.
|
18
19
|
sig { returns(T.nilable(String)) }
|
19
20
|
attr_reader :physical_card_id
|
20
21
|
|
@@ -28,7 +29,8 @@ module Increase
|
|
28
29
|
).returns(T.attached_class)
|
29
30
|
end
|
30
31
|
def self.new(
|
31
|
-
# The identifier of the Physical Card to
|
32
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
33
|
+
# the appearance of the card rendered in the iframe.
|
32
34
|
physical_card_id: nil,
|
33
35
|
request_options: {}
|
34
36
|
)
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardDetails < Increase::Internal::Type::BaseModel
|
6
6
|
OrHash =
|
7
7
|
T.type_alias do
|
8
|
-
T.any(Increase::
|
8
|
+
T.any(Increase::CardDetails, Increase::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
11
|
# The identifier for the Card for which sensitive details have been returned.
|
@@ -30,7 +30,7 @@ module Increase
|
|
30
30
|
|
31
31
|
# A constant representing the object's type. For this resource it will always be
|
32
32
|
# `card_details`.
|
33
|
-
sig { returns(Increase::
|
33
|
+
sig { returns(Increase::CardDetails::Type::TaggedSymbol) }
|
34
34
|
attr_accessor :type
|
35
35
|
|
36
36
|
# The three-digit verification code for the card. It's also known as the Card
|
@@ -51,7 +51,7 @@ module Increase
|
|
51
51
|
expiration_year: Integer,
|
52
52
|
pin: String,
|
53
53
|
primary_account_number: String,
|
54
|
-
type: Increase::
|
54
|
+
type: Increase::CardDetails::Type::OrSymbol,
|
55
55
|
verification_code: String
|
56
56
|
).returns(T.attached_class)
|
57
57
|
end
|
@@ -84,7 +84,7 @@ module Increase
|
|
84
84
|
expiration_year: Integer,
|
85
85
|
pin: String,
|
86
86
|
primary_account_number: String,
|
87
|
-
type: Increase::
|
87
|
+
type: Increase::CardDetails::Type::TaggedSymbol,
|
88
88
|
verification_code: String
|
89
89
|
}
|
90
90
|
)
|
@@ -98,16 +98,14 @@ module Increase
|
|
98
98
|
extend Increase::Internal::Type::Enum
|
99
99
|
|
100
100
|
TaggedSymbol =
|
101
|
-
T.type_alias { T.all(Symbol, Increase::
|
101
|
+
T.type_alias { T.all(Symbol, Increase::CardDetails::Type) }
|
102
102
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
103
103
|
|
104
104
|
CARD_DETAILS =
|
105
|
-
T.let(:card_details, Increase::
|
105
|
+
T.let(:card_details, Increase::CardDetails::Type::TaggedSymbol)
|
106
106
|
|
107
107
|
sig do
|
108
|
-
override.returns(
|
109
|
-
T::Array[Increase::CardDetailsAPI::Type::TaggedSymbol]
|
110
|
-
)
|
108
|
+
override.returns(T::Array[Increase::CardDetails::Type::TaggedSymbol])
|
111
109
|
end
|
112
110
|
def self.values
|
113
111
|
end
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardDetailsParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
|
-
T.any(Increase::
|
11
|
+
T.any(Increase::CardDetailsParams, Increase::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
14
|
sig do
|
@@ -50,13 +50,6 @@ module Increase
|
|
50
50
|
sig { params(entity_id: String).void }
|
51
51
|
attr_writer :entity_id
|
52
52
|
|
53
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
54
|
-
sig { returns(T.nilable(String)) }
|
55
|
-
attr_reader :pin
|
56
|
-
|
57
|
-
sig { params(pin: String).void }
|
58
|
-
attr_writer :pin
|
59
|
-
|
60
53
|
# The status to update the Card with.
|
61
54
|
sig { returns(T.nilable(Increase::CardUpdateParams::Status::OrSymbol)) }
|
62
55
|
attr_reader :status
|
@@ -70,7 +63,6 @@ module Increase
|
|
70
63
|
description: String,
|
71
64
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
|
72
65
|
entity_id: String,
|
73
|
-
pin: String,
|
74
66
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
75
67
|
request_options: Increase::RequestOptions::OrHash
|
76
68
|
).returns(T.attached_class)
|
@@ -87,8 +79,6 @@ module Increase
|
|
87
79
|
# The Entity the card belongs to. You only need to supply this in rare situations
|
88
80
|
# when the card is not for the Account holder.
|
89
81
|
entity_id: nil,
|
90
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
91
|
-
pin: nil,
|
92
82
|
# The status to update the Card with.
|
93
83
|
status: nil,
|
94
84
|
request_options: {}
|
@@ -102,7 +92,6 @@ module Increase
|
|
102
92
|
description: String,
|
103
93
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
104
94
|
entity_id: String,
|
105
|
-
pin: String,
|
106
95
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
107
96
|
request_options: Increase::RequestOptions
|
108
97
|
}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardUpdatePinParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
|
-
T.any(Increase::
|
11
|
+
T.any(Increase::CardUpdatePinParams, Increase::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
14
|
# The 4-digit PIN for the card, for use with ATMs.
|