increase 1.7.0 → 1.8.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: 9456cd7fc46c10e404d3ab987dd9d6252142d33c3ebaaf93a64f58a125819a9b
4
- data.tar.gz: 4a146b83996e24b882704b65bd530af807be56288b144e88f75d70b7f9159bd7
3
+ metadata.gz: 8402affa722e800d63ec6765b9a04d5d9b1c701b519e1f45fa8fbfe2b3eb3528
4
+ data.tar.gz: 4b4d23e1745c8c77e1af6b84e2cdccf943c42a6ec6f9b1f47eac14f97b4d24c2
5
5
  SHA512:
6
- metadata.gz: 1d035f7c0c8576cd09116f80346b13a4a647bc1d6ddb46e6422dae3ad278b29932ec9e3d5a4e157a2530d407da0a60889c9013ff8c90d6c479f964cf73e2e2b1
7
- data.tar.gz: c11f6284502a6a7903e2c239292d6466b55febd0ff6a5b326329e763c1dcb21c71222ee8b15ec8f1eff7d58bef28c32259f3bf9f51173033aa6dfa840508cc8d
6
+ metadata.gz: 5f8c9f0dc20b4a44d14662bda63ec7aca57b594a1ae8c19a4387647a7fd2941ec0a2a78f4d8014928f6d8f8d42ca178652c5beb4ff3b063bc897f15cafca6f99
7
+ data.tar.gz: 276505c700b9f31e9e01ea282ba61b9e5bf1f8217dd0ba126c00649feb745bcac001559f1478ae0607ca6f3c23ac008bd60c40e2694bfda7758d040133170e5b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.0 (2025-07-04)
4
+
5
+ Full Changelog: [v1.7.0...v1.8.0](https://github.com/Increase/increase-ruby/compare/v1.7.0...v1.8.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([ac9c398](https://github.com/Increase/increase-ruby/commit/ac9c3980decb85870a47773a347507176d40981e))
10
+
3
11
  ## 1.7.0 (2025-07-02)
4
12
 
5
13
  Full Changelog: [v1.6.0...v1.7.0](https://github.com/Increase/increase-ruby/compare/v1.6.0...v1.7.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.7.0"
18
+ gem "increase", "~> 1.8.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -84,12 +84,27 @@ module Increase
84
84
  },
85
85
  api_name: :method
86
86
 
87
- # @!method initialize(address:, method_:)
87
+ # @!attribute schedule
88
+ # When this physical card should be produced by the card printer. The default
89
+ # timeline is the day after the card printer receives the order, except for
90
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
91
+ # production methods, please reach out to
92
+ # [support@increase.com](mailto:support@increase.com).
93
+ #
94
+ # @return [Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Schedule, nil]
95
+ optional :schedule, enum: -> { Increase::PhysicalCardCreateParams::Shipment::Schedule }
96
+
97
+ # @!method initialize(address:, method_:, schedule: nil)
98
+ # Some parameter documentations has been truncated, see
99
+ # {Increase::Models::PhysicalCardCreateParams::Shipment} for more details.
100
+ #
88
101
  # The details used to ship this physical card.
89
102
  #
90
103
  # @param address [Increase::Models::PhysicalCardCreateParams::Shipment::Address] The address to where the card should be shipped.
91
104
  #
92
105
  # @param method_ [Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Method] The shipping method to use.
106
+ #
107
+ # @param schedule [Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Schedule] When this physical card should be produced by the card printer. The default time
93
108
 
94
109
  # @see Increase::Models::PhysicalCardCreateParams::Shipment#address
95
110
  class Address < Increase::Internal::Type::BaseModel
@@ -179,6 +194,26 @@ module Increase
179
194
  # @!method self.values
180
195
  # @return [Array<Symbol>]
181
196
  end
197
+
198
+ # When this physical card should be produced by the card printer. The default
199
+ # timeline is the day after the card printer receives the order, except for
200
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
201
+ # production methods, please reach out to
202
+ # [support@increase.com](mailto:support@increase.com).
203
+ #
204
+ # @see Increase::Models::PhysicalCardCreateParams::Shipment#schedule
205
+ module Schedule
206
+ extend Increase::Internal::Type::Enum
207
+
208
+ # 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.
209
+ NEXT_DAY = :next_day
210
+
211
+ # 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.
212
+ SAME_DAY = :same_day
213
+
214
+ # @!method self.values
215
+ # @return [Array<Symbol>]
216
+ end
182
217
  end
183
218
  end
184
219
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.7.0"
4
+ VERSION = "1.8.0"
5
5
  end
@@ -147,20 +147,50 @@ module Increase
147
147
  end
148
148
  attr_accessor :method_
149
149
 
150
+ # When this physical card should be produced by the card printer. The default
151
+ # timeline is the day after the card printer receives the order, except for
152
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
153
+ # production methods, please reach out to
154
+ # [support@increase.com](mailto:support@increase.com).
155
+ sig do
156
+ returns(
157
+ T.nilable(
158
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
159
+ )
160
+ )
161
+ end
162
+ attr_reader :schedule
163
+
164
+ sig do
165
+ params(
166
+ schedule:
167
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
168
+ ).void
169
+ end
170
+ attr_writer :schedule
171
+
150
172
  # The details used to ship this physical card.
151
173
  sig do
152
174
  params(
153
175
  address:
154
176
  Increase::PhysicalCardCreateParams::Shipment::Address::OrHash,
155
177
  method_:
156
- Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol
178
+ Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol,
179
+ schedule:
180
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
157
181
  ).returns(T.attached_class)
158
182
  end
159
183
  def self.new(
160
184
  # The address to where the card should be shipped.
161
185
  address:,
162
186
  # The shipping method to use.
163
- method_:
187
+ method_:,
188
+ # When this physical card should be produced by the card printer. The default
189
+ # timeline is the day after the card printer receives the order, except for
190
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
191
+ # production methods, please reach out to
192
+ # [support@increase.com](mailto:support@increase.com).
193
+ schedule: nil
164
194
  )
165
195
  end
166
196
 
@@ -169,7 +199,9 @@ module Increase
169
199
  {
170
200
  address: Increase::PhysicalCardCreateParams::Shipment::Address,
171
201
  method_:
172
- Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol
202
+ Increase::PhysicalCardCreateParams::Shipment::Method::OrSymbol,
203
+ schedule:
204
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::OrSymbol
173
205
  }
174
206
  )
175
207
  end
@@ -321,6 +353,48 @@ module Increase
321
353
  def self.values
322
354
  end
323
355
  end
356
+
357
+ # When this physical card should be produced by the card printer. The default
358
+ # timeline is the day after the card printer receives the order, except for
359
+ # `FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster
360
+ # production methods, please reach out to
361
+ # [support@increase.com](mailto:support@increase.com).
362
+ module Schedule
363
+ extend Increase::Internal::Type::Enum
364
+
365
+ TaggedSymbol =
366
+ T.type_alias do
367
+ T.all(
368
+ Symbol,
369
+ Increase::PhysicalCardCreateParams::Shipment::Schedule
370
+ )
371
+ end
372
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
373
+
374
+ # 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.
375
+ NEXT_DAY =
376
+ T.let(
377
+ :next_day,
378
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::TaggedSymbol
379
+ )
380
+
381
+ # 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.
382
+ SAME_DAY =
383
+ T.let(
384
+ :same_day,
385
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::TaggedSymbol
386
+ )
387
+
388
+ sig do
389
+ override.returns(
390
+ T::Array[
391
+ Increase::PhysicalCardCreateParams::Shipment::Schedule::TaggedSymbol
392
+ ]
393
+ )
394
+ end
395
+ def self.values
396
+ end
397
+ end
324
398
  end
325
399
  end
326
400
  end
@@ -54,7 +54,8 @@ module Increase
54
54
  type shipment =
55
55
  {
56
56
  address: Increase::PhysicalCardCreateParams::Shipment::Address,
57
- method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
57
+ method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
58
+ schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
58
59
  }
59
60
 
60
61
  class Shipment < Increase::Internal::Type::BaseModel
@@ -62,14 +63,22 @@ module Increase
62
63
 
63
64
  attr_accessor method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
64
65
 
66
+ attr_reader schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule?
67
+
68
+ def schedule=: (
69
+ Increase::Models::PhysicalCardCreateParams::Shipment::schedule
70
+ ) -> Increase::Models::PhysicalCardCreateParams::Shipment::schedule
71
+
65
72
  def initialize: (
66
73
  address: Increase::PhysicalCardCreateParams::Shipment::Address,
67
- method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
74
+ method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
75
+ ?schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
68
76
  ) -> void
69
77
 
70
78
  def to_hash: -> {
71
79
  address: Increase::PhysicalCardCreateParams::Shipment::Address,
72
- method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_
80
+ method_: Increase::Models::PhysicalCardCreateParams::Shipment::method_,
81
+ schedule: Increase::Models::PhysicalCardCreateParams::Shipment::schedule
73
82
  }
74
83
 
75
84
  type address =
@@ -146,6 +155,20 @@ module Increase
146
155
 
147
156
  def self?.values: -> ::Array[Increase::Models::PhysicalCardCreateParams::Shipment::method_]
148
157
  end
158
+
159
+ type schedule = :next_day | :same_day
160
+
161
+ module Schedule
162
+ extend Increase::Internal::Type::Enum
163
+
164
+ # 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.
165
+ NEXT_DAY: :next_day
166
+
167
+ # 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.
168
+ SAME_DAY: :same_day
169
+
170
+ def self?.values: -> ::Array[Increase::Models::PhysicalCardCreateParams::Shipment::schedule]
171
+ end
149
172
  end
150
173
  end
151
174
  end
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.7.0
4
+ version: 1.8.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-02 00:00:00.000000000 Z
11
+ date: 2025-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool