increase 1.88.0 → 1.89.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 +8 -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.rb +6 -6
- data/lib/increase/resources/cards.rb +75 -3
- 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.rbi +7 -7
- data/rbi/increase/resources/cards.rbi +52 -3
- 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.rbs +6 -6
- data/sig/increase/resources/cards.rbs +17 -1
- 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: 7275a50335699dbca8dcdf0923eb6fba66c94f4d2fdc9de51b95e47eb1c7cdfa
|
4
|
+
data.tar.gz: 2c63e95248ae8a51fbdb5cc28129a858bfab693e5270a1224adbc7f1382bd370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd47cadc3ae99bc005107f1306016c7e2e96598b515c1f13727e54747c03017d11084f35a256c76c88dc51f4af21fa62c5b153c8451e9078ba08f73d97eea964
|
7
|
+
data.tar.gz: a4f3e10c76f5ad48f5064a28eedc301a1fe656893647ad821f68862cd175fbf48d8a9cd23a1c231dab7a09178b5857c8ad5b5fb505603f6cc6e674c086fc755b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.89.0 (2025-09-24)
|
4
|
+
|
5
|
+
Full Changelog: [v1.88.0...v1.89.0](https://github.com/Increase/increase-ruby/compare/v1.88.0...v1.89.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([603e760](https://github.com/Increase/increase-ruby/commit/603e760be76b7ef00f4f13c32e4f79b33a1753e2))
|
10
|
+
|
3
11
|
## 1.88.0 (2025-09-24)
|
4
12
|
|
5
13
|
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
|
|
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]
|
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.
|
data/rbi/increase/models.rbi
CHANGED
@@ -104,16 +104,14 @@ module Increase
|
|
104
104
|
|
105
105
|
Card = Increase::Models::Card
|
106
106
|
|
107
|
-
|
108
|
-
|
109
|
-
CardDetailCreateDetailsIframeParams =
|
110
|
-
Increase::Models::CardDetailCreateDetailsIframeParams
|
107
|
+
CardCreateDetailsIframeParams =
|
108
|
+
Increase::Models::CardCreateDetailsIframeParams
|
111
109
|
|
112
|
-
|
110
|
+
CardCreateParams = Increase::Models::CardCreateParams
|
113
111
|
|
114
|
-
|
112
|
+
CardDetails = Increase::Models::CardDetails
|
115
113
|
|
116
|
-
|
114
|
+
CardDetailsParams = Increase::Models::CardDetailsParams
|
117
115
|
|
118
116
|
CardIframeURL = Increase::Models::CardIframeURL
|
119
117
|
|
@@ -161,6 +159,8 @@ module Increase
|
|
161
159
|
|
162
160
|
CardUpdateParams = Increase::Models::CardUpdateParams
|
163
161
|
|
162
|
+
CardUpdatePinParams = Increase::Models::CardUpdatePinParams
|
163
|
+
|
164
164
|
CardValidation = Increase::Models::CardValidation
|
165
165
|
|
166
166
|
CardValidationCreateParams = Increase::Models::CardValidationCreateParams
|
@@ -56,7 +56,6 @@ module Increase
|
|
56
56
|
description: String,
|
57
57
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
|
58
58
|
entity_id: String,
|
59
|
-
pin: String,
|
60
59
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
61
60
|
request_options: Increase::RequestOptions::OrHash
|
62
61
|
).returns(Increase::Card)
|
@@ -75,8 +74,6 @@ module Increase
|
|
75
74
|
# The Entity the card belongs to. You only need to supply this in rare situations
|
76
75
|
# when the card is not for the Account holder.
|
77
76
|
entity_id: nil,
|
78
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
79
|
-
pin: nil,
|
80
77
|
# The status to update the Card with.
|
81
78
|
status: nil,
|
82
79
|
request_options: {}
|
@@ -114,6 +111,58 @@ module Increase
|
|
114
111
|
)
|
115
112
|
end
|
116
113
|
|
114
|
+
# Create an iframe URL for a Card to display the card details. More details about
|
115
|
+
# styling and usage can be found in the
|
116
|
+
# [documentation](/documentation/embedded-card-component).
|
117
|
+
sig do
|
118
|
+
params(
|
119
|
+
card_id: String,
|
120
|
+
physical_card_id: String,
|
121
|
+
request_options: Increase::RequestOptions::OrHash
|
122
|
+
).returns(Increase::CardIframeURL)
|
123
|
+
end
|
124
|
+
def create_details_iframe(
|
125
|
+
# The identifier of the Card to create an iframe for.
|
126
|
+
card_id,
|
127
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
128
|
+
# the appearance of the card rendered in the iframe.
|
129
|
+
physical_card_id: nil,
|
130
|
+
request_options: {}
|
131
|
+
)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Sensitive details for a Card include the primary account number, expiry, card
|
135
|
+
# verification code, and PIN.
|
136
|
+
sig do
|
137
|
+
params(
|
138
|
+
card_id: String,
|
139
|
+
request_options: Increase::RequestOptions::OrHash
|
140
|
+
).returns(Increase::CardDetails)
|
141
|
+
end
|
142
|
+
def details(
|
143
|
+
# The identifier of the Card to retrieve details for.
|
144
|
+
card_id,
|
145
|
+
request_options: {}
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Update a Card's PIN
|
150
|
+
sig do
|
151
|
+
params(
|
152
|
+
card_id: String,
|
153
|
+
pin: String,
|
154
|
+
request_options: Increase::RequestOptions::OrHash
|
155
|
+
).returns(Increase::CardDetails)
|
156
|
+
end
|
157
|
+
def update_pin(
|
158
|
+
# The identifier of the Card to update the PIN for.
|
159
|
+
card_id,
|
160
|
+
# The 4-digit PIN for the card, for use with ATMs.
|
161
|
+
pin:,
|
162
|
+
request_options: {}
|
163
|
+
)
|
164
|
+
end
|
165
|
+
|
117
166
|
# @api private
|
118
167
|
sig { params(client: Increase::Client).returns(T.attached_class) }
|
119
168
|
def self.new(client:)
|
data/sig/increase/client.rbs
CHANGED
@@ -23,8 +23,6 @@ module Increase
|
|
23
23
|
|
24
24
|
attr_reader cards: Increase::Resources::Cards
|
25
25
|
|
26
|
-
attr_reader card_details: Increase::Resources::CardDetails
|
27
|
-
|
28
26
|
attr_reader card_payments: Increase::Resources::CardPayments
|
29
27
|
|
30
28
|
attr_reader card_purchase_supplements: Increase::Resources::CardPurchaseSupplements
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
|
-
type
|
3
|
+
type card_create_details_iframe_params =
|
4
4
|
{ physical_card_id: String }
|
5
5
|
& Increase::Internal::Type::request_parameters
|
6
6
|
|
7
|
-
class
|
7
|
+
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
|
8
8
|
extend Increase::Internal::Type::RequestParameters::Converter
|
9
9
|
include Increase::Internal::Type::RequestParameters
|
10
10
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
|
-
type
|
3
|
+
type card_details =
|
4
4
|
{
|
5
5
|
card_id: String,
|
6
6
|
expiration_month: Integer,
|
7
7
|
expiration_year: Integer,
|
8
8
|
pin: String,
|
9
9
|
primary_account_number: String,
|
10
|
-
type: Increase::Models::
|
10
|
+
type: Increase::Models::CardDetails::type_,
|
11
11
|
verification_code: String
|
12
12
|
}
|
13
13
|
|
14
|
-
class
|
14
|
+
class CardDetails < Increase::Internal::Type::BaseModel
|
15
15
|
attr_accessor card_id: String
|
16
16
|
|
17
17
|
attr_accessor expiration_month: Integer
|
@@ -22,7 +22,7 @@ module Increase
|
|
22
22
|
|
23
23
|
attr_accessor primary_account_number: String
|
24
24
|
|
25
|
-
attr_accessor type: Increase::Models::
|
25
|
+
attr_accessor type: Increase::Models::CardDetails::type_
|
26
26
|
|
27
27
|
attr_accessor verification_code: String
|
28
28
|
|
@@ -32,7 +32,7 @@ module Increase
|
|
32
32
|
expiration_year: Integer,
|
33
33
|
pin: String,
|
34
34
|
primary_account_number: String,
|
35
|
-
type: Increase::Models::
|
35
|
+
type: Increase::Models::CardDetails::type_,
|
36
36
|
verification_code: String
|
37
37
|
) -> void
|
38
38
|
|
@@ -42,7 +42,7 @@ module Increase
|
|
42
42
|
expiration_year: Integer,
|
43
43
|
pin: String,
|
44
44
|
primary_account_number: String,
|
45
|
-
type: Increase::Models::
|
45
|
+
type: Increase::Models::CardDetails::type_,
|
46
46
|
verification_code: String
|
47
47
|
}
|
48
48
|
|
@@ -53,7 +53,7 @@ module Increase
|
|
53
53
|
|
54
54
|
CARD_DETAILS: :card_details
|
55
55
|
|
56
|
-
def self?.values: -> ::Array[Increase::Models::
|
56
|
+
def self?.values: -> ::Array[Increase::Models::CardDetails::type_]
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
|
-
type
|
3
|
+
type card_details_params =
|
4
4
|
{ } & Increase::Internal::Type::request_parameters
|
5
5
|
|
6
|
-
class
|
6
|
+
class CardDetailsParams < Increase::Internal::Type::BaseModel
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
@@ -6,7 +6,6 @@ module Increase
|
|
6
6
|
description: String,
|
7
7
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
8
8
|
entity_id: String,
|
9
|
-
pin: String,
|
10
9
|
status: Increase::Models::CardUpdateParams::status
|
11
10
|
}
|
12
11
|
& Increase::Internal::Type::request_parameters
|
@@ -35,10 +34,6 @@ module Increase
|
|
35
34
|
|
36
35
|
def entity_id=: (String) -> String
|
37
36
|
|
38
|
-
attr_reader pin: String?
|
39
|
-
|
40
|
-
def pin=: (String) -> String
|
41
|
-
|
42
37
|
attr_reader status: Increase::Models::CardUpdateParams::status?
|
43
38
|
|
44
39
|
def status=: (
|
@@ -50,7 +45,6 @@ module Increase
|
|
50
45
|
?description: String,
|
51
46
|
?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
52
47
|
?entity_id: String,
|
53
|
-
?pin: String,
|
54
48
|
?status: Increase::Models::CardUpdateParams::status,
|
55
49
|
?request_options: Increase::request_opts
|
56
50
|
) -> void
|
@@ -60,7 +54,6 @@ module Increase
|
|
60
54
|
description: String,
|
61
55
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
62
56
|
entity_id: String,
|
63
|
-
pin: String,
|
64
57
|
status: Increase::Models::CardUpdateParams::status,
|
65
58
|
request_options: Increase::RequestOptions
|
66
59
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
|
-
type
|
3
|
+
type card_update_pin_params =
|
4
4
|
{ pin: String } & Increase::Internal::Type::request_parameters
|
5
5
|
|
6
|
-
class
|
6
|
+
class CardUpdatePinParams < Increase::Internal::Type::BaseModel
|
7
7
|
extend Increase::Internal::Type::RequestParameters::Converter
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
data/sig/increase/models.rbs
CHANGED
@@ -91,15 +91,13 @@ module Increase
|
|
91
91
|
|
92
92
|
class Card = Increase::Models::Card
|
93
93
|
|
94
|
-
class
|
95
|
-
|
96
|
-
class CardDetailCreateDetailsIframeParams = Increase::Models::CardDetailCreateDetailsIframeParams
|
94
|
+
class CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams
|
97
95
|
|
98
|
-
class
|
96
|
+
class CardCreateParams = Increase::Models::CardCreateParams
|
99
97
|
|
100
|
-
class
|
98
|
+
class CardDetails = Increase::Models::CardDetails
|
101
99
|
|
102
|
-
class
|
100
|
+
class CardDetailsParams = Increase::Models::CardDetailsParams
|
103
101
|
|
104
102
|
class CardIframeURL = Increase::Models::CardIframeURL
|
105
103
|
|
@@ -143,6 +141,8 @@ module Increase
|
|
143
141
|
|
144
142
|
class CardUpdateParams = Increase::Models::CardUpdateParams
|
145
143
|
|
144
|
+
class CardUpdatePinParams = Increase::Models::CardUpdatePinParams
|
145
|
+
|
146
146
|
class CardValidation = Increase::Models::CardValidation
|
147
147
|
|
148
148
|
class CardValidationCreateParams = Increase::Models::CardValidationCreateParams
|
@@ -21,7 +21,6 @@ module Increase
|
|
21
21
|
?description: String,
|
22
22
|
?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
23
23
|
?entity_id: String,
|
24
|
-
?pin: String,
|
25
24
|
?status: Increase::Models::CardUpdateParams::status,
|
26
25
|
?request_options: Increase::request_opts
|
27
26
|
) -> Increase::Card
|
@@ -36,6 +35,23 @@ module Increase
|
|
36
35
|
?request_options: Increase::request_opts
|
37
36
|
) -> Increase::Internal::Page[Increase::Card]
|
38
37
|
|
38
|
+
def create_details_iframe: (
|
39
|
+
String card_id,
|
40
|
+
?physical_card_id: String,
|
41
|
+
?request_options: Increase::request_opts
|
42
|
+
) -> Increase::CardIframeURL
|
43
|
+
|
44
|
+
def details: (
|
45
|
+
String card_id,
|
46
|
+
?request_options: Increase::request_opts
|
47
|
+
) -> Increase::CardDetails
|
48
|
+
|
49
|
+
def update_pin: (
|
50
|
+
String card_id,
|
51
|
+
pin: String,
|
52
|
+
?request_options: Increase::request_opts
|
53
|
+
) -> Increase::CardDetails
|
54
|
+
|
39
55
|
def initialize: (client: Increase::Client) -> void
|
40
56
|
end
|
41
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: increase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.89.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Increase
|
@@ -102,11 +102,10 @@ files:
|
|
102
102
|
- lib/increase/models/bookkeeping_entry_set_list_params.rb
|
103
103
|
- lib/increase/models/bookkeeping_entry_set_retrieve_params.rb
|
104
104
|
- lib/increase/models/card.rb
|
105
|
+
- lib/increase/models/card_create_details_iframe_params.rb
|
105
106
|
- lib/increase/models/card_create_params.rb
|
106
|
-
- lib/increase/models/card_detail_create_details_iframe_params.rb
|
107
|
-
- lib/increase/models/card_detail_details_params.rb
|
108
|
-
- lib/increase/models/card_detail_update_params.rb
|
109
107
|
- lib/increase/models/card_details.rb
|
108
|
+
- lib/increase/models/card_details_params.rb
|
110
109
|
- lib/increase/models/card_iframe_url.rb
|
111
110
|
- lib/increase/models/card_list_params.rb
|
112
111
|
- lib/increase/models/card_payment.rb
|
@@ -128,6 +127,7 @@ files:
|
|
128
127
|
- lib/increase/models/card_token_list_params.rb
|
129
128
|
- lib/increase/models/card_token_retrieve_params.rb
|
130
129
|
- lib/increase/models/card_update_params.rb
|
130
|
+
- lib/increase/models/card_update_pin_params.rb
|
131
131
|
- lib/increase/models/card_validation.rb
|
132
132
|
- lib/increase/models/card_validation_create_params.rb
|
133
133
|
- lib/increase/models/card_validation_list_params.rb
|
@@ -340,7 +340,6 @@ files:
|
|
340
340
|
- lib/increase/resources/bookkeeping_accounts.rb
|
341
341
|
- lib/increase/resources/bookkeeping_entries.rb
|
342
342
|
- lib/increase/resources/bookkeeping_entry_sets.rb
|
343
|
-
- lib/increase/resources/card_details.rb
|
344
343
|
- lib/increase/resources/card_payments.rb
|
345
344
|
- lib/increase/resources/card_purchase_supplements.rb
|
346
345
|
- lib/increase/resources/card_push_transfers.rb
|
@@ -482,11 +481,10 @@ files:
|
|
482
481
|
- rbi/increase/models/bookkeeping_entry_set_list_params.rbi
|
483
482
|
- rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi
|
484
483
|
- rbi/increase/models/card.rbi
|
484
|
+
- rbi/increase/models/card_create_details_iframe_params.rbi
|
485
485
|
- rbi/increase/models/card_create_params.rbi
|
486
|
-
- rbi/increase/models/card_detail_create_details_iframe_params.rbi
|
487
|
-
- rbi/increase/models/card_detail_details_params.rbi
|
488
|
-
- rbi/increase/models/card_detail_update_params.rbi
|
489
486
|
- rbi/increase/models/card_details.rbi
|
487
|
+
- rbi/increase/models/card_details_params.rbi
|
490
488
|
- rbi/increase/models/card_iframe_url.rbi
|
491
489
|
- rbi/increase/models/card_list_params.rbi
|
492
490
|
- rbi/increase/models/card_payment.rbi
|
@@ -508,6 +506,7 @@ files:
|
|
508
506
|
- rbi/increase/models/card_token_list_params.rbi
|
509
507
|
- rbi/increase/models/card_token_retrieve_params.rbi
|
510
508
|
- rbi/increase/models/card_update_params.rbi
|
509
|
+
- rbi/increase/models/card_update_pin_params.rbi
|
511
510
|
- rbi/increase/models/card_validation.rbi
|
512
511
|
- rbi/increase/models/card_validation_create_params.rbi
|
513
512
|
- rbi/increase/models/card_validation_list_params.rbi
|
@@ -720,7 +719,6 @@ files:
|
|
720
719
|
- rbi/increase/resources/bookkeeping_accounts.rbi
|
721
720
|
- rbi/increase/resources/bookkeeping_entries.rbi
|
722
721
|
- rbi/increase/resources/bookkeeping_entry_sets.rbi
|
723
|
-
- rbi/increase/resources/card_details.rbi
|
724
722
|
- rbi/increase/resources/card_payments.rbi
|
725
723
|
- rbi/increase/resources/card_purchase_supplements.rbi
|
726
724
|
- rbi/increase/resources/card_push_transfers.rbi
|
@@ -861,11 +859,10 @@ files:
|
|
861
859
|
- sig/increase/models/bookkeeping_entry_set_list_params.rbs
|
862
860
|
- sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs
|
863
861
|
- sig/increase/models/card.rbs
|
862
|
+
- sig/increase/models/card_create_details_iframe_params.rbs
|
864
863
|
- sig/increase/models/card_create_params.rbs
|
865
|
-
- sig/increase/models/card_detail_create_details_iframe_params.rbs
|
866
|
-
- sig/increase/models/card_detail_details_params.rbs
|
867
|
-
- sig/increase/models/card_detail_update_params.rbs
|
868
864
|
- sig/increase/models/card_details.rbs
|
865
|
+
- sig/increase/models/card_details_params.rbs
|
869
866
|
- sig/increase/models/card_iframe_url.rbs
|
870
867
|
- sig/increase/models/card_list_params.rbs
|
871
868
|
- sig/increase/models/card_payment.rbs
|
@@ -887,6 +884,7 @@ files:
|
|
887
884
|
- sig/increase/models/card_token_list_params.rbs
|
888
885
|
- sig/increase/models/card_token_retrieve_params.rbs
|
889
886
|
- sig/increase/models/card_update_params.rbs
|
887
|
+
- sig/increase/models/card_update_pin_params.rbs
|
890
888
|
- sig/increase/models/card_validation.rbs
|
891
889
|
- sig/increase/models/card_validation_create_params.rbs
|
892
890
|
- sig/increase/models/card_validation_list_params.rbs
|
@@ -1099,7 +1097,6 @@ files:
|
|
1099
1097
|
- sig/increase/resources/bookkeeping_accounts.rbs
|
1100
1098
|
- sig/increase/resources/bookkeeping_entries.rbs
|
1101
1099
|
- sig/increase/resources/bookkeeping_entry_sets.rbs
|
1102
|
-
- sig/increase/resources/card_details.rbs
|
1103
1100
|
- sig/increase/resources/card_payments.rbs
|
1104
1101
|
- sig/increase/resources/card_purchase_supplements.rbs
|
1105
1102
|
- sig/increase/resources/card_push_transfers.rbs
|
@@ -1,85 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Resources
|
5
|
-
class CardDetails
|
6
|
-
# Update a Card's PIN
|
7
|
-
#
|
8
|
-
# @overload update(card_id, pin:, request_options: {})
|
9
|
-
#
|
10
|
-
# @param card_id [String] The card identifier.
|
11
|
-
#
|
12
|
-
# @param pin [String] The 4-digit PIN for the card, for use with ATMs.
|
13
|
-
#
|
14
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
15
|
-
#
|
16
|
-
# @return [Increase::Models::CardDetailsAPI]
|
17
|
-
#
|
18
|
-
# @see Increase::Models::CardDetailUpdateParams
|
19
|
-
def update(card_id, params)
|
20
|
-
parsed, options = Increase::CardDetailUpdateParams.dump_request(params)
|
21
|
-
@client.request(
|
22
|
-
method: :patch,
|
23
|
-
path: ["cards/%1$s/details", card_id],
|
24
|
-
body: parsed,
|
25
|
-
model: Increase::CardDetailsAPI,
|
26
|
-
options: options
|
27
|
-
)
|
28
|
-
end
|
29
|
-
|
30
|
-
# Create an iframe URL for a Card to display the card details. More details about
|
31
|
-
# styling and usage can be found in the
|
32
|
-
# [documentation](/documentation/embedded-card-component).
|
33
|
-
#
|
34
|
-
# @overload create_details_iframe(card_id, physical_card_id: nil, request_options: {})
|
35
|
-
#
|
36
|
-
# @param card_id [String] The identifier of the Card to retrieve details for.
|
37
|
-
#
|
38
|
-
# @param physical_card_id [String] The identifier of the Physical Card to retrieve details for.
|
39
|
-
#
|
40
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
41
|
-
#
|
42
|
-
# @return [Increase::Models::CardIframeURL]
|
43
|
-
#
|
44
|
-
# @see Increase::Models::CardDetailCreateDetailsIframeParams
|
45
|
-
def create_details_iframe(card_id, params = {})
|
46
|
-
parsed, options = Increase::CardDetailCreateDetailsIframeParams.dump_request(params)
|
47
|
-
@client.request(
|
48
|
-
method: :post,
|
49
|
-
path: ["cards/%1$s/create_details_iframe", card_id],
|
50
|
-
body: parsed,
|
51
|
-
model: Increase::CardIframeURL,
|
52
|
-
options: options
|
53
|
-
)
|
54
|
-
end
|
55
|
-
|
56
|
-
# Sensitive details for a Card include the primary account number, expiry, card
|
57
|
-
# verification code, and PIN.
|
58
|
-
#
|
59
|
-
# @overload details(card_id, request_options: {})
|
60
|
-
#
|
61
|
-
# @param card_id [String] The identifier of the Card to retrieve details for.
|
62
|
-
#
|
63
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
64
|
-
#
|
65
|
-
# @return [Increase::Models::CardDetailsAPI]
|
66
|
-
#
|
67
|
-
# @see Increase::Models::CardDetailDetailsParams
|
68
|
-
def details(card_id, params = {})
|
69
|
-
@client.request(
|
70
|
-
method: :get,
|
71
|
-
path: ["cards/%1$s/details", card_id],
|
72
|
-
model: Increase::CardDetailsAPI,
|
73
|
-
options: params[:request_options]
|
74
|
-
)
|
75
|
-
end
|
76
|
-
|
77
|
-
# @api private
|
78
|
-
#
|
79
|
-
# @param client [Increase::Client]
|
80
|
-
def initialize(client:)
|
81
|
-
@client = client
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Resources
|
5
|
-
class CardDetails
|
6
|
-
# Update a Card's PIN
|
7
|
-
sig do
|
8
|
-
params(
|
9
|
-
card_id: String,
|
10
|
-
pin: String,
|
11
|
-
request_options: Increase::RequestOptions::OrHash
|
12
|
-
).returns(Increase::CardDetailsAPI)
|
13
|
-
end
|
14
|
-
def update(
|
15
|
-
# The card identifier.
|
16
|
-
card_id,
|
17
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
18
|
-
pin:,
|
19
|
-
request_options: {}
|
20
|
-
)
|
21
|
-
end
|
22
|
-
|
23
|
-
# Create an iframe URL for a Card to display the card details. More details about
|
24
|
-
# styling and usage can be found in the
|
25
|
-
# [documentation](/documentation/embedded-card-component).
|
26
|
-
sig do
|
27
|
-
params(
|
28
|
-
card_id: String,
|
29
|
-
physical_card_id: String,
|
30
|
-
request_options: Increase::RequestOptions::OrHash
|
31
|
-
).returns(Increase::CardIframeURL)
|
32
|
-
end
|
33
|
-
def create_details_iframe(
|
34
|
-
# The identifier of the Card to retrieve details for.
|
35
|
-
card_id,
|
36
|
-
# The identifier of the Physical Card to retrieve details for.
|
37
|
-
physical_card_id: nil,
|
38
|
-
request_options: {}
|
39
|
-
)
|
40
|
-
end
|
41
|
-
|
42
|
-
# Sensitive details for a Card include the primary account number, expiry, card
|
43
|
-
# verification code, and PIN.
|
44
|
-
sig do
|
45
|
-
params(
|
46
|
-
card_id: String,
|
47
|
-
request_options: Increase::RequestOptions::OrHash
|
48
|
-
).returns(Increase::CardDetailsAPI)
|
49
|
-
end
|
50
|
-
def details(
|
51
|
-
# The identifier of the Card to retrieve details for.
|
52
|
-
card_id,
|
53
|
-
request_options: {}
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
|
-
# @api private
|
58
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
59
|
-
def self.new(client:)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Increase
|
2
|
-
module Resources
|
3
|
-
class CardDetails
|
4
|
-
def update: (
|
5
|
-
String card_id,
|
6
|
-
pin: String,
|
7
|
-
?request_options: Increase::request_opts
|
8
|
-
) -> Increase::CardDetailsAPI
|
9
|
-
|
10
|
-
def create_details_iframe: (
|
11
|
-
String card_id,
|
12
|
-
?physical_card_id: String,
|
13
|
-
?request_options: Increase::request_opts
|
14
|
-
) -> Increase::CardIframeURL
|
15
|
-
|
16
|
-
def details: (
|
17
|
-
String card_id,
|
18
|
-
?request_options: Increase::request_opts
|
19
|
-
) -> Increase::CardDetailsAPI
|
20
|
-
|
21
|
-
def initialize: (client: Increase::Client) -> void
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|