inttegro 12.0.0 → 12.1.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: b466a56cf755231ff0c078e8006d87cc2a8fb7529c8d6158e107bff0ae2f3ede
4
- data.tar.gz: a2f3c15b344757d6b6017abd76b287ac623e45fb392ad615f6ee92f870527b18
3
+ metadata.gz: 8be77b27c2999e498bb203aa67de63c2138160c6f7bafac8ba7b29c03779e2a2
4
+ data.tar.gz: 2db7376f6286965d453fb2fd427c4fb90f7ec83e1b0fe4dec7dc6120943d6a6d
5
5
  SHA512:
6
- metadata.gz: 9a95ee861ed16a1ba74190aaa8082c716ee9a5d361f2a5d6f04ac1d91125f1c6be31d9eb4338cc4e5ebe0d8c72ea5a3e23c13388f527809cc52bd54a8530870f
7
- data.tar.gz: d4a6222b41c9aa290181cf7cd1d52a14dc43a816c0ddb3ca4e1edb3536e740edbffce8bfb8ea89c3c0a494e391c63eaa0673253d4104f1c8220b4b5992a5b773
6
+ metadata.gz: e2643e77ea9858345ae7226912a521edd9cbd5a693d2c1510412576dc62aa139663940402eabf7ccc2ec28c9ef1c342790cd914147acf9a8f68f9fdd2378ce31
7
+ data.tar.gz: 51c45e7b8e7028c0129f08d5c7f5d296a95d71b791f3a31a941684bc6d633b65aff9653dcd6d60b73601bf8ff76f354fcc4e7c181b7bc08c4ad676191c70af82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [12.1.0] - 2026-11-07
4
+
5
+ - Added typed response-projection metadata with resource-level `pick` and
6
+ `omit` selections.
7
+ - Restricted idempotency keys to request metadata and the `Idempotency-Key`
8
+ header.
9
+
3
10
  ## [12.0.0] - 2026-11-06
4
11
 
5
12
  - **Breaking:** renamed the children-policy and operating-policy
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  module Broadcast
@@ -20,8 +21,15 @@ module Inttegro
20
21
  #
21
22
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
23
  # @return [String, nil]
24
+ #
25
+ # @!attribute [r] response
26
+ # Caller-controlled preferences for computing and representing the successful response.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
29
+ # @return [Inttegro::Request::Response, nil]
23
30
  class RequestRequestMeta < T::Struct
24
31
  const :idempotency_key, T.nilable(String), default: nil
32
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
33
  end
26
34
  end
27
35
  end
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  class Chime
@@ -20,8 +21,15 @@ module Inttegro
20
21
  #
21
22
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
23
  # @return [String, nil]
24
+ #
25
+ # @!attribute [r] response
26
+ # Caller-controlled preferences for computing and representing the successful response.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
29
+ # @return [Inttegro::Request::Response, nil]
23
30
  class SendRequestRequestMeta < T::Struct
24
31
  const :idempotency_key, T.nilable(String), default: nil
32
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
33
  end
26
34
  end
27
35
  end
@@ -105,6 +105,8 @@ require_relative "../broadcast/cancel_detail"
105
105
  require_relative "../broadcast/cancel_response"
106
106
  require_relative "../broadcast/creation_detail"
107
107
  require_relative "../broadcast/detail"
108
+ require_relative "../request/property_selection"
109
+ require_relative "../request/response"
108
110
  require_relative "../broadcast/request_request_meta"
109
111
  require_relative "../message_template/variables"
110
112
  require_relative "../message_template/reference"
@@ -498,8 +498,6 @@ module Inttegro
498
498
  return body unless body.is_a?(Hash)
499
499
 
500
500
  payload = body.dup
501
- payload.delete(:idempotency_key)
502
- payload.delete("idempotency_key")
503
501
  return payload unless method.to_s.downcase == "post" && idempotent_mutation_path?(path)
504
502
  return payload if header_present?(headers, "Idempotency-Key")
505
503
 
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  class Order
@@ -20,8 +21,15 @@ module Inttegro
20
21
  #
21
22
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
23
  # @return [String, nil]
24
+ #
25
+ # @!attribute [r] response
26
+ # Caller-controlled preferences for computing and representing the successful response.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
29
+ # @return [Inttegro::Request::Response, nil]
23
30
  class CreateExistingCustomerRequestMeta < T::Struct
24
31
  const :idempotency_key, T.nilable(String), default: nil
32
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
33
  end
26
34
  end
27
35
  end
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  class Order
@@ -20,8 +21,15 @@ module Inttegro
20
21
  #
21
22
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
23
  # @return [String, nil]
24
+ #
25
+ # @!attribute [r] response
26
+ # Caller-controlled preferences for computing and representing the successful response.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
29
+ # @return [Inttegro::Request::Response, nil]
23
30
  class CreateNewCustomerRequestMeta < T::Struct
24
31
  const :idempotency_key, T.nilable(String), default: nil
32
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
33
  end
26
34
  end
27
35
  end
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  class Refund
@@ -16,12 +17,20 @@ module Inttegro
16
17
  # @api public
17
18
  #
18
19
  # @!attribute [r] idempotency_key
19
- # Body-level compatibility key. Prefer the `Idempotency-Key` header for new integrations.
20
+ # Stable retry key carried inside `request_meta`. It must match the `Idempotency-Key` header
21
+ # when both are provided.
20
22
  #
21
23
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
24
  # @return [String, nil]
25
+ #
26
+ # @!attribute [r] response
27
+ # Caller-controlled preferences for computing and representing the successful response.
28
+ #
29
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
30
+ # @return [Inttegro::Request::Response, nil]
23
31
  class RequestMeta < T::Struct
24
32
  const :idempotency_key, T.nilable(String), default: nil
33
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
34
  end
26
35
  end
27
36
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require "sorbet-runtime"
7
+
8
+ module Inttegro
9
+ # Namespace for generated request models and enums.
10
+ #
11
+ # Each public type in this namespace is defined in its own file and follows the field names
12
+ # and wire values declared by the Inttegro OpenAPI contract.
13
+ #
14
+ # @api public
15
+ module Request
16
+ end
17
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Request
10
+ # Public properties to include in or exclude from one named response resource. Supply exactly
11
+ # one of `pick` or `omit`.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] pick
20
+ # Include only these property paths and the ancestors needed to contain them.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `pick`.
23
+ # @return [Array<String>, nil]
24
+ #
25
+ # @!attribute [r] omit
26
+ # Exclude these property paths and all of their descendants.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `omit`.
29
+ # @return [Array<String>, nil]
30
+ class PropertySelection < T::Struct
31
+ const :pick, T.nilable(T::Array[String]), default: nil
32
+ const :omit, T.nilable(T::Array[String]), default: nil
33
+
34
+ extend T::Sig
35
+
36
+ sig { params(paths: String).returns(T.attached_class) }
37
+ def self.pick(*paths)
38
+ validate_paths!("pick", paths)
39
+ new(pick: paths)
40
+ end
41
+
42
+ sig { params(paths: String).returns(T.attached_class) }
43
+ def self.omit(*paths)
44
+ validate_paths!("omit", paths)
45
+ new(omit: paths)
46
+ end
47
+
48
+ sig { params(mode: String, paths: T::Array[String]).void }
49
+ private_class_method def self.validate_paths!(mode, paths)
50
+ if paths.empty? || paths.any? { |path| path.strip.empty? }
51
+ raise ArgumentError, "#{mode} must contain non-blank property paths"
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "property_selection"
8
+
9
+ module Inttegro
10
+ module Request
11
+ # Caller-controlled preferences for computing and representing the successful response.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] projection
20
+ # Public property selections keyed by the endpoint's response resource names.
21
+ #
22
+ # Required in the API payload. Wire name: `projection`.
23
+ # @return [Hash{String => Inttegro::Request::PropertySelection}]
24
+ class Response < T::Struct
25
+ const :projection, T::Hash[String, Inttegro::Request::PropertySelection]
26
+ end
27
+ end
28
+ end
@@ -4,6 +4,7 @@
4
4
  # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
5
 
6
6
  require_relative "base"
7
+ require_relative "../request/response"
7
8
 
8
9
  module Inttegro
9
10
  module Schedule
@@ -20,8 +21,15 @@ module Inttegro
20
21
  #
21
22
  # Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
22
23
  # @return [String, nil]
24
+ #
25
+ # @!attribute [r] response
26
+ # Caller-controlled preferences for computing and representing the successful response.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `response`.
29
+ # @return [Inttegro::Request::Response, nil]
23
30
  class ChimeRequestRequestMeta < T::Struct
24
31
  const :idempotency_key, T.nilable(String), default: nil
32
+ const :response, T.nilable(Inttegro::Request::Response), default: nil
25
33
  end
26
34
  end
27
35
  end
@@ -2,5 +2,5 @@
2
2
  # typed: strict
3
3
 
4
4
  module Inttegro
5
- VERSION = "12.0.0"
5
+ VERSION = "12.1.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inttegro
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0
4
+ version: 12.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inttegro Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-06 00:00:00.000000000 Z
11
+ date: 2026-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -764,6 +764,9 @@ files:
764
764
  - lib/inttegro/refund/settlement_mobile_money_payment_method_type.rb
765
765
  - lib/inttegro/refund/settlement_payment_method.rb
766
766
  - lib/inttegro/refund/status.rb
767
+ - lib/inttegro/request/base.rb
768
+ - lib/inttegro/request/property_selection.rb
769
+ - lib/inttegro/request/response.rb
767
770
  - lib/inttegro/resources/apps.rb
768
771
  - lib/inttegro/resources/balance_transactions.rb
769
772
  - lib/inttegro/resources/balances.rb