inttegro 11.1.0 → 12.0.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/lib/inttegro/app/application.rb +11 -2
  4. data/lib/inttegro/app/create_request.rb +1 -2
  5. data/lib/inttegro/app/looked_up.rb +11 -2
  6. data/lib/inttegro/app/operating_policy.rb +1 -2
  7. data/lib/inttegro/app/update_request.rb +1 -2
  8. data/lib/inttegro/app/updated.rb +11 -2
  9. data/lib/inttegro/generated/enums.rb +1 -1
  10. data/lib/inttegro/generated/models.rb +13 -7
  11. data/lib/inttegro/generated/operations.rb +6 -0
  12. data/lib/inttegro/resources/children_policies.rb +38 -3
  13. data/lib/inttegro/resources/operating_policies.rb +39 -3
  14. data/lib/inttegro/shared/children_policy.rb +0 -7
  15. data/lib/inttegro/shared/children_policy_versions_page.rb +63 -0
  16. data/lib/inttegro/shared/children_policy_versions_page_response.rb +29 -0
  17. data/lib/inttegro/shared/lookup_children_policy_request.rb +8 -3
  18. data/lib/inttegro/shared/lookup_operating_policy_request.rb +7 -0
  19. data/lib/inttegro/shared/operating_policy_selection.rb +1 -2
  20. data/lib/inttegro/shared/operating_policy_versions_page.rb +63 -0
  21. data/lib/inttegro/shared/operating_policy_versions_page_response.rb +29 -0
  22. data/lib/inttegro/shared/page_children_policy_versions_request.rb +35 -0
  23. data/lib/inttegro/shared/page_operating_policy_versions_request.rb +42 -0
  24. data/lib/inttegro/shared/policy_bt_aging_spec.rb +6 -6
  25. data/lib/inttegro/shared/{policy_bt_aging_spec_public_id.rb → policy_bt_aging_spec_id.rb} +6 -7
  26. data/lib/inttegro/version.rb +1 -1
  27. data/rbi/inttegro/generated.rbi +23 -4
  28. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66dea99faabd3138c2e7da0b9b4e69a6284b3ee08b93d794c74f2c98e50d9561
4
- data.tar.gz: 0c87b4dc602513495eda111e6cdcc64b64663a567ba829754ef02c171b08c669
3
+ metadata.gz: b466a56cf755231ff0c078e8006d87cc2a8fb7529c8d6158e107bff0ae2f3ede
4
+ data.tar.gz: a2f3c15b344757d6b6017abd76b287ac623e45fb392ad615f6ee92f870527b18
5
5
  SHA512:
6
- metadata.gz: 2afbad037692cd58701e69d6c24bd9953c9e4143e5c9d9375de4a89e64493c47a2d0a50aa9447bc08a4bc64466a321eb1ea5fc7ade8cff4d0383a36180c54a3a
7
- data.tar.gz: a9ea9b1e88d7e4765ed12a5ad4ef11adc30ab0e355549a9d30d8cef6ed00842ea335caafcff91dd8c8a8d07de36700a6995caf4db6c332c2f5d5a3ad37d44184
6
+ metadata.gz: 9a95ee861ed16a1ba74190aaa8082c716ee9a5d361f2a5d6f04ac1d91125f1c6be31d9eb4338cc4e5ebe0d8c72ea5a3e23c13388f527809cc52bd54a8530870f
7
+ data.tar.gz: d4a6222b41c9aa290181cf7cd1d52a14dc43a816c0ddb3ca4e1edb3536e740edbffce8bfb8ea89c3c0a494e391c63eaa0673253d4104f1c8220b4b5992a5b773
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [12.0.0] - 2026-11-06
4
+
5
+ - **Breaking:** renamed the children-policy and operating-policy
6
+ balance-transaction aging identifier from `public_id` to `id` to match the
7
+ public API contract.
8
+ - Added active children-policy projections to typed application create, lookup,
9
+ and update responses.
10
+ - Added immutable version lookup and page history for children and operating
11
+ policies.
12
+ - Added typed payout balance-transaction allocation statuses.
13
+
3
14
  ## [11.1.0] - 2026-11-05
4
15
 
5
16
  - Added typed private-beta children-policy lookup and operating-policy create,
@@ -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 "../shared/children_policy"
7
8
  require_relative "capability_projection"
8
9
  require_relative "operating_policy"
9
10
  require_relative "relationship"
@@ -56,9 +57,16 @@ module Inttegro
56
57
  # Required in the API payload. Wire name: `capabilities`.
57
58
  # @return [Inttegro::Application::CapabilityProjection]
58
59
  #
60
+ # @!attribute [r] children_policy
61
+ # Active children policy assigned to the application. Omitted when the private beta is
62
+ # unavailable to the caller.
63
+ #
64
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
65
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
66
+ #
59
67
  # @!attribute [r] operating_policy
60
- # Immutable operating policy snapshot applied to the application. This field is returned only
61
- # to `children_policy_v1` callers.
68
+ # Immutable operating policy applied to the application. Omitted for root applications and
69
+ # when the private beta is unavailable to the caller.
62
70
  #
63
71
  # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
64
72
  # @return [Inttegro::Application::OperatingPolicy, nil]
@@ -81,6 +89,7 @@ module Inttegro
81
89
  const :description, T.nilable(String), default: nil
82
90
  const :created_at, Time
83
91
  const :capabilities, Inttegro::Application::CapabilityProjection
92
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
84
93
  const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
85
94
  const :secret_key, T.nilable(Inttegro::Application::SecretKey), default: nil
86
95
  const :relationship, T.nilable(Inttegro::Application::Relationship), default: nil
@@ -50,8 +50,7 @@ module Inttegro
50
50
  # @return [String, nil]
51
51
  #
52
52
  # @!attribute [r] operating_policy
53
- # Mutually exclusive named-template or inline operating policy selection. Available only to
54
- # internal Commerce services and `children_policy_v1` private-beta callers.
53
+ # Mutually exclusive named-template or inline operating policy selection.
55
54
  #
56
55
  # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
57
56
  # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
@@ -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 "../shared/children_policy"
7
8
  require_relative "capability_projection"
8
9
  require_relative "looked_up_relationship"
9
10
  require_relative "operating_policy"
@@ -68,9 +69,16 @@ module Inttegro
68
69
  # Required in the API payload. Wire name: `capabilities`.
69
70
  # @return [Inttegro::Application::CapabilityProjection]
70
71
  #
72
+ # @!attribute [r] children_policy
73
+ # Active children policy assigned to the application. Omitted when the private beta is
74
+ # unavailable to the caller.
75
+ #
76
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
77
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
78
+ #
71
79
  # @!attribute [r] operating_policy
72
- # Immutable operating policy snapshot applied to the application. This field is returned only
73
- # to `children_policy_v1` callers.
80
+ # Immutable operating policy applied to the application. Omitted for root applications and
81
+ # when the private beta is unavailable to the caller.
74
82
  #
75
83
  # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
76
84
  # @return [Inttegro::Application::OperatingPolicy, nil]
@@ -89,6 +97,7 @@ module Inttegro
89
97
  const :updated_at, T.nilable(Time), default: nil
90
98
  const :archived_at, T.nilable(Time), default: nil
91
99
  const :capabilities, Inttegro::Application::CapabilityProjection
100
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
92
101
  const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
93
102
  const :relationship, T.nilable(Inttegro::Application::LookedUpRelationship), default: nil
94
103
  end
@@ -9,8 +9,7 @@ require_relative "../shared/operating_policy_source"
9
9
 
10
10
  module Inttegro
11
11
  class Application
12
- # Immutable operating policy snapshot applied to the application. This field is returned only
13
- # to `children_policy_v1` callers.
12
+ # Immutable operating policy snapshot applied to the application.
14
13
  #
15
14
  # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
15
  # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
@@ -42,8 +42,7 @@ module Inttegro
42
42
  # @return [String, nil]
43
43
  #
44
44
  # @!attribute [r] operating_policy
45
- # Mutually exclusive named-template or inline operating policy selection. Available only to
46
- # internal Commerce services and `children_policy_v1` private-beta callers.
45
+ # Mutually exclusive named-template or inline operating policy selection.
47
46
  #
48
47
  # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
49
48
  # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
@@ -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 "../shared/children_policy"
7
8
  require_relative "capability_projection"
8
9
  require_relative "operating_policy"
9
10
 
@@ -61,9 +62,16 @@ module Inttegro
61
62
  # Required in the API payload. Wire name: `capabilities`.
62
63
  # @return [Inttegro::Application::CapabilityProjection]
63
64
  #
65
+ # @!attribute [r] children_policy
66
+ # Active children policy assigned to the application. Omitted when the private beta is
67
+ # unavailable to the caller.
68
+ #
69
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
70
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
71
+ #
64
72
  # @!attribute [r] operating_policy
65
- # Immutable operating policy snapshot applied to the application. This field is returned only
66
- # to `children_policy_v1` callers.
73
+ # Immutable operating policy applied to the application. Omitted for root applications and
74
+ # when the private beta is unavailable to the caller.
67
75
  #
68
76
  # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
69
77
  # @return [Inttegro::Application::OperatingPolicy, nil]
@@ -75,6 +83,7 @@ module Inttegro
75
83
  const :created_at, Time
76
84
  const :updated_at, T.nilable(Time), default: nil
77
85
  const :capabilities, Inttegro::Application::CapabilityProjection
86
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
78
87
  const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
79
88
  end
80
89
  end
@@ -106,7 +106,7 @@ require_relative "../shared/delivery_channel"
106
106
  require_relative "../shared/fee_line_item_type"
107
107
  require_relative "../shared/mobile_money_network"
108
108
  require_relative "../shared/operating_policy_source_type"
109
- require_relative "../shared/policy_bt_aging_spec_public_id"
109
+ require_relative "../shared/policy_bt_aging_spec_id"
110
110
  require_relative "../shared/policy_bt_aging_spec_reference_id"
111
111
  require_relative "../shared/shipping_line_item_type"
112
112
  require_relative "../shared/upload_review_decision"
@@ -47,8 +47,14 @@ require_relative "../app/pending_review_capability"
47
47
  require_relative "../app/capability_projection"
48
48
  require_relative "../shared/policy_amount_range"
49
49
  require_relative "../shared/policy_limits"
50
- require_relative "../payment/operating_policy_capabilities"
50
+ require_relative "../payment/children_policy_capabilities"
51
51
  require_relative "../shared/policy_bt_aging_spec"
52
+ require_relative "../payout/children_policy_capabilities"
53
+ require_relative "../payment_method/children_policy_payment_method_capabilities"
54
+ require_relative "../payment_method/children_policy_payment_methods_capabilities"
55
+ require_relative "../shared/children_policy_capabilities"
56
+ require_relative "../shared/children_policy"
57
+ require_relative "../payment/operating_policy_capabilities"
52
58
  require_relative "../payout/operating_policy_capabilities"
53
59
  require_relative "../payment_method/operating_policy_payment_method_capabilities"
54
60
  require_relative "../payment_method/operating_policy_payment_methods_capabilities"
@@ -192,13 +198,9 @@ require_relative "../checkout/select_amount_request_variant1"
192
198
  require_relative "../checkout/select_amount_request_variant2_line_items_item"
193
199
  require_relative "../checkout/select_amount_request_variant2"
194
200
  require_relative "../checkout/select_amount_request"
195
- require_relative "../payment/children_policy_capabilities"
196
- require_relative "../payout/children_policy_capabilities"
197
- require_relative "../payment_method/children_policy_payment_method_capabilities"
198
- require_relative "../payment_method/children_policy_payment_methods_capabilities"
199
- require_relative "../shared/children_policy_capabilities"
200
- require_relative "../shared/children_policy"
201
201
  require_relative "../shared/children_policy_response"
202
+ require_relative "../shared/children_policy_versions_page"
203
+ require_relative "../shared/children_policy_versions_page_response"
202
204
  require_relative "../chime/recipient_detail_phone"
203
205
  require_relative "../chime/recipient_detail_email"
204
206
  require_relative "../chime/recipient_detail"
@@ -507,6 +509,8 @@ require_relative "../otp/verification"
507
509
  require_relative "../shared/operating_policy"
508
510
  require_relative "../shared/operating_policy_response"
509
511
  require_relative "../shared/operating_policy_selection"
512
+ require_relative "../shared/operating_policy_versions_page"
513
+ require_relative "../shared/operating_policy_versions_page_response"
510
514
  require_relative "../order/document_delivery_attempt"
511
515
  require_relative "../order/document_delivery_failure"
512
516
  require_relative "../order/document_delivery"
@@ -516,6 +520,7 @@ require_relative "../order/envelope"
516
520
  require_relative "../order/line_item"
517
521
  require_relative "../order/page"
518
522
  require_relative "../balance_transaction/page_request"
523
+ require_relative "../shared/page_children_policy_versions_request"
519
524
  require_relative "../chime/page_request"
520
525
  require_relative "../chime/page_response"
521
526
  require_relative "../customer/page_request"
@@ -526,6 +531,7 @@ require_relative "../financial_account/page_financial_accounts_request"
526
531
  require_relative "../financial_account/page_response"
527
532
  require_relative "../financial_account/page_response_inline"
528
533
  require_relative "../message_template/page_request"
534
+ require_relative "../shared/page_operating_policy_versions_request"
529
535
  require_relative "../order/page_envelope"
530
536
  require_relative "../order/page_request"
531
537
  require_relative "../payout/page_request"
@@ -57,8 +57,10 @@ module Inttegro
57
57
  "/apps/lookup" => Inttegro::Application::LookupResponse,
58
58
  "/apps/update" => Inttegro::Application::UpdateResponse,
59
59
  "/children_policies/lookup" => Inttegro::Shared::ChildrenPolicyResponse,
60
+ "/children_policies/page" => Inttegro::Shared::ChildrenPolicyVersionsPageResponse,
60
61
  "/operating_policies/create" => Inttegro::Shared::OperatingPolicyResponse,
61
62
  "/operating_policies/lookup" => Inttegro::Shared::OperatingPolicyResponse,
63
+ "/operating_policies/page" => Inttegro::Shared::OperatingPolicyVersionsPageResponse,
62
64
  "/operating_policies/update" => Inttegro::Shared::OperatingPolicyResponse,
63
65
  "/keys/generate" => Inttegro::SecretKey::GenerateResponse,
64
66
  "/keys/page" => Inttegro::SecretKey::PageResponse,
@@ -189,8 +191,10 @@ module Inttegro
189
191
  "/apps/capabilities" => "Inttegro::Application::LookupCapabilitiesRequest",
190
192
  "/apps/update" => "Inttegro::Application::UpdateRequest",
191
193
  "/children_policies/lookup" => "Inttegro::Shared::LookupChildrenPolicyRequest",
194
+ "/children_policies/page" => "Inttegro::Shared::PageChildrenPolicyVersionsRequest",
192
195
  "/operating_policies/create" => "Inttegro::Shared::CreateOperatingPolicyRequest",
193
196
  "/operating_policies/lookup" => "Inttegro::Shared::LookupOperatingPolicyRequest",
197
+ "/operating_policies/page" => "Inttegro::Shared::PageOperatingPolicyVersionsRequest",
194
198
  "/operating_policies/update" => "Inttegro::Shared::UpdateOperatingPolicyRequest",
195
199
  "/keys/generate" => "Inttegro::SecretKey::GenerateRequest",
196
200
  "/keys/page" => "Inttegro::SecretKey::PageRequest",
@@ -321,8 +325,10 @@ module Inttegro
321
325
  "/apps/lookup" => "lookupApplication",
322
326
  "/apps/update" => "updateApplication",
323
327
  "/children_policies/lookup" => "lookupChildrenPolicy",
328
+ "/children_policies/page" => "pageChildrenPolicyVersions",
324
329
  "/operating_policies/create" => "createOperatingPolicy",
325
330
  "/operating_policies/lookup" => "lookupOperatingPolicy",
331
+ "/operating_policies/page" => "pageOperatingPolicyVersions",
326
332
  "/operating_policies/update" => "updateOperatingPolicy",
327
333
  "/keys/generate" => "generateSecretKey",
328
334
  "/keys/page" => "pageSecretKeys",
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
  # typed: strict
3
3
 
4
+ require_relative "../shared/children_policy_versions_page"
5
+
4
6
  module Inttegro
5
7
  module Resources
6
8
  # Read access to the authenticated application's active children policy.
@@ -12,15 +14,48 @@ module Inttegro
12
14
  @http = T.let(http, Inttegro::HTTPClient)
13
15
  end
14
16
 
15
- sig { returns(Inttegro::Shared::ChildrenPolicy) }
16
- def lookup
17
+ sig { params(version: T.nilable(Integer)).returns(Inttegro::Shared::ChildrenPolicy) }
18
+ def lookup(version: nil)
19
+ validate_version!(version)
20
+ body = T.let({}, Inttegro::Types::Payload)
21
+ body[:version] = version unless version.nil?
17
22
  @http.post_resource(
18
23
  "/children_policies/lookup",
19
24
  Inttegro::Shared::ChildrenPolicy,
20
25
  :children_policy,
21
- {}
26
+ body
27
+ )
28
+ end
29
+
30
+ sig do
31
+ params(number: T.nilable(Integer), size: T.nilable(Integer))
32
+ .returns(Inttegro::Shared::ChildrenPolicyVersionsPage)
33
+ end
34
+ def page(number: nil, size: nil)
35
+ @http.post_resource(
36
+ "/children_policies/page",
37
+ Inttegro::Shared::ChildrenPolicyVersionsPage,
38
+ :page,
39
+ pagination_payload(number, size)
22
40
  )
23
41
  end
42
+
43
+ private
44
+
45
+ sig { params(version: T.nilable(Integer)).void }
46
+ def validate_version!(version)
47
+ return if version.nil? || version >= 1
48
+
49
+ raise ArgumentError, "version must be greater than or equal to 1"
50
+ end
51
+
52
+ sig { params(number: T.nilable(Integer), size: T.nilable(Integer)).returns(Inttegro::Types::Payload) }
53
+ def pagination_payload(number, size)
54
+ body = T.let({}, Inttegro::Types::Payload)
55
+ body[:number] = number unless number.nil?
56
+ body[:size] = size unless size.nil?
57
+ body
58
+ end
24
59
  end
25
60
  end
26
61
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
  # typed: strict
3
3
 
4
+ require_relative "../shared/operating_policy_versions_page"
5
+
4
6
  module Inttegro
5
7
  module Resources
6
8
  # Create, look up, and version reusable operating policies.
@@ -25,13 +27,38 @@ module Inttegro
25
27
  )
26
28
  end
27
29
 
28
- sig { params(operating_policy_id: String).returns(Inttegro::Shared::OperatingPolicy) }
29
- def lookup(operating_policy_id)
30
+ sig do
31
+ params(operating_policy_id: String, version: T.nilable(Integer))
32
+ .returns(Inttegro::Shared::OperatingPolicy)
33
+ end
34
+ def lookup(operating_policy_id, version: nil)
35
+ validate_version!(version)
36
+ body = T.let({ operating_policy_id: operating_policy_id }, Inttegro::Types::Payload)
37
+ body[:version] = version unless version.nil?
30
38
  @http.post_resource(
31
39
  "/operating_policies/lookup",
32
40
  Inttegro::Shared::OperatingPolicy,
33
41
  :operating_policy,
34
- { operating_policy_id: operating_policy_id }
42
+ body
43
+ )
44
+ end
45
+
46
+ sig do
47
+ params(
48
+ operating_policy_id: String,
49
+ number: T.nilable(Integer),
50
+ size: T.nilable(Integer)
51
+ ).returns(Inttegro::Shared::OperatingPolicyVersionsPage)
52
+ end
53
+ def page(operating_policy_id, number: nil, size: nil)
54
+ body = T.let({ operating_policy_id: operating_policy_id }, Inttegro::Types::Payload)
55
+ body[:number] = number unless number.nil?
56
+ body[:size] = size unless size.nil?
57
+ @http.post_resource(
58
+ "/operating_policies/page",
59
+ Inttegro::Shared::OperatingPolicyVersionsPage,
60
+ :page,
61
+ body
35
62
  )
36
63
  end
37
64
 
@@ -47,6 +74,15 @@ module Inttegro
47
74
  payload
48
75
  )
49
76
  end
77
+
78
+ private
79
+
80
+ sig { params(version: T.nilable(Integer)).void }
81
+ def validate_version!(version)
82
+ return if version.nil? || version >= 1
83
+
84
+ raise ArgumentError, "version must be greater than or equal to 1"
85
+ end
50
86
  end
51
87
  end
52
88
  end
@@ -22,12 +22,6 @@ module Inttegro
22
22
  # Required in the API payload. Wire name: `id`.
23
23
  # @return [String]
24
24
  #
25
- # @!attribute [r] owner_application_id
26
- # Value of the `owner_application_id` field in the Inttegro API payload.
27
- #
28
- # Required in the API payload. Wire name: `owner_application_id`.
29
- # @return [String]
30
- #
31
25
  # @!attribute [r] version
32
26
  # Value of the `version` field in the Inttegro API payload.
33
27
  #
@@ -77,7 +71,6 @@ module Inttegro
77
71
  # @return [Time]
78
72
  class ChildrenPolicy < T::Struct
79
73
  const :id, String
80
- const :owner_application_id, String
81
74
  const :version, Integer
82
75
  const :active_version, Integer
83
76
  const :name, String
@@ -0,0 +1,63 @@
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 "children_policy"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children policy versions page object in the Inttegro API.
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] number
20
+ # Value of the `number` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `number`.
23
+ # @return [Integer]
24
+ #
25
+ # @!attribute [r] size
26
+ # Value of the `size` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `size`.
29
+ # @return [Integer]
30
+ #
31
+ # @!attribute [r] count
32
+ # Value of the `count` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `count`.
35
+ # @return [Integer]
36
+ #
37
+ # @!attribute [r] total
38
+ # Value of the `total` field in the Inttegro API payload.
39
+ #
40
+ # Required in the API payload. Wire name: `total`.
41
+ # @return [Integer]
42
+ #
43
+ # @!attribute [r] has_more
44
+ # Value of the `has_more` field in the Inttegro API payload.
45
+ #
46
+ # Required in the API payload. Wire name: `has_more`.
47
+ # @return [Boolean]
48
+ #
49
+ # @!attribute [r] versions
50
+ # Value of the `versions` field in the Inttegro API payload.
51
+ #
52
+ # Required in the API payload. Wire name: `versions`.
53
+ # @return [Array<Inttegro::Shared::ChildrenPolicy>]
54
+ class ChildrenPolicyVersionsPage < T::Struct
55
+ const :number, Integer
56
+ const :size, Integer
57
+ const :count, Integer
58
+ const :total, Integer
59
+ const :has_more, T::Boolean
60
+ const :versions, T::Array[Inttegro::Shared::ChildrenPolicy]
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,29 @@
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 "children_policy_versions_page"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children policy versions page response object in the Inttegro
12
+ # API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] page
21
+ # Value of the `page` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `page`.
24
+ # @return [Inttegro::Shared::ChildrenPolicyVersionsPage]
25
+ class ChildrenPolicyVersionsPageResponse < T::Struct
26
+ const :page, Inttegro::Shared::ChildrenPolicyVersionsPage
27
+ end
28
+ end
29
+ end
@@ -7,16 +7,21 @@ require_relative "base"
7
7
 
8
8
  module Inttegro
9
9
  module Shared
10
- # Public lookup accepts no selectors and always returns the authenticated application's active
11
- # policy.
10
+ # Typed representation of the lookup children policy request object in the Inttegro API.
12
11
  #
13
12
  # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
13
  # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
14
  # field names and serialized enum values.
16
15
  #
17
16
  # @api public
17
+ #
18
+ # @!attribute [r] version
19
+ # Immutable version to return. Omit to return the latest active version.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
22
+ # @return [Integer, nil]
18
23
  class LookupChildrenPolicyRequest < T::Struct
19
- # This object intentionally has no fields.
24
+ const :version, T.nilable(Integer), default: nil
20
25
  end
21
26
  end
22
27
  end
@@ -20,8 +20,15 @@ module Inttegro
20
20
  #
21
21
  # Required in the API payload. Wire name: `operating_policy_id`.
22
22
  # @return [String]
23
+ #
24
+ # @!attribute [r] version
25
+ # Immutable version to return. Omit to return the latest active version.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
28
+ # @return [Integer, nil]
23
29
  class LookupOperatingPolicyRequest < T::Struct
24
30
  const :operating_policy_id, String
31
+ const :version, T.nilable(Integer), default: nil
25
32
  end
26
33
  end
27
34
  end
@@ -9,8 +9,7 @@ require_relative "operating_policy_selection_by_id"
9
9
 
10
10
  module Inttegro
11
11
  module Shared
12
- # Mutually exclusive named-template or inline operating policy selection. Available only to
13
- # internal Commerce services and `children_policy_v1` private-beta callers.
12
+ # Mutually exclusive named-template or inline operating policy selection.
14
13
  #
15
14
  # @api public
16
15
  # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection]
@@ -0,0 +1,63 @@
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 "operating_policy"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the operating policy versions page object in the Inttegro API.
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] number
20
+ # Value of the `number` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `number`.
23
+ # @return [Integer]
24
+ #
25
+ # @!attribute [r] size
26
+ # Value of the `size` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `size`.
29
+ # @return [Integer]
30
+ #
31
+ # @!attribute [r] count
32
+ # Value of the `count` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `count`.
35
+ # @return [Integer]
36
+ #
37
+ # @!attribute [r] total
38
+ # Value of the `total` field in the Inttegro API payload.
39
+ #
40
+ # Required in the API payload. Wire name: `total`.
41
+ # @return [Integer]
42
+ #
43
+ # @!attribute [r] has_more
44
+ # Value of the `has_more` field in the Inttegro API payload.
45
+ #
46
+ # Required in the API payload. Wire name: `has_more`.
47
+ # @return [Boolean]
48
+ #
49
+ # @!attribute [r] versions
50
+ # Value of the `versions` field in the Inttegro API payload.
51
+ #
52
+ # Required in the API payload. Wire name: `versions`.
53
+ # @return [Array<Inttegro::Shared::OperatingPolicy>]
54
+ class OperatingPolicyVersionsPage < T::Struct
55
+ const :number, Integer
56
+ const :size, Integer
57
+ const :count, Integer
58
+ const :total, Integer
59
+ const :has_more, T::Boolean
60
+ const :versions, T::Array[Inttegro::Shared::OperatingPolicy]
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,29 @@
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 "operating_policy_versions_page"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the operating policy versions page response object in the Inttegro
12
+ # API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] page
21
+ # Value of the `page` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `page`.
24
+ # @return [Inttegro::Shared::OperatingPolicyVersionsPage]
25
+ class OperatingPolicyVersionsPageResponse < T::Struct
26
+ const :page, Inttegro::Shared::OperatingPolicyVersionsPage
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,35 @@
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 Shared
10
+ # Typed representation of the page children policy versions request object in the Inttegro
11
+ # API.
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] number
20
+ # Value of the `number` field in the Inttegro API payload.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
23
+ # @return [Integer, nil]
24
+ #
25
+ # @!attribute [r] size
26
+ # Value of the `size` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `size`.
29
+ # @return [Integer, nil]
30
+ class PageChildrenPolicyVersionsRequest < T::Struct
31
+ const :number, T.nilable(Integer), default: nil
32
+ const :size, T.nilable(Integer), default: nil
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,42 @@
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 Shared
10
+ # Typed representation of the page operating policy versions request object in the Inttegro
11
+ # API.
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] operating_policy_id
20
+ # Value of the `operating_policy_id` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `operating_policy_id`.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [r] number
26
+ # Value of the `number` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
29
+ # @return [Integer, nil]
30
+ #
31
+ # @!attribute [r] size
32
+ # Value of the `size` field in the Inttegro API payload.
33
+ #
34
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `size`.
35
+ # @return [Integer, nil]
36
+ class PageOperatingPolicyVersionsRequest < T::Struct
37
+ const :operating_policy_id, String
38
+ const :number, T.nilable(Integer), default: nil
39
+ const :size, T.nilable(Integer), default: nil
40
+ end
41
+ end
42
+ end
@@ -4,7 +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 "policy_bt_aging_spec_public_id"
7
+ require_relative "policy_bt_aging_spec_id"
8
8
 
9
9
  module Inttegro
10
10
  module Shared
@@ -16,11 +16,11 @@ module Inttegro
16
16
  #
17
17
  # @api public
18
18
  #
19
- # @!attribute [r] public_id
20
- # Value of the `public_id` field in the Inttegro API payload.
19
+ # @!attribute [r] id
20
+ # Value of the `id` field in the Inttegro API payload.
21
21
  #
22
- # Required in the API payload. Wire name: `public_id`.
23
- # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
22
+ # Required in the API payload. Wire name: `id`.
23
+ # @return [Inttegro::Shared::PolicyBTAgingSpecId]
24
24
  #
25
25
  # @!attribute [r] t_plus
26
26
  # Platform-owned whole-hour aging duration.
@@ -28,7 +28,7 @@ module Inttegro
28
28
  # Required in the API payload. Wire name: `t_plus`.
29
29
  # @return [String]
30
30
  class PolicyBTAgingSpec < T::Struct
31
- const :public_id, Inttegro::Shared::PolicyBTAgingSpecPublicId
31
+ const :id, Inttegro::Shared::PolicyBTAgingSpecId
32
32
  const :t_plus, String
33
33
  end
34
34
  end
@@ -7,26 +7,25 @@ require_relative "base"
7
7
 
8
8
  module Inttegro
9
9
  module Shared
10
- # String-backed values accepted by the Inttegro API for
11
- # Inttegro::Shared::PolicyBTAgingSpecPublicId.
10
+ # String-backed values accepted by the Inttegro API for Inttegro::Shared::PolicyBTAgingSpecId.
12
11
  #
13
12
  # Use the constants below when constructing a request. `#serialize` returns the documented
14
13
  # string wire value received from or sent to the API.
15
14
  #
16
15
  # @api public
17
- class PolicyBTAgingSpecPublicId < T::Enum
16
+ class PolicyBTAgingSpecId < T::Enum
18
17
  enums do
19
18
  # Serialized wire value: `bt_aging_spec_immediate`.
20
- # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
19
+ # @return [Inttegro::Shared::PolicyBTAgingSpecId]
21
20
  BT_AGING_SPEC_IMMEDIATE = new("bt_aging_spec_immediate")
22
21
  # Serialized wire value: `bt_aging_spec_24_hourly`.
23
- # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
22
+ # @return [Inttegro::Shared::PolicyBTAgingSpecId]
24
23
  BT_AGING_SPEC_24_HOURLY = new("bt_aging_spec_24_hourly")
25
24
  # Serialized wire value: `bt_aging_spec_48_hourly`.
26
- # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
25
+ # @return [Inttegro::Shared::PolicyBTAgingSpecId]
27
26
  BT_AGING_SPEC_48_HOURLY = new("bt_aging_spec_48_hourly")
28
27
  # Serialized wire value: `bt_aging_spec_168_hourly`.
29
- # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
28
+ # @return [Inttegro::Shared::PolicyBTAgingSpecId]
30
29
  BT_AGING_SPEC_168_HOURLY = new("bt_aging_spec_168_hourly")
31
30
  end
32
31
  end
@@ -2,5 +2,5 @@
2
2
  # typed: strict
3
3
 
4
4
  module Inttegro
5
- VERSION = "11.1.0"
5
+ VERSION = "12.0.0"
6
6
  end
@@ -54,8 +54,19 @@ module Inttegro
54
54
  sig { params(http: Inttegro::HTTPClient).void }
55
55
  def initialize(http); end
56
56
 
57
- sig { returns(Inttegro::Shared::ChildrenPolicy) }
58
- def lookup(); end
57
+ sig { params(version: T.nilable(Integer)).returns(Inttegro::Shared::ChildrenPolicy) }
58
+ def lookup(version: nil); end
59
+
60
+ sig { params(number: T.nilable(Inttegro::Types::WireValue), size: T.nilable(Inttegro::Types::WireValue)).returns(Inttegro::Shared::ChildrenPolicyVersionsPage) }
61
+ def page(number: nil, size: nil); end
62
+
63
+ private
64
+
65
+ sig { params(number: Inttegro::Types::WireValue, size: Inttegro::Types::WireValue).returns(Inttegro::Types::Payload) }
66
+ def pagination_payload(number, size); end
67
+
68
+ sig { params(version: T.nilable(Integer)).void }
69
+ def validate_version!(version); end
59
70
  end
60
71
 
61
72
  class Chimes
@@ -258,11 +269,19 @@ module Inttegro
258
269
  sig { params(payload: T.any(Inttegro::Shared::CreateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
259
270
  def create(payload); end
260
271
 
261
- sig { params(operating_policy_id: String).returns(Inttegro::Shared::OperatingPolicy) }
262
- def lookup(operating_policy_id); end
272
+ sig { params(operating_policy_id: String, version: T.nilable(Integer)).returns(Inttegro::Shared::OperatingPolicy) }
273
+ def lookup(operating_policy_id, version: nil); end
274
+
275
+ sig { params(operating_policy_id: String, number: T.nilable(Inttegro::Types::WireValue), size: T.nilable(Inttegro::Types::WireValue)).returns(Inttegro::Shared::OperatingPolicyVersionsPage) }
276
+ def page(operating_policy_id, number: nil, size: nil); end
263
277
 
264
278
  sig { params(payload: T.any(Inttegro::Shared::UpdateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
265
279
  def update(payload); end
280
+
281
+ private
282
+
283
+ sig { params(version: T.nilable(Integer)).void }
284
+ def validate_version!(version); end
266
285
  end
267
286
 
268
287
  class Orders
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: 11.1.0
4
+ version: 12.0.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-05 00:00:00.000000000 Z
11
+ date: 2026-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -853,6 +853,8 @@ files:
853
853
  - lib/inttegro/shared/children_policy.rb
854
854
  - lib/inttegro/shared/children_policy_capabilities.rb
855
855
  - lib/inttegro/shared/children_policy_response.rb
856
+ - lib/inttegro/shared/children_policy_versions_page.rb
857
+ - lib/inttegro/shared/children_policy_versions_page_response.rb
856
858
  - lib/inttegro/shared/content_safety_status.rb
857
859
  - lib/inttegro/shared/country_bank.rb
858
860
  - lib/inttegro/shared/country_bank_branch.rb
@@ -887,9 +889,13 @@ files:
887
889
  - lib/inttegro/shared/operating_policy_selection_by_id.rb
888
890
  - lib/inttegro/shared/operating_policy_source.rb
889
891
  - lib/inttegro/shared/operating_policy_source_type.rb
892
+ - lib/inttegro/shared/operating_policy_versions_page.rb
893
+ - lib/inttegro/shared/operating_policy_versions_page_response.rb
894
+ - lib/inttegro/shared/page_children_policy_versions_request.rb
895
+ - lib/inttegro/shared/page_operating_policy_versions_request.rb
890
896
  - lib/inttegro/shared/policy_amount_range.rb
891
897
  - lib/inttegro/shared/policy_bt_aging_spec.rb
892
- - lib/inttegro/shared/policy_bt_aging_spec_public_id.rb
898
+ - lib/inttegro/shared/policy_bt_aging_spec_id.rb
893
899
  - lib/inttegro/shared/policy_bt_aging_spec_reference.rb
894
900
  - lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb
895
901
  - lib/inttegro/shared/policy_limits.rb