inttegro 11.1.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -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/broadcast/request_request_meta.rb +8 -0
  10. data/lib/inttegro/chime/send_request_request_meta.rb +8 -0
  11. data/lib/inttegro/generated/enums.rb +1 -1
  12. data/lib/inttegro/generated/models.rb +15 -7
  13. data/lib/inttegro/generated/operations.rb +6 -0
  14. data/lib/inttegro/http_client.rb +0 -2
  15. data/lib/inttegro/order/create_existing_customer_request_meta.rb +8 -0
  16. data/lib/inttegro/order/create_new_customer_request_meta.rb +8 -0
  17. data/lib/inttegro/refund/request_meta.rb +10 -1
  18. data/lib/inttegro/request/base.rb +17 -0
  19. data/lib/inttegro/request/property_selection.rb +56 -0
  20. data/lib/inttegro/request/response.rb +28 -0
  21. data/lib/inttegro/resources/children_policies.rb +38 -3
  22. data/lib/inttegro/resources/operating_policies.rb +39 -3
  23. data/lib/inttegro/schedule/chime_request_request_meta.rb +8 -0
  24. data/lib/inttegro/shared/children_policy.rb +0 -7
  25. data/lib/inttegro/shared/children_policy_versions_page.rb +63 -0
  26. data/lib/inttegro/shared/children_policy_versions_page_response.rb +29 -0
  27. data/lib/inttegro/shared/lookup_children_policy_request.rb +8 -3
  28. data/lib/inttegro/shared/lookup_operating_policy_request.rb +7 -0
  29. data/lib/inttegro/shared/operating_policy_selection.rb +1 -2
  30. data/lib/inttegro/shared/operating_policy_versions_page.rb +63 -0
  31. data/lib/inttegro/shared/operating_policy_versions_page_response.rb +29 -0
  32. data/lib/inttegro/shared/page_children_policy_versions_request.rb +35 -0
  33. data/lib/inttegro/shared/page_operating_policy_versions_request.rb +42 -0
  34. data/lib/inttegro/shared/policy_bt_aging_spec.rb +6 -6
  35. data/lib/inttegro/shared/{policy_bt_aging_spec_public_id.rb → policy_bt_aging_spec_id.rb} +6 -7
  36. data/lib/inttegro/version.rb +1 -1
  37. data/rbi/inttegro/generated.rbi +23 -4
  38. metadata +12 -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: 8be77b27c2999e498bb203aa67de63c2138160c6f7bafac8ba7b29c03779e2a2
4
+ data.tar.gz: 2db7376f6286965d453fb2fd427c4fb90f7ec83e1b0fe4dec7dc6120943d6a6d
5
5
  SHA512:
6
- metadata.gz: 2afbad037692cd58701e69d6c24bd9953c9e4143e5c9d9375de4a89e64493c47a2d0a50aa9447bc08a4bc64466a321eb1ea5fc7ade8cff4d0383a36180c54a3a
7
- data.tar.gz: a9ea9b1e88d7e4765ed12a5ad4ef11adc30ab0e355549a9d30d8cef6ed00842ea335caafcff91dd8c8a8d07de36700a6995caf4db6c332c2f5d5a3ad37d44184
6
+ metadata.gz: e2643e77ea9858345ae7226912a521edd9cbd5a693d2c1510412576dc62aa139663940402eabf7ccc2ec28c9ef1c342790cd914147acf9a8f68f9fdd2378ce31
7
+ data.tar.gz: 51c45e7b8e7028c0129f08d5c7f5d296a95d71b791f3a31a941684bc6d633b65aff9653dcd6d60b73601bf8ff76f354fcc4e7c181b7bc08c4ad676191c70af82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
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
+
10
+ ## [12.0.0] - 2026-11-06
11
+
12
+ - **Breaking:** renamed the children-policy and operating-policy
13
+ balance-transaction aging identifier from `public_id` to `id` to match the
14
+ public API contract.
15
+ - Added active children-policy projections to typed application create, lookup,
16
+ and update responses.
17
+ - Added immutable version lookup and page history for children and operating
18
+ policies.
19
+ - Added typed payout balance-transaction allocation statuses.
20
+
3
21
  ## [11.1.0] - 2026-11-05
4
22
 
5
23
  - 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
@@ -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
@@ -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"
@@ -99,6 +105,8 @@ require_relative "../broadcast/cancel_detail"
99
105
  require_relative "../broadcast/cancel_response"
100
106
  require_relative "../broadcast/creation_detail"
101
107
  require_relative "../broadcast/detail"
108
+ require_relative "../request/property_selection"
109
+ require_relative "../request/response"
102
110
  require_relative "../broadcast/request_request_meta"
103
111
  require_relative "../message_template/variables"
104
112
  require_relative "../message_template/reference"
@@ -192,13 +200,9 @@ require_relative "../checkout/select_amount_request_variant1"
192
200
  require_relative "../checkout/select_amount_request_variant2_line_items_item"
193
201
  require_relative "../checkout/select_amount_request_variant2"
194
202
  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
203
  require_relative "../shared/children_policy_response"
204
+ require_relative "../shared/children_policy_versions_page"
205
+ require_relative "../shared/children_policy_versions_page_response"
202
206
  require_relative "../chime/recipient_detail_phone"
203
207
  require_relative "../chime/recipient_detail_email"
204
208
  require_relative "../chime/recipient_detail"
@@ -507,6 +511,8 @@ require_relative "../otp/verification"
507
511
  require_relative "../shared/operating_policy"
508
512
  require_relative "../shared/operating_policy_response"
509
513
  require_relative "../shared/operating_policy_selection"
514
+ require_relative "../shared/operating_policy_versions_page"
515
+ require_relative "../shared/operating_policy_versions_page_response"
510
516
  require_relative "../order/document_delivery_attempt"
511
517
  require_relative "../order/document_delivery_failure"
512
518
  require_relative "../order/document_delivery"
@@ -516,6 +522,7 @@ require_relative "../order/envelope"
516
522
  require_relative "../order/line_item"
517
523
  require_relative "../order/page"
518
524
  require_relative "../balance_transaction/page_request"
525
+ require_relative "../shared/page_children_policy_versions_request"
519
526
  require_relative "../chime/page_request"
520
527
  require_relative "../chime/page_response"
521
528
  require_relative "../customer/page_request"
@@ -526,6 +533,7 @@ require_relative "../financial_account/page_financial_accounts_request"
526
533
  require_relative "../financial_account/page_response"
527
534
  require_relative "../financial_account/page_response_inline"
528
535
  require_relative "../message_template/page_request"
536
+ require_relative "../shared/page_operating_policy_versions_request"
529
537
  require_relative "../order/page_envelope"
530
538
  require_relative "../order/page_request"
531
539
  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",
@@ -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
@@ -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
@@ -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
@@ -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.1.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.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-05 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
@@ -853,6 +856,8 @@ files:
853
856
  - lib/inttegro/shared/children_policy.rb
854
857
  - lib/inttegro/shared/children_policy_capabilities.rb
855
858
  - lib/inttegro/shared/children_policy_response.rb
859
+ - lib/inttegro/shared/children_policy_versions_page.rb
860
+ - lib/inttegro/shared/children_policy_versions_page_response.rb
856
861
  - lib/inttegro/shared/content_safety_status.rb
857
862
  - lib/inttegro/shared/country_bank.rb
858
863
  - lib/inttegro/shared/country_bank_branch.rb
@@ -887,9 +892,13 @@ files:
887
892
  - lib/inttegro/shared/operating_policy_selection_by_id.rb
888
893
  - lib/inttegro/shared/operating_policy_source.rb
889
894
  - lib/inttegro/shared/operating_policy_source_type.rb
895
+ - lib/inttegro/shared/operating_policy_versions_page.rb
896
+ - lib/inttegro/shared/operating_policy_versions_page_response.rb
897
+ - lib/inttegro/shared/page_children_policy_versions_request.rb
898
+ - lib/inttegro/shared/page_operating_policy_versions_request.rb
890
899
  - lib/inttegro/shared/policy_amount_range.rb
891
900
  - lib/inttegro/shared/policy_bt_aging_spec.rb
892
- - lib/inttegro/shared/policy_bt_aging_spec_public_id.rb
901
+ - lib/inttegro/shared/policy_bt_aging_spec_id.rb
893
902
  - lib/inttegro/shared/policy_bt_aging_spec_reference.rb
894
903
  - lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb
895
904
  - lib/inttegro/shared/policy_limits.rb