increase 1.15.0 → 1.16.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/models/physical_card.rb +15 -4
- data/lib/increase/models/physical_card_create_params.rb +22 -4
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/physical_card.rbi +18 -3
- data/rbi/increase/models/physical_card_create_params.rbi +27 -3
- data/sig/increase/models/physical_card.rbs +14 -2
- data/sig/increase/models/physical_card_create_params.rbs +16 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c34133d29b41e2324539575497338d848b672c6a9d678f939ccac0d0e9c7e3
|
4
|
+
data.tar.gz: 3021587175b154c108a8441032a70d09f2b2822bc07bc93652609394dab89438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcb1ac03b67f20bb1c0986d21d4bab8a8e2c1dc33a9356f67fe2ce0257611e09bf3d917f76c87f26f5268ed7ca61cf78a7e0a2f84f24237f034574ec51397ae3
|
7
|
+
data.tar.gz: 6f4d8005504ba8b3a24ce9abac2d5e0801567a21e5a90408b3c83583f2448cfc17a5d26a72665e265a8316390cc6926bd87a98a183735491a002fdca811d8ea8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.16.0 (2025-07-22)
|
4
|
+
|
5
|
+
Full Changelog: [v1.15.0...v1.16.0](https://github.com/Increase/increase-ruby/compare/v1.15.0...v1.16.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([3ab5ee5](https://github.com/Increase/increase-ruby/commit/3ab5ee553ac93933b48ba84ca19f0ee3097e0af8))
|
10
|
+
|
3
11
|
## 1.15.0 (2025-07-21)
|
4
12
|
|
5
13
|
Full Changelog: [v1.14.0...v1.15.0](https://github.com/Increase/increase-ruby/compare/v1.14.0...v1.15.0)
|
data/README.md
CHANGED
@@ -172,6 +172,12 @@ module Increase
|
|
172
172
|
# @return [String]
|
173
173
|
required :city, String
|
174
174
|
|
175
|
+
# @!attribute country
|
176
|
+
# The country of the shipping address.
|
177
|
+
#
|
178
|
+
# @return [String]
|
179
|
+
required :country, String
|
180
|
+
|
175
181
|
# @!attribute line1
|
176
182
|
# The first line of the shipping address.
|
177
183
|
#
|
@@ -203,16 +209,18 @@ module Increase
|
|
203
209
|
required :postal_code, String
|
204
210
|
|
205
211
|
# @!attribute state
|
206
|
-
# The
|
212
|
+
# The state of the shipping address.
|
207
213
|
#
|
208
214
|
# @return [String]
|
209
215
|
required :state, String
|
210
216
|
|
211
|
-
# @!method initialize(city:, line1:, line2:, line3:, name:, postal_code:, state:)
|
217
|
+
# @!method initialize(city:, country:, line1:, line2:, line3:, name:, postal_code:, state:)
|
212
218
|
# The location to where the card's packing label is addressed.
|
213
219
|
#
|
214
220
|
# @param city [String] The city of the shipping address.
|
215
221
|
#
|
222
|
+
# @param country [String] The country of the shipping address.
|
223
|
+
#
|
216
224
|
# @param line1 [String] The first line of the shipping address.
|
217
225
|
#
|
218
226
|
# @param line2 [String, nil] The second line of the shipping address.
|
@@ -223,7 +231,7 @@ module Increase
|
|
223
231
|
#
|
224
232
|
# @param postal_code [String] The postal code of the shipping address.
|
225
233
|
#
|
226
|
-
# @param state [String] The
|
234
|
+
# @param state [String] The state of the shipping address.
|
227
235
|
end
|
228
236
|
|
229
237
|
# The shipping method.
|
@@ -232,7 +240,7 @@ module Increase
|
|
232
240
|
module Method
|
233
241
|
extend Increase::Internal::Type::Enum
|
234
242
|
|
235
|
-
# USPS Post
|
243
|
+
# USPS Post.
|
236
244
|
USPS = :usps
|
237
245
|
|
238
246
|
# FedEx Priority Overnight, no signature.
|
@@ -241,6 +249,9 @@ module Increase
|
|
241
249
|
# FedEx 2-day.
|
242
250
|
FEDEX_2_DAY = :fedex_2_day
|
243
251
|
|
252
|
+
# DHL Worldwide Express, international shipping only.
|
253
|
+
DHL_WORLDWIDE_EXPRESS = :dhl_worldwide_express
|
254
|
+
|
244
255
|
# @!method self.values
|
245
256
|
# @return [Array<Symbol>]
|
246
257
|
end
|
@@ -133,11 +133,20 @@ module Increase
|
|
133
133
|
required :postal_code, String
|
134
134
|
|
135
135
|
# @!attribute state
|
136
|
-
# The
|
136
|
+
# The state of the shipping address.
|
137
137
|
#
|
138
138
|
# @return [String]
|
139
139
|
required :state, String
|
140
140
|
|
141
|
+
# @!attribute country
|
142
|
+
# The two-character ISO 3166-1 code of the country where the card should be
|
143
|
+
# shipped (e.g., `US`). Please reach out to
|
144
|
+
# [support@increase.com](mailto:support@increase.com) to ship cards
|
145
|
+
# internationally.
|
146
|
+
#
|
147
|
+
# @return [String, nil]
|
148
|
+
optional :country, String
|
149
|
+
|
141
150
|
# @!attribute line2
|
142
151
|
# The second line of the shipping address.
|
143
152
|
#
|
@@ -156,7 +165,11 @@ module Increase
|
|
156
165
|
# @return [String, nil]
|
157
166
|
optional :phone_number, String
|
158
167
|
|
159
|
-
# @!method initialize(city:, line1:, name:, postal_code:, state:, line2: nil, line3: nil, phone_number: nil)
|
168
|
+
# @!method initialize(city:, line1:, name:, postal_code:, state:, country: nil, line2: nil, line3: nil, phone_number: nil)
|
169
|
+
# Some parameter documentations has been truncated, see
|
170
|
+
# {Increase::Models::PhysicalCardCreateParams::Shipment::Address} for more
|
171
|
+
# details.
|
172
|
+
#
|
160
173
|
# The address to where the card should be shipped.
|
161
174
|
#
|
162
175
|
# @param city [String] The city of the shipping address.
|
@@ -167,7 +180,9 @@ module Increase
|
|
167
180
|
#
|
168
181
|
# @param postal_code [String] The postal code of the shipping address.
|
169
182
|
#
|
170
|
-
# @param state [String] The
|
183
|
+
# @param state [String] The state of the shipping address.
|
184
|
+
#
|
185
|
+
# @param country [String] The two-character ISO 3166-1 code of the country where the card should be shippe
|
171
186
|
#
|
172
187
|
# @param line2 [String] The second line of the shipping address.
|
173
188
|
#
|
@@ -182,7 +197,7 @@ module Increase
|
|
182
197
|
module Method
|
183
198
|
extend Increase::Internal::Type::Enum
|
184
199
|
|
185
|
-
# USPS Post
|
200
|
+
# USPS Post.
|
186
201
|
USPS = :usps
|
187
202
|
|
188
203
|
# FedEx Priority Overnight, no signature.
|
@@ -191,6 +206,9 @@ module Increase
|
|
191
206
|
# FedEx 2-day.
|
192
207
|
FEDEX_2_DAY = :fedex_2_day
|
193
208
|
|
209
|
+
# DHL Worldwide Express, international shipping only.
|
210
|
+
DHL_WORLDWIDE_EXPRESS = :dhl_worldwide_express
|
211
|
+
|
194
212
|
# @!method self.values
|
195
213
|
# @return [Array<Symbol>]
|
196
214
|
end
|
data/lib/increase/version.rb
CHANGED
@@ -258,6 +258,10 @@ module Increase
|
|
258
258
|
sig { returns(String) }
|
259
259
|
attr_accessor :city
|
260
260
|
|
261
|
+
# The country of the shipping address.
|
262
|
+
sig { returns(String) }
|
263
|
+
attr_accessor :country
|
264
|
+
|
261
265
|
# The first line of the shipping address.
|
262
266
|
sig { returns(String) }
|
263
267
|
attr_accessor :line1
|
@@ -278,7 +282,7 @@ module Increase
|
|
278
282
|
sig { returns(String) }
|
279
283
|
attr_accessor :postal_code
|
280
284
|
|
281
|
-
# The
|
285
|
+
# The state of the shipping address.
|
282
286
|
sig { returns(String) }
|
283
287
|
attr_accessor :state
|
284
288
|
|
@@ -286,6 +290,7 @@ module Increase
|
|
286
290
|
sig do
|
287
291
|
params(
|
288
292
|
city: String,
|
293
|
+
country: String,
|
289
294
|
line1: String,
|
290
295
|
line2: T.nilable(String),
|
291
296
|
line3: T.nilable(String),
|
@@ -297,6 +302,8 @@ module Increase
|
|
297
302
|
def self.new(
|
298
303
|
# The city of the shipping address.
|
299
304
|
city:,
|
305
|
+
# The country of the shipping address.
|
306
|
+
country:,
|
300
307
|
# The first line of the shipping address.
|
301
308
|
line1:,
|
302
309
|
# The second line of the shipping address.
|
@@ -307,7 +314,7 @@ module Increase
|
|
307
314
|
name:,
|
308
315
|
# The postal code of the shipping address.
|
309
316
|
postal_code:,
|
310
|
-
# The
|
317
|
+
# The state of the shipping address.
|
311
318
|
state:
|
312
319
|
)
|
313
320
|
end
|
@@ -316,6 +323,7 @@ module Increase
|
|
316
323
|
override.returns(
|
317
324
|
{
|
318
325
|
city: String,
|
326
|
+
country: String,
|
319
327
|
line1: String,
|
320
328
|
line2: T.nilable(String),
|
321
329
|
line3: T.nilable(String),
|
@@ -339,7 +347,7 @@ module Increase
|
|
339
347
|
end
|
340
348
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
341
349
|
|
342
|
-
# USPS Post
|
350
|
+
# USPS Post.
|
343
351
|
USPS =
|
344
352
|
T.let(:usps, Increase::PhysicalCard::Shipment::Method::TaggedSymbol)
|
345
353
|
|
@@ -357,6 +365,13 @@ module Increase
|
|
357
365
|
Increase::PhysicalCard::Shipment::Method::TaggedSymbol
|
358
366
|
)
|
359
367
|
|
368
|
+
# DHL Worldwide Express, international shipping only.
|
369
|
+
DHL_WORLDWIDE_EXPRESS =
|
370
|
+
T.let(
|
371
|
+
:dhl_worldwide_express,
|
372
|
+
Increase::PhysicalCard::Shipment::Method::TaggedSymbol
|
373
|
+
)
|
374
|
+
|
360
375
|
sig do
|
361
376
|
override.returns(
|
362
377
|
T::Array[Increase::PhysicalCard::Shipment::Method::TaggedSymbol]
|
@@ -233,10 +233,20 @@ module Increase
|
|
233
233
|
sig { returns(String) }
|
234
234
|
attr_accessor :postal_code
|
235
235
|
|
236
|
-
# The
|
236
|
+
# The state of the shipping address.
|
237
237
|
sig { returns(String) }
|
238
238
|
attr_accessor :state
|
239
239
|
|
240
|
+
# The two-character ISO 3166-1 code of the country where the card should be
|
241
|
+
# shipped (e.g., `US`). Please reach out to
|
242
|
+
# [support@increase.com](mailto:support@increase.com) to ship cards
|
243
|
+
# internationally.
|
244
|
+
sig { returns(T.nilable(String)) }
|
245
|
+
attr_reader :country
|
246
|
+
|
247
|
+
sig { params(country: String).void }
|
248
|
+
attr_writer :country
|
249
|
+
|
240
250
|
# The second line of the shipping address.
|
241
251
|
sig { returns(T.nilable(String)) }
|
242
252
|
attr_reader :line2
|
@@ -266,6 +276,7 @@ module Increase
|
|
266
276
|
name: String,
|
267
277
|
postal_code: String,
|
268
278
|
state: String,
|
279
|
+
country: String,
|
269
280
|
line2: String,
|
270
281
|
line3: String,
|
271
282
|
phone_number: String
|
@@ -280,8 +291,13 @@ module Increase
|
|
280
291
|
name:,
|
281
292
|
# The postal code of the shipping address.
|
282
293
|
postal_code:,
|
283
|
-
# The
|
294
|
+
# The state of the shipping address.
|
284
295
|
state:,
|
296
|
+
# The two-character ISO 3166-1 code of the country where the card should be
|
297
|
+
# shipped (e.g., `US`). Please reach out to
|
298
|
+
# [support@increase.com](mailto:support@increase.com) to ship cards
|
299
|
+
# internationally.
|
300
|
+
country: nil,
|
285
301
|
# The second line of the shipping address.
|
286
302
|
line2: nil,
|
287
303
|
# The third line of the shipping address.
|
@@ -299,6 +315,7 @@ module Increase
|
|
299
315
|
name: String,
|
300
316
|
postal_code: String,
|
301
317
|
state: String,
|
318
|
+
country: String,
|
302
319
|
line2: String,
|
303
320
|
line3: String,
|
304
321
|
phone_number: String
|
@@ -322,7 +339,7 @@ module Increase
|
|
322
339
|
end
|
323
340
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
324
341
|
|
325
|
-
# USPS Post
|
342
|
+
# USPS Post.
|
326
343
|
USPS =
|
327
344
|
T.let(
|
328
345
|
:usps,
|
@@ -343,6 +360,13 @@ module Increase
|
|
343
360
|
Increase::PhysicalCardCreateParams::Shipment::Method::TaggedSymbol
|
344
361
|
)
|
345
362
|
|
363
|
+
# DHL Worldwide Express, international shipping only.
|
364
|
+
DHL_WORLDWIDE_EXPRESS =
|
365
|
+
T.let(
|
366
|
+
:dhl_worldwide_express,
|
367
|
+
Increase::PhysicalCardCreateParams::Shipment::Method::TaggedSymbol
|
368
|
+
)
|
369
|
+
|
346
370
|
sig do
|
347
371
|
override.returns(
|
348
372
|
T::Array[
|
@@ -107,6 +107,7 @@ module Increase
|
|
107
107
|
type address =
|
108
108
|
{
|
109
109
|
city: String,
|
110
|
+
country: String,
|
110
111
|
:line1 => String,
|
111
112
|
:line2 => String?,
|
112
113
|
:line3 => String?,
|
@@ -118,6 +119,8 @@ module Increase
|
|
118
119
|
class Address < Increase::Internal::Type::BaseModel
|
119
120
|
attr_accessor city: String
|
120
121
|
|
122
|
+
attr_accessor country: String
|
123
|
+
|
121
124
|
attr_accessor line1: String
|
122
125
|
|
123
126
|
attr_accessor line2: String?
|
@@ -132,6 +135,7 @@ module Increase
|
|
132
135
|
|
133
136
|
def initialize: (
|
134
137
|
city: String,
|
138
|
+
country: String,
|
135
139
|
line1: String,
|
136
140
|
line2: String?,
|
137
141
|
line3: String?,
|
@@ -142,6 +146,7 @@ module Increase
|
|
142
146
|
|
143
147
|
def to_hash: -> {
|
144
148
|
city: String,
|
149
|
+
country: String,
|
145
150
|
:line1 => String,
|
146
151
|
:line2 => String?,
|
147
152
|
:line3 => String?,
|
@@ -151,12 +156,16 @@ module Increase
|
|
151
156
|
}
|
152
157
|
end
|
153
158
|
|
154
|
-
type method_ =
|
159
|
+
type method_ =
|
160
|
+
:usps
|
161
|
+
| :fedex_priority_overnight
|
162
|
+
| :fedex_2_day
|
163
|
+
| :dhl_worldwide_express
|
155
164
|
|
156
165
|
module Method
|
157
166
|
extend Increase::Internal::Type::Enum
|
158
167
|
|
159
|
-
# USPS Post
|
168
|
+
# USPS Post.
|
160
169
|
USPS: :usps
|
161
170
|
|
162
171
|
# FedEx Priority Overnight, no signature.
|
@@ -165,6 +174,9 @@ module Increase
|
|
165
174
|
# FedEx 2-day.
|
166
175
|
FEDEX_2_DAY: :fedex_2_day
|
167
176
|
|
177
|
+
# DHL Worldwide Express, international shipping only.
|
178
|
+
DHL_WORLDWIDE_EXPRESS: :dhl_worldwide_express
|
179
|
+
|
168
180
|
def self?.values: -> ::Array[Increase::Models::PhysicalCard::Shipment::method_]
|
169
181
|
end
|
170
182
|
|
@@ -88,6 +88,7 @@ module Increase
|
|
88
88
|
name: String,
|
89
89
|
postal_code: String,
|
90
90
|
state: String,
|
91
|
+
country: String,
|
91
92
|
:line2 => String,
|
92
93
|
:line3 => String,
|
93
94
|
phone_number: String
|
@@ -104,6 +105,10 @@ module Increase
|
|
104
105
|
|
105
106
|
attr_accessor state: String
|
106
107
|
|
108
|
+
attr_reader country: String?
|
109
|
+
|
110
|
+
def country=: (String) -> String
|
111
|
+
|
107
112
|
attr_reader line2: String?
|
108
113
|
|
109
114
|
def line2=: (String) -> String
|
@@ -122,6 +127,7 @@ module Increase
|
|
122
127
|
name: String,
|
123
128
|
postal_code: String,
|
124
129
|
state: String,
|
130
|
+
?country: String,
|
125
131
|
?line2: String,
|
126
132
|
?line3: String,
|
127
133
|
?phone_number: String
|
@@ -133,18 +139,23 @@ module Increase
|
|
133
139
|
name: String,
|
134
140
|
postal_code: String,
|
135
141
|
state: String,
|
142
|
+
country: String,
|
136
143
|
:line2 => String,
|
137
144
|
:line3 => String,
|
138
145
|
phone_number: String
|
139
146
|
}
|
140
147
|
end
|
141
148
|
|
142
|
-
type method_ =
|
149
|
+
type method_ =
|
150
|
+
:usps
|
151
|
+
| :fedex_priority_overnight
|
152
|
+
| :fedex_2_day
|
153
|
+
| :dhl_worldwide_express
|
143
154
|
|
144
155
|
module Method
|
145
156
|
extend Increase::Internal::Type::Enum
|
146
157
|
|
147
|
-
# USPS Post
|
158
|
+
# USPS Post.
|
148
159
|
USPS: :usps
|
149
160
|
|
150
161
|
# FedEx Priority Overnight, no signature.
|
@@ -153,6 +164,9 @@ module Increase
|
|
153
164
|
# FedEx 2-day.
|
154
165
|
FEDEX_2_DAY: :fedex_2_day
|
155
166
|
|
167
|
+
# DHL Worldwide Express, international shipping only.
|
168
|
+
DHL_WORLDWIDE_EXPRESS: :dhl_worldwide_express
|
169
|
+
|
156
170
|
def self?.values: -> ::Array[Increase::Models::PhysicalCardCreateParams::Shipment::method_]
|
157
171
|
end
|
158
172
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: increase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Increase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|