increase 1.8.0 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8402affa722e800d63ec6765b9a04d5d9b1c701b519e1f45fa8fbfe2b3eb3528
4
- data.tar.gz: 4b4d23e1745c8c77e1af6b84e2cdccf943c42a6ec6f9b1f47eac14f97b4d24c2
3
+ metadata.gz: eaaaaa94d14a56dfafb869c529f987f43cedcacb05b0dfefb3ab559a14e35b0d
4
+ data.tar.gz: e95c5ba892021f53b70cc1526853e3ac87c73b6108e79669b5080c7be725f51b
5
5
  SHA512:
6
- metadata.gz: 5f8c9f0dc20b4a44d14662bda63ec7aca57b594a1ae8c19a4387647a7fd2941ec0a2a78f4d8014928f6d8f8d42ca178652c5beb4ff3b063bc897f15cafca6f99
7
- data.tar.gz: 276505c700b9f31e9e01ea282ba61b9e5bf1f8217dd0ba126c00649feb745bcac001559f1478ae0607ca6f3c23ac008bd60c40e2694bfda7758d040133170e5b
6
+ metadata.gz: '0509a5a3c271d2c424a150e3e60af0d47b45b885377058c8b2aef70ea59dd0080874b4b4450eec079ce5c329751970e14ebbbdd5762ab8a1a5ffe1dba6b8cbd4'
7
+ data.tar.gz: e08e6d08648bbe2c473a140c40b5fe59a6a1ef5a935f129db54192017917bf0f67981e3b7f821fe0e69ca60c34740ab3c3f889fc3d526a23dd53786d255981e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.0 (2025-07-04)
4
+
5
+ Full Changelog: [v1.8.0...v1.9.0](https://github.com/Increase/increase-ruby/compare/v1.8.0...v1.9.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([39cfff5](https://github.com/Increase/increase-ruby/commit/39cfff5f5bbb36f2ac638c05b3259c3a76a9fe08))
10
+
3
11
  ## 1.8.0 (2025-07-04)
4
12
 
5
13
  Full Changelog: [v1.7.0...v1.8.0](https://github.com/Increase/increase-ruby/compare/v1.7.0...v1.8.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.8.0"
18
+ gem "increase", "~> 1.9.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -126,6 +126,16 @@ module Increase
126
126
  # @return [Symbol, Increase::Models::PhysicalCard::Shipment::Method]
127
127
  required :method_, enum: -> { Increase::PhysicalCard::Shipment::Method }, api_name: :method
128
128
 
129
+ # @!attribute schedule
130
+ # When this physical card should be produced by the card printer. The default
131
+ # timeline is the day after the card printer receives the order, except for
132
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
133
+ # production methods, please reach out to
134
+ # [support@increase.com](mailto:support@increase.com).
135
+ #
136
+ # @return [Symbol, Increase::Models::PhysicalCard::Shipment::Schedule]
137
+ required :schedule, enum: -> { Increase::PhysicalCard::Shipment::Schedule }
138
+
129
139
  # @!attribute status
130
140
  # The status of this shipment.
131
141
  #
@@ -138,13 +148,18 @@ module Increase
138
148
  # @return [Increase::Models::PhysicalCard::Shipment::Tracking, nil]
139
149
  required :tracking, -> { Increase::PhysicalCard::Shipment::Tracking }, nil?: true
140
150
 
141
- # @!method initialize(address:, method_:, status:, tracking:)
151
+ # @!method initialize(address:, method_:, schedule:, status:, tracking:)
152
+ # Some parameter documentations has been truncated, see
153
+ # {Increase::Models::PhysicalCard::Shipment} for more details.
154
+ #
142
155
  # The details used to ship this physical card.
143
156
  #
144
157
  # @param address [Increase::Models::PhysicalCard::Shipment::Address] The location to where the card's packing label is addressed.
145
158
  #
146
159
  # @param method_ [Symbol, Increase::Models::PhysicalCard::Shipment::Method] The shipping method.
147
160
  #
161
+ # @param schedule [Symbol, Increase::Models::PhysicalCard::Shipment::Schedule] When this physical card should be produced by the card printer. The default time
162
+ #
148
163
  # @param status [Symbol, Increase::Models::PhysicalCard::Shipment::Status] The status of this shipment.
149
164
  #
150
165
  # @param tracking [Increase::Models::PhysicalCard::Shipment::Tracking, nil] Tracking details for the shipment.
@@ -230,6 +245,26 @@ module Increase
230
245
  # @return [Array<Symbol>]
231
246
  end
232
247
 
248
+ # When this physical card should be produced by the card printer. The default
249
+ # timeline is the day after the card printer receives the order, except for
250
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
251
+ # production methods, please reach out to
252
+ # [support@increase.com](mailto:support@increase.com).
253
+ #
254
+ # @see Increase::Models::PhysicalCard::Shipment#schedule
255
+ module Schedule
256
+ extend Increase::Internal::Type::Enum
257
+
258
+ # The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
259
+ NEXT_DAY = :next_day
260
+
261
+ # The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
262
+ SAME_DAY = :same_day
263
+
264
+ # @!method self.values
265
+ # @return [Array<Symbol>]
266
+ end
267
+
233
268
  # The status of this shipment.
234
269
  #
235
270
  # @see Increase::Models::PhysicalCard::Shipment#status
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.8.0"
4
+ VERSION = "1.9.0"
5
5
  end
@@ -175,6 +175,16 @@ module Increase
175
175
  sig { returns(Increase::PhysicalCard::Shipment::Method::TaggedSymbol) }
176
176
  attr_accessor :method_
177
177
 
178
+ # When this physical card should be produced by the card printer. The default
179
+ # timeline is the day after the card printer receives the order, except for
180
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
181
+ # production methods, please reach out to
182
+ # [support@increase.com](mailto:support@increase.com).
183
+ sig do
184
+ returns(Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol)
185
+ end
186
+ attr_accessor :schedule
187
+
178
188
  # The status of this shipment.
179
189
  sig { returns(Increase::PhysicalCard::Shipment::Status::TaggedSymbol) }
180
190
  attr_accessor :status
@@ -196,6 +206,7 @@ module Increase
196
206
  params(
197
207
  address: Increase::PhysicalCard::Shipment::Address::OrHash,
198
208
  method_: Increase::PhysicalCard::Shipment::Method::OrSymbol,
209
+ schedule: Increase::PhysicalCard::Shipment::Schedule::OrSymbol,
199
210
  status: Increase::PhysicalCard::Shipment::Status::OrSymbol,
200
211
  tracking:
201
212
  T.nilable(Increase::PhysicalCard::Shipment::Tracking::OrHash)
@@ -206,6 +217,12 @@ module Increase
206
217
  address:,
207
218
  # The shipping method.
208
219
  method_:,
220
+ # When this physical card should be produced by the card printer. The default
221
+ # timeline is the day after the card printer receives the order, except for
222
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
223
+ # production methods, please reach out to
224
+ # [support@increase.com](mailto:support@increase.com).
225
+ schedule:,
209
226
  # The status of this shipment.
210
227
  status:,
211
228
  # Tracking details for the shipment.
@@ -218,6 +235,8 @@ module Increase
218
235
  {
219
236
  address: Increase::PhysicalCard::Shipment::Address,
220
237
  method_: Increase::PhysicalCard::Shipment::Method::TaggedSymbol,
238
+ schedule:
239
+ Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol,
221
240
  status: Increase::PhysicalCard::Shipment::Status::TaggedSymbol,
222
241
  tracking: T.nilable(Increase::PhysicalCard::Shipment::Tracking)
223
242
  }
@@ -347,6 +366,43 @@ module Increase
347
366
  end
348
367
  end
349
368
 
369
+ # When this physical card should be produced by the card printer. The default
370
+ # timeline is the day after the card printer receives the order, except for
371
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
372
+ # production methods, please reach out to
373
+ # [support@increase.com](mailto:support@increase.com).
374
+ module Schedule
375
+ extend Increase::Internal::Type::Enum
376
+
377
+ TaggedSymbol =
378
+ T.type_alias do
379
+ T.all(Symbol, Increase::PhysicalCard::Shipment::Schedule)
380
+ end
381
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
382
+
383
+ # The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
384
+ NEXT_DAY =
385
+ T.let(
386
+ :next_day,
387
+ Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol
388
+ )
389
+
390
+ # The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
391
+ SAME_DAY =
392
+ T.let(
393
+ :same_day,
394
+ Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol
395
+ )
396
+
397
+ sig do
398
+ override.returns(
399
+ T::Array[Increase::PhysicalCard::Shipment::Schedule::TaggedSymbol]
400
+ )
401
+ end
402
+ def self.values
403
+ end
404
+ end
405
+
350
406
  # The status of this shipment.
351
407
  module Status
352
408
  extend Increase::Internal::Type::Enum
@@ -72,6 +72,7 @@ module Increase
72
72
  {
73
73
  address: Increase::PhysicalCard::Shipment::Address,
74
74
  method_: Increase::Models::PhysicalCard::Shipment::method_,
75
+ schedule: Increase::Models::PhysicalCard::Shipment::schedule,
75
76
  status: Increase::Models::PhysicalCard::Shipment::status,
76
77
  tracking: Increase::PhysicalCard::Shipment::Tracking?
77
78
  }
@@ -81,6 +82,8 @@ module Increase
81
82
 
82
83
  attr_accessor method_: Increase::Models::PhysicalCard::Shipment::method_
83
84
 
85
+ attr_accessor schedule: Increase::Models::PhysicalCard::Shipment::schedule
86
+
84
87
  attr_accessor status: Increase::Models::PhysicalCard::Shipment::status
85
88
 
86
89
  attr_accessor tracking: Increase::PhysicalCard::Shipment::Tracking?
@@ -88,6 +91,7 @@ module Increase
88
91
  def initialize: (
89
92
  address: Increase::PhysicalCard::Shipment::Address,
90
93
  method_: Increase::Models::PhysicalCard::Shipment::method_,
94
+ schedule: Increase::Models::PhysicalCard::Shipment::schedule,
91
95
  status: Increase::Models::PhysicalCard::Shipment::status,
92
96
  tracking: Increase::PhysicalCard::Shipment::Tracking?
93
97
  ) -> void
@@ -95,6 +99,7 @@ module Increase
95
99
  def to_hash: -> {
96
100
  address: Increase::PhysicalCard::Shipment::Address,
97
101
  method_: Increase::Models::PhysicalCard::Shipment::method_,
102
+ schedule: Increase::Models::PhysicalCard::Shipment::schedule,
98
103
  status: Increase::Models::PhysicalCard::Shipment::status,
99
104
  tracking: Increase::PhysicalCard::Shipment::Tracking?
100
105
  }
@@ -163,6 +168,20 @@ module Increase
163
168
  def self?.values: -> ::Array[Increase::Models::PhysicalCard::Shipment::method_]
164
169
  end
165
170
 
171
+ type schedule = :next_day | :same_day
172
+
173
+ module Schedule
174
+ extend Increase::Internal::Type::Enum
175
+
176
+ # The physical card will be shipped one business day after the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Wednesday.
177
+ NEXT_DAY: :next_day
178
+
179
+ # The physical card will be shipped on the same business day that the order is received by the card printer. A card that is submitted to Increase on a Monday evening (Pacific Time) will ship out on Tuesday.
180
+ SAME_DAY: :same_day
181
+
182
+ def self?.values: -> ::Array[Increase::Models::PhysicalCard::Shipment::schedule]
183
+ end
184
+
166
185
  type status =
167
186
  :pending
168
187
  | :canceled
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.8.0
4
+ version: 1.9.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-04 00:00:00.000000000 Z
11
+ date: 2025-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool