increase 1.91.1 → 1.93.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: b7fe07f74a2dc4887da2eb1875a09e0d6901ce2fe04a35020d950330220479f3
4
- data.tar.gz: 02602fbd732c6064030a5d08cc46d6eb7e5c50ba29bd7457f3e66856df91bb13
3
+ metadata.gz: 4111d2c53c63f175d177dd143fdd342b730f88e0eae0da202b4906637d9293cd
4
+ data.tar.gz: 76a1676288ef21cfb6d2f8098d97bb38fd2feea2ee2c0c1b71fdc166edecf873
5
5
  SHA512:
6
- metadata.gz: 3b2da17e02ae6c63e017ea87bdbfb22a7a18db6da9b8b220114753408c8751bcae954ce50f52b990d06267522b0015cbd8651e323e35b48602025de4685642a3
7
- data.tar.gz: bbb7489d2f6be0a45539d98b742a925810363203fa0e7ddf6407d8341b57d74e338f7ebb1aa8a39b5a70096db01305fc9ec020ec16ff48d4648edd86611621ec
6
+ metadata.gz: afc236877e86a91e746721e6eb283535f446d5783e83c9e96747d7007ba6850e9e18fe478ae5fb98968c49e20878ccfecb20f48aea2c35490fa655a19515313e
7
+ data.tar.gz: 004b9963f2e1399959fe1862fcf517f7019b052c77ee51018c5a808ec30df466ac2b440ea324ac0dd72b01c26c6da4a558e4ce765b1e3328eebe3b4bd4a2a63b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.93.0 (2025-09-26)
4
+
5
+ Full Changelog: [v1.92.0...v1.93.0](https://github.com/Increase/increase-ruby/compare/v1.92.0...v1.93.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a760b8c](https://github.com/Increase/increase-ruby/commit/a760b8ca14265f2cd6c924f674b39257e79ce065))
10
+
11
+
12
+ ### Chores
13
+
14
+ * allow fast-format to use bsd sed as well ([14b02a4](https://github.com/Increase/increase-ruby/commit/14b02a4f3007334c0cdb7728117529a8ef7f6002))
15
+
16
+ ## 1.92.0 (2025-09-26)
17
+
18
+ Full Changelog: [v1.91.1...v1.92.0](https://github.com/Increase/increase-ruby/compare/v1.91.1...v1.92.0)
19
+
20
+ ### Features
21
+
22
+ * **api:** api update ([8876735](https://github.com/Increase/increase-ruby/commit/8876735e69be9385ae6a534f48791511dbc9ae5b))
23
+
3
24
  ## 1.91.1 (2025-09-26)
4
25
 
5
26
  Full Changelog: [v1.91.0...v1.91.1](https://github.com/Increase/increase-ruby/compare/v1.91.0...v1.91.1)
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.91.1"
18
+ gem "increase", "~> 1.93.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -313,10 +313,10 @@ module Increase
313
313
  # @see Increase::Models::PhysicalCard::Shipment#tracking
314
314
  class Tracking < Increase::Internal::Type::BaseModel
315
315
  # @!attribute number
316
- # The tracking number.
316
+ # The tracking number. Not available for USPS shipments.
317
317
  #
318
- # @return [String]
319
- required :number, String
318
+ # @return [String, nil]
319
+ required :number, String, nil?: true
320
320
 
321
321
  # @!attribute return_number
322
322
  # For returned shipments, the tracking number of the return shipment.
@@ -351,7 +351,7 @@ module Increase
351
351
  #
352
352
  # Tracking details for the shipment.
353
353
  #
354
- # @param number [String] The tracking number.
354
+ # @param number [String, nil] The tracking number. Not available for USPS shipments.
355
355
  #
356
356
  # @param return_number [String, nil] For returned shipments, the tracking number of the return shipment.
357
357
  #
@@ -8,17 +8,27 @@ module Increase
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
+ # @!attribute pending_transaction_id
12
+ # The identifier of the Pending Transaction for the refund authorization. If this
13
+ # is provided, `transaction` must not be provided as a refund with a refund
14
+ # authorized can not be linked to a regular transaction.
15
+ #
16
+ # @return [String, nil]
17
+ optional :pending_transaction_id, String
18
+
11
19
  # @!attribute transaction_id
12
20
  # The identifier for the Transaction to refund. The Transaction's source must have
13
21
  # a category of card_settlement.
14
22
  #
15
- # @return [String]
16
- required :transaction_id, String
23
+ # @return [String, nil]
24
+ optional :transaction_id, String
17
25
 
18
- # @!method initialize(transaction_id:, request_options: {})
26
+ # @!method initialize(pending_transaction_id: nil, transaction_id: nil, request_options: {})
19
27
  # Some parameter documentations has been truncated, see
20
28
  # {Increase::Models::Simulations::CardRefundCreateParams} for more details.
21
29
  #
30
+ # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
31
+ #
22
32
  # @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
23
33
  #
24
34
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
@@ -10,7 +10,9 @@ module Increase
10
10
  # Simulates refunding a card transaction. The full value of the original sandbox
11
11
  # transaction is refunded.
12
12
  #
13
- # @overload create(transaction_id:, request_options: {})
13
+ # @overload create(pending_transaction_id: nil, transaction_id: nil, request_options: {})
14
+ #
15
+ # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
14
16
  #
15
17
  # @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
16
18
  #
@@ -19,7 +21,7 @@ module Increase
19
21
  # @return [Increase::Models::Transaction]
20
22
  #
21
23
  # @see Increase::Models::Simulations::CardRefundCreateParams
22
- def create(params)
24
+ def create(params = {})
23
25
  parsed, options = Increase::Simulations::CardRefundCreateParams.dump_request(params)
24
26
  @client.request(
25
27
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.91.1"
4
+ VERSION = "1.93.0"
5
5
  end
@@ -502,8 +502,8 @@ module Increase
502
502
  )
503
503
  end
504
504
 
505
- # The tracking number.
506
- sig { returns(String) }
505
+ # The tracking number. Not available for USPS shipments.
506
+ sig { returns(T.nilable(String)) }
507
507
  attr_accessor :number
508
508
 
509
509
  # For returned shipments, the tracking number of the return shipment.
@@ -531,7 +531,7 @@ module Increase
531
531
  # Tracking details for the shipment.
532
532
  sig do
533
533
  params(
534
- number: String,
534
+ number: T.nilable(String),
535
535
  return_number: T.nilable(String),
536
536
  return_reason: T.nilable(String),
537
537
  shipped_at: Time,
@@ -542,7 +542,7 @@ module Increase
542
542
  ).returns(T.attached_class)
543
543
  end
544
544
  def self.new(
545
- # The tracking number.
545
+ # The tracking number. Not available for USPS shipments.
546
546
  number:,
547
547
  # For returned shipments, the tracking number of the return shipment.
548
548
  return_number:,
@@ -560,7 +560,7 @@ module Increase
560
560
  sig do
561
561
  override.returns(
562
562
  {
563
- number: String,
563
+ number: T.nilable(String),
564
564
  return_number: T.nilable(String),
565
565
  return_reason: T.nilable(String),
566
566
  shipped_at: Time,
@@ -15,21 +15,38 @@ module Increase
15
15
  )
16
16
  end
17
17
 
18
+ # The identifier of the Pending Transaction for the refund authorization. If this
19
+ # is provided, `transaction` must not be provided as a refund with a refund
20
+ # authorized can not be linked to a regular transaction.
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :pending_transaction_id
23
+
24
+ sig { params(pending_transaction_id: String).void }
25
+ attr_writer :pending_transaction_id
26
+
18
27
  # The identifier for the Transaction to refund. The Transaction's source must have
19
28
  # a category of card_settlement.
20
- sig { returns(String) }
21
- attr_accessor :transaction_id
29
+ sig { returns(T.nilable(String)) }
30
+ attr_reader :transaction_id
31
+
32
+ sig { params(transaction_id: String).void }
33
+ attr_writer :transaction_id
22
34
 
23
35
  sig do
24
36
  params(
37
+ pending_transaction_id: String,
25
38
  transaction_id: String,
26
39
  request_options: Increase::RequestOptions::OrHash
27
40
  ).returns(T.attached_class)
28
41
  end
29
42
  def self.new(
43
+ # The identifier of the Pending Transaction for the refund authorization. If this
44
+ # is provided, `transaction` must not be provided as a refund with a refund
45
+ # authorized can not be linked to a regular transaction.
46
+ pending_transaction_id: nil,
30
47
  # The identifier for the Transaction to refund. The Transaction's source must have
31
48
  # a category of card_settlement.
32
- transaction_id:,
49
+ transaction_id: nil,
33
50
  request_options: {}
34
51
  )
35
52
  end
@@ -37,6 +54,7 @@ module Increase
37
54
  sig do
38
55
  override.returns(
39
56
  {
57
+ pending_transaction_id: String,
40
58
  transaction_id: String,
41
59
  request_options: Increase::RequestOptions
42
60
  }
@@ -8,14 +8,19 @@ module Increase
8
8
  # transaction is refunded.
9
9
  sig do
10
10
  params(
11
+ pending_transaction_id: String,
11
12
  transaction_id: String,
12
13
  request_options: Increase::RequestOptions::OrHash
13
14
  ).returns(Increase::Transaction)
14
15
  end
15
16
  def create(
17
+ # The identifier of the Pending Transaction for the refund authorization. If this
18
+ # is provided, `transaction` must not be provided as a refund with a refund
19
+ # authorized can not be linked to a regular transaction.
20
+ pending_transaction_id: nil,
16
21
  # The identifier for the Transaction to refund. The Transaction's source must have
17
22
  # a category of card_settlement.
18
- transaction_id:,
23
+ transaction_id: nil,
19
24
  request_options: {}
20
25
  )
21
26
  end
@@ -236,7 +236,7 @@ module Increase
236
236
 
237
237
  type tracking =
238
238
  {
239
- number: String,
239
+ number: String?,
240
240
  return_number: String?,
241
241
  return_reason: String?,
242
242
  shipped_at: Time,
@@ -244,7 +244,7 @@ module Increase
244
244
  }
245
245
 
246
246
  class Tracking < Increase::Internal::Type::BaseModel
247
- attr_accessor number: String
247
+ attr_accessor number: String?
248
248
 
249
249
  attr_accessor return_number: String?
250
250
 
@@ -255,7 +255,7 @@ module Increase
255
255
  attr_accessor updates: ::Array[Increase::PhysicalCard::Shipment::Tracking::Update]
256
256
 
257
257
  def initialize: (
258
- number: String,
258
+ number: String?,
259
259
  return_number: String?,
260
260
  return_reason: String?,
261
261
  shipped_at: Time,
@@ -263,7 +263,7 @@ module Increase
263
263
  ) -> void
264
264
 
265
265
  def to_hash: -> {
266
- number: String,
266
+ number: String?,
267
267
  return_number: String?,
268
268
  return_reason: String?,
269
269
  shipped_at: Time,
@@ -2,21 +2,29 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type card_refund_create_params =
5
- { transaction_id: String }
5
+ { pending_transaction_id: String, transaction_id: String }
6
6
  & Increase::Internal::Type::request_parameters
7
7
 
8
8
  class CardRefundCreateParams < Increase::Internal::Type::BaseModel
9
9
  extend Increase::Internal::Type::RequestParameters::Converter
10
10
  include Increase::Internal::Type::RequestParameters
11
11
 
12
- attr_accessor transaction_id: String
12
+ attr_reader pending_transaction_id: String?
13
+
14
+ def pending_transaction_id=: (String) -> String
15
+
16
+ attr_reader transaction_id: String?
17
+
18
+ def transaction_id=: (String) -> String
13
19
 
14
20
  def initialize: (
15
- transaction_id: String,
21
+ ?pending_transaction_id: String,
22
+ ?transaction_id: String,
16
23
  ?request_options: Increase::request_opts
17
24
  ) -> void
18
25
 
19
26
  def to_hash: -> {
27
+ pending_transaction_id: String,
20
28
  transaction_id: String,
21
29
  request_options: Increase::RequestOptions
22
30
  }
@@ -3,7 +3,8 @@ module Increase
3
3
  class Simulations
4
4
  class CardRefunds
5
5
  def create: (
6
- transaction_id: String,
6
+ ?pending_transaction_id: String,
7
+ ?transaction_id: String,
7
8
  ?request_options: Increase::request_opts
8
9
  ) -> Increase::Transaction
9
10
 
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.91.1
4
+ version: 1.93.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase