inttegro 12.0.0 → 12.1.1

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: dc91ebd94209bd548a3a8737154ece97ace5eccebcc12cee5316827ac3282ecf
4
+ data.tar.gz: 898d1b96f30a66c97938bc67154552ff2753872ac3bbff43c3bbfa2f0e3f9ada
5
5
  SHA512:
6
- metadata.gz: 9a95ee861ed16a1ba74190aaa8082c716ee9a5d361f2a5d6f04ac1d91125f1c6be31d9eb4338cc4e5ebe0d8c72ea5a3e23c13388f527809cc52bd54a8530870f
7
- data.tar.gz: d4a6222b41c9aa290181cf7cd1d52a14dc43a816c0ddb3ca4e1edb3536e740edbffce8bfb8ea89c3c0a494e391c63eaa0673253d4104f1c8220b4b5992a5b773
6
+ metadata.gz: 33832f22b3b22019b91c294c825cb660d9389577e8e6a2025ba67da558e5c36ff3e4832cf3e7f33a639dab7d283a4b150c70aa44fc9e5e1cd5127161c0aedd3e
7
+ data.tar.gz: 35fd8e764b3a192c668eaea59161e5b92b1e05741ae388d8d41f90ec182b3a873b0131d93b3545a5e1dd688827cc4859085272a3b1a9664e0a0fd5bd02251967
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
@@ -49,12 +49,6 @@ module Inttegro
49
49
  # Required in the API payload. Wire name: `type`.
50
50
  # @return [Inttegro::Price::Type]
51
51
  #
52
- # @!attribute [r] nominal
53
- # Legacy fixed price amount. Present only for fixed_amount prices.
54
- #
55
- # Optional in the API payload; omitted values default to `nil`. Wire name: `nominal`.
56
- # @return [Inttegro::Money::Amount, nil]
57
- #
58
52
  # @!attribute [r] fixed_amount
59
53
  # Fixed price amount. Present only for fixed_amount prices.
60
54
  #
@@ -102,7 +96,6 @@ module Inttegro
102
96
  const :about, T.nilable(String), default: nil
103
97
  const :active, T::Boolean
104
98
  const :type, Inttegro::Price::Type
105
- const :nominal, T.nilable(Inttegro::Money::Amount), default: nil
106
99
  const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil
107
100
  const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil
108
101
  const :product_id, T.nilable(String), default: nil
@@ -42,12 +42,6 @@ module Inttegro
42
42
  # Required in the API payload. Wire name: `type`.
43
43
  # @return [Inttegro::Price::Type]
44
44
  #
45
- # @!attribute [r] nominal
46
- # Legacy fixed price amount. Present only for fixed_amount prices.
47
- #
48
- # Optional in the API payload; omitted values default to `nil`. Wire name: `nominal`.
49
- # @return [Inttegro::Money::Amount, nil]
50
- #
51
45
  # @!attribute [r] fixed_amount
52
46
  # Fixed price amount. Present only for fixed_amount prices.
53
47
  #
@@ -64,7 +58,6 @@ module Inttegro
64
58
  const :active, T::Boolean
65
59
  const :label, T.nilable(String), default: nil
66
60
  const :type, Inttegro::Price::Type
67
- const :nominal, T.nilable(Inttegro::Money::Amount), default: nil
68
61
  const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil
69
62
  const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil
70
63
  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.1"
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.1
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-08 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