inttegro 10.0.0 → 11.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 (137) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/lib/inttegro/app/application.rb +20 -1
  4. data/lib/inttegro/app/capabilities.rb +11 -0
  5. data/lib/inttegro/app/capabilities_response.rb +28 -0
  6. data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
  7. data/lib/inttegro/app/capability_projection.rb +39 -0
  8. data/lib/inttegro/app/capability_requirement.rb +41 -0
  9. data/lib/inttegro/app/capability_requirements.rb +28 -0
  10. data/lib/inttegro/app/create_request.rb +10 -0
  11. data/lib/inttegro/app/enabled_capability.rb +35 -0
  12. data/lib/inttegro/app/enabled_capability_status.rb +25 -0
  13. data/lib/inttegro/app/looked_up.rb +27 -0
  14. data/lib/inttegro/app/looked_up_relationship.rb +58 -0
  15. data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
  16. data/lib/inttegro/app/lookup_capabilities_request.rb +21 -0
  17. data/lib/inttegro/app/operating_policy.rb +37 -0
  18. data/lib/inttegro/app/pending_review_capability.rb +43 -0
  19. data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
  20. data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
  21. data/lib/inttegro/app/relationship.rb +7 -63
  22. data/lib/inttegro/app/relationship_parent.rb +41 -0
  23. data/lib/inttegro/app/restricted_capability.rb +51 -0
  24. data/lib/inttegro/app/restricted_capability_status.rb +25 -0
  25. data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
  26. data/lib/inttegro/app/update_request.rb +10 -0
  27. data/lib/inttegro/app/updated.rb +19 -0
  28. data/lib/inttegro/balance_transaction/balance_transaction.rb +4 -3
  29. data/lib/inttegro/broadcast/request.rb +5 -3
  30. data/lib/inttegro/checkout/customer_data.rb +41 -0
  31. data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
  32. data/lib/inttegro/checkout/lookup_request.rb +3 -3
  33. data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb} +2 -2
  34. data/lib/inttegro/checkout/lookup_response.rb +8 -17
  35. data/lib/inttegro/checkout/order_line_item_group.rb +5 -3
  36. data/lib/inttegro/checkout/pay_request.rb +40 -3
  37. data/lib/inttegro/checkout/pay_request_selected_amount.rb +36 -0
  38. data/lib/inttegro/checkout/select_amount_request_variant2.rb +6 -6
  39. data/lib/inttegro/checkout/select_amount_request_variant2_line_items_item.rb +36 -0
  40. data/lib/inttegro/chime/inline_recipient.rb +4 -4
  41. data/lib/inttegro/chime/recipient.rb +4 -3
  42. data/lib/inttegro/chime/send_request.rb +5 -3
  43. data/lib/inttegro/chime/{inline_recipient_variant1.rb → send_request_recipient_variant1_variant1.rb} +9 -8
  44. data/lib/inttegro/chime/{inline_recipient_variant1_phone.rb → send_request_recipient_variant1_variant1_phone.rb} +3 -2
  45. data/lib/inttegro/chime/{inline_recipient_variant1_type.rb → send_request_recipient_variant1_variant1_type.rb} +3 -3
  46. data/lib/inttegro/chime/{inline_recipient_variant2.rb → send_request_recipient_variant1_variant2.rb} +9 -8
  47. data/lib/inttegro/chime/{inline_recipient_variant2_email.rb → send_request_recipient_variant1_variant2_email.rb} +3 -2
  48. data/lib/inttegro/chime/{inline_recipient_variant2_type.rb → send_request_recipient_variant1_variant2_type.rb} +3 -3
  49. data/lib/inttegro/client.rb +10 -0
  50. data/lib/inttegro/financial_account/connected.rb +9 -0
  51. data/lib/inttegro/financial_account/created.rb +9 -0
  52. data/lib/inttegro/financial_account/details.rb +9 -0
  53. data/lib/inttegro/financial_account/financial_account.rb +9 -0
  54. data/lib/inttegro/financial_account/name_enquiry.rb +42 -0
  55. data/lib/inttegro/financial_account/updated.rb +9 -0
  56. data/lib/inttegro/generated/enums.rb +11 -2
  57. data/lib/inttegro/generated/models.rb +88 -34
  58. data/lib/inttegro/generated/operations.rb +23 -8
  59. data/lib/inttegro/message_template/create_email_request.rb +2 -3
  60. data/lib/inttegro/message_template/email_content.rb +6 -3
  61. data/lib/inttegro/message_template/email_content_from.rb +36 -0
  62. data/lib/inttegro/message_template/message_template.rb +2 -3
  63. data/lib/inttegro/message_template/rendered.rb +2 -3
  64. data/lib/inttegro/message_template/update_request.rb +2 -3
  65. data/lib/inttegro/models.rb +1 -0
  66. data/lib/inttegro/order/create_existing_customer.rb +5 -3
  67. data/lib/inttegro/order/create_new_customer.rb +5 -3
  68. data/lib/inttegro/order/invoice_format.rb +0 -8
  69. data/lib/inttegro/order/line_item_group.rb +6 -3
  70. data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
  71. data/lib/inttegro/order/receipt_format.rb +35 -0
  72. data/lib/inttegro/order/update_request.rb +5 -3
  73. data/lib/inttegro/payment/children_policy_capabilities.rb +35 -0
  74. data/lib/inttegro/payment/operating_policy_capabilities.rb +35 -0
  75. data/lib/inttegro/payment/operating_policy_capabilities_input.rb +35 -0
  76. data/lib/inttegro/payment/payment.rb +8 -0
  77. data/lib/inttegro/payment_method/children_policy_payment_method_capabilities.rb +35 -0
  78. data/lib/inttegro/payment_method/children_policy_payment_methods_capabilities.rb +50 -0
  79. data/lib/inttegro/payment_method/operating_policy_payment_method_capabilities.rb +35 -0
  80. data/lib/inttegro/payment_method/operating_policy_payment_methods_capabilities.rb +50 -0
  81. data/lib/inttegro/payout/amount_limits.rb +37 -0
  82. data/lib/inttegro/payout/cancellation.rb +42 -0
  83. data/lib/inttegro/payout/cancellation_reason.rb +30 -0
  84. data/lib/inttegro/payout/children_policy_capabilities.rb +43 -0
  85. data/lib/inttegro/payout/limit_value.rb +28 -0
  86. data/lib/inttegro/payout/operating_policy_capabilities.rb +43 -0
  87. data/lib/inttegro/payout/operating_policy_capabilities_input.rb +43 -0
  88. data/lib/inttegro/payout/payout.rb +9 -0
  89. data/lib/inttegro/payout/settings_limits.rb +28 -0
  90. data/lib/inttegro/payout/settings_lookup.rb +8 -0
  91. data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
  92. data/lib/inttegro/payout/settings_mutation.rb +8 -0
  93. data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +4 -4
  94. data/lib/inttegro/product/line_item.rb +6 -3
  95. data/lib/inttegro/product/media.rb +8 -7
  96. data/lib/inttegro/product/update_request.rb +1 -1
  97. data/lib/inttegro/purchase_intent/merchant.rb +14 -19
  98. data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → purchase_intent/merchant_asset.rb} +14 -7
  99. data/lib/inttegro/purchase_intent/merchant_branding.rb +50 -0
  100. data/lib/inttegro/purchase_intent/merchant_color_scheme.rb +76 -0
  101. data/lib/inttegro/purchase_intent/merchant_profile.rb +42 -0
  102. data/lib/inttegro/purchase_intent/merchant_support.rb +34 -0
  103. data/lib/inttegro/purchase_intent/purchase_intent.rb +10 -2
  104. data/lib/inttegro/refund/line_item.rb +5 -3
  105. data/lib/inttegro/refund/payment_method_settlement.rb +4 -3
  106. data/lib/inttegro/refund/refund.rb +4 -3
  107. data/lib/inttegro/resources/apps.rb +12 -0
  108. data/lib/inttegro/resources/children_policies.rb +26 -0
  109. data/lib/inttegro/resources/operating_policies.rb +52 -0
  110. data/lib/inttegro/schedule/chime_request.rb +5 -3
  111. data/lib/inttegro/shared/children_policy.rb +91 -0
  112. data/lib/inttegro/shared/children_policy_capabilities.rb +44 -0
  113. data/lib/inttegro/shared/children_policy_response.rb +28 -0
  114. data/lib/inttegro/shared/create_operating_policy_request.rb +42 -0
  115. data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
  116. data/lib/inttegro/shared/lookup_children_policy_request.rb +22 -0
  117. data/lib/inttegro/shared/lookup_operating_policy_request.rb +27 -0
  118. data/lib/inttegro/shared/operating_policy.rb +98 -0
  119. data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
  120. data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
  121. data/lib/inttegro/shared/operating_policy_response.rb +28 -0
  122. data/lib/inttegro/shared/operating_policy_selection.rb +19 -0
  123. data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
  124. data/lib/inttegro/shared/operating_policy_source.rb +42 -0
  125. data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
  126. data/lib/inttegro/shared/policy_amount_range.rb +34 -0
  127. data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
  128. data/lib/inttegro/shared/policy_bt_aging_spec_public_id.rb +34 -0
  129. data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
  130. data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
  131. data/lib/inttegro/shared/policy_limits.rb +28 -0
  132. data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
  133. data/lib/inttegro/version.rb +1 -1
  134. data/rbi/inttegro/generated.rbi +29 -4
  135. metadata +79 -13
  136. data/lib/inttegro/app/relationship_policy.rb +0 -43
  137. data/lib/inttegro/checkout/amount_selection.rb +0 -84
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8c0508ade3212d4ccc84c3a2dea5923e18b78107ea89c32aec593e88e906d06
4
- data.tar.gz: 7b6397d7a6b11f25086ad29686b5b349d062aabcbce36c61a01d2dc99e995e61
3
+ metadata.gz: 66dea99faabd3138c2e7da0b9b4e69a6284b3ee08b93d794c74f2c98e50d9561
4
+ data.tar.gz: 0c87b4dc602513495eda111e6cdcc64b64663a567ba829754ef02c171b08c669
5
5
  SHA512:
6
- metadata.gz: f6c649339f31489b6094d742cd3ab8532be95f290034fbe6b0f38151d1b68ed93b5e15a23b7ee6dc0ad3702c608da9b93f2a1eb24211bb39bc7cef0164294add
7
- data.tar.gz: 986b30ca34a595267558bfd32b70a6be3ba73ef458167a9d54ba648d516b6b6af1f63bcb7939fcb6e7cf4c7b7f882f0e8b094065363cb2f144eaeab7777931e1
6
+ metadata.gz: 2afbad037692cd58701e69d6c24bd9953c9e4143e5c9d9375de4a89e64493c47a2d0a50aa9447bc08a4bc64466a321eb1ea5fc7ade8cff4d0383a36180c54a3a
7
+ data.tar.gz: a9ea9b1e88d7e4765ed12a5ad4ef11adc30ab0e355549a9d30d8cef6ed00842ea335caafcff91dd8c8a8d07de36700a6995caf4db6c332c2f5d5a3ad37d44184
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [11.1.0] - 2026-11-05
4
+
5
+ - Added typed private-beta children-policy lookup and operating-policy create,
6
+ lookup, and versioned update endpoints.
7
+ - Added typed operating-policy selection to application create and update,
8
+ together with gated operating-policy projections on application responses.
9
+
10
+ ## [11.0.0] - 2026-10-14
11
+
12
+ - **Breaking:** replaced the legacy flat payout minimum with typed
13
+ `limits.amount.min` and `limits.amount.max` values.
14
+ - **Breaking:** reshaped application placement relationships around a typed
15
+ parent identity.
16
+ - Added typed payment and payout capability lookup for the authenticated app.
17
+ - Added payment receipt data separately from invoice data.
18
+
3
19
  ## [10.0.0] - 2026-10-05
4
20
 
5
21
  - **Breaking:** replaced the payout status `invalid` with `failed`.
@@ -4,6 +4,8 @@
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 "capability_projection"
8
+ require_relative "operating_policy"
7
9
  require_relative "relationship"
8
10
  require_relative "secret_key"
9
11
 
@@ -46,6 +48,21 @@ module Inttegro
46
48
  # Required in the API payload. Wire name: `created_at`.
47
49
  # @return [Time]
48
50
  #
51
+ # @!attribute [r] capabilities
52
+ # Public capability states currently available to the application. Newly created applications
53
+ # can return an empty object until capabilities become available. New capability keys may
54
+ # appear over time.
55
+ #
56
+ # Required in the API payload. Wire name: `capabilities`.
57
+ # @return [Inttegro::Application::CapabilityProjection]
58
+ #
59
+ # @!attribute [r] operating_policy
60
+ # Immutable operating policy snapshot applied to the application. This field is returned only
61
+ # to `children_policy_v1` callers.
62
+ #
63
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
64
+ # @return [Inttegro::Application::OperatingPolicy, nil]
65
+ #
49
66
  # @!attribute [r] secret_key
50
67
  # Value of the `secret_key` field in the Inttegro API payload.
51
68
  #
@@ -53,7 +70,7 @@ module Inttegro
53
70
  # @return [Inttegro::Application::SecretKey, nil]
54
71
  #
55
72
  # @!attribute [r] relationship
56
- # Relationship receipt for the created child app.
73
+ # Identifies the created app's direct placement relationship.
57
74
  #
58
75
  # Optional in the API payload; omitted values default to `nil`. Wire name: `relationship`.
59
76
  # @return [Inttegro::Application::Relationship, nil]
@@ -63,6 +80,8 @@ module Inttegro
63
80
  const :alias, T.nilable(String), default: nil
64
81
  const :description, T.nilable(String), default: nil
65
82
  const :created_at, Time
83
+ const :capabilities, Inttegro::Application::CapabilityProjection
84
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
66
85
  const :secret_key, T.nilable(Inttegro::Application::SecretKey), default: nil
67
86
  const :relationship, T.nilable(Inttegro::Application::Relationship), default: nil
68
87
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ require_relative "capabilities_response_capabilities"
5
+
6
+ module Inttegro
7
+ class Application
8
+ # Payment and payout capabilities available to the authenticated app.
9
+ Capabilities = CapabilitiesResponseCapabilities
10
+ end
11
+ 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 "capabilities_response_capabilities"
8
+
9
+ module Inttegro
10
+ class Application
11
+ # Typed representation of the capabilities response 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] capabilities
20
+ # Value of the `capabilities` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `capabilities`.
23
+ # @return [Inttegro::Application::CapabilitiesResponseCapabilities]
24
+ class CapabilitiesResponse < T::Struct
25
+ const :capabilities, Inttegro::Application::CapabilitiesResponseCapabilities
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,37 @@
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 "enabled_capability"
8
+ require_relative "pending_review_capability"
9
+ require_relative "restricted_capability"
10
+
11
+ module Inttegro
12
+ class Application
13
+ # Typed representation of the capabilities response capabilities object in the Inttegro API.
14
+ #
15
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
17
+ # field names and serialized enum values.
18
+ #
19
+ # @api public
20
+ #
21
+ # @!attribute [r] payments
22
+ # Value of the `payments` field in the Inttegro API payload.
23
+ #
24
+ # Required in the API payload. Wire name: `payments`.
25
+ # @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability]
26
+ #
27
+ # @!attribute [r] payouts
28
+ # Value of the `payouts` field in the Inttegro API payload.
29
+ #
30
+ # Required in the API payload. Wire name: `payouts`.
31
+ # @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability]
32
+ class CapabilitiesResponseCapabilities < T::Struct
33
+ const :payments, T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability)
34
+ const :payouts, T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability)
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,39 @@
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 "enabled_capability"
8
+ require_relative "pending_review_capability"
9
+ require_relative "restricted_capability"
10
+
11
+ module Inttegro
12
+ class Application
13
+ # Public capability states currently available to the application. Newly created applications
14
+ # can return an empty object until capabilities become available. New capability keys may
15
+ # appear over time.
16
+ #
17
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
18
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
19
+ # field names and serialized enum values.
20
+ #
21
+ # @api public
22
+ #
23
+ # @!attribute [r] payments
24
+ # Value of the `payments` field in the Inttegro API payload.
25
+ #
26
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
27
+ # @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, nil]
28
+ #
29
+ # @!attribute [r] payouts
30
+ # Value of the `payouts` field in the Inttegro API payload.
31
+ #
32
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
33
+ # @return [Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability, nil]
34
+ class CapabilityProjection < T::Struct
35
+ const :payments, T.nilable(T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability)), default: nil
36
+ const :payouts, T.nilable(T.any(Inttegro::Application::EnabledCapability, Inttegro::Application::RestrictedCapability, Inttegro::Application::PendingReviewCapability)), default: nil
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,41 @@
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
+ class Application
10
+ # Typed representation of the capability requirement object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] code
19
+ # Stable public identifier for the requirement.
20
+ #
21
+ # Required in the API payload. Wire name: `code`.
22
+ # @return [String]
23
+ #
24
+ # @!attribute [r] description
25
+ # Public explanation of what must be completed.
26
+ #
27
+ # Required in the API payload. Wire name: `description`.
28
+ # @return [String]
29
+ #
30
+ # @!attribute [r] due_at
31
+ # Requirement deadline, or null when no deadline applies.
32
+ #
33
+ # Required in the API payload. Wire name: `due_at`.
34
+ # @return [Time, nil]
35
+ class CapabilityRequirement < T::Struct
36
+ const :code, String
37
+ const :description, String
38
+ const :due_at, T.nilable(Time)
39
+ end
40
+ end
41
+ 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 "capability_requirement"
8
+
9
+ module Inttegro
10
+ class Application
11
+ # Typed representation of the capability requirements 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] currently_due
20
+ # Value of the `currently_due` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `currently_due`.
23
+ # @return [Array<Inttegro::Application::CapabilityRequirement>]
24
+ class CapabilityRequirements < T::Struct
25
+ const :currently_due, T::Array[Inttegro::Application::CapabilityRequirement]
26
+ end
27
+ end
28
+ end
@@ -4,6 +4,8 @@
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/inline_operating_policy_selection"
8
+ require_relative "../shared/operating_policy_selection_by_id"
7
9
  require_relative "create_request_relationship_policy"
8
10
 
9
11
  module Inttegro
@@ -47,6 +49,13 @@ module Inttegro
47
49
  # Optional in the API payload; omitted values default to `nil`. Wire name: `placement_parent_application_id`.
48
50
  # @return [String, nil]
49
51
  #
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.
55
+ #
56
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
57
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
58
+ #
50
59
  # @!attribute [r] relationship_policy
51
60
  # Optional direct-placement relationship policy. Omitted values default to parent management
52
61
  # and child credentials.
@@ -59,6 +68,7 @@ module Inttegro
59
68
  const :description, T.nilable(String), default: nil
60
69
  const :legal_entity_type, T.nilable(String), default: nil
61
70
  const :placement_parent_application_id, T.nilable(String), default: nil
71
+ const :operating_policy, T.nilable(T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection)), default: nil
62
72
  const :relationship_policy, T.nilable(Inttegro::Application::CreateRequestRelationshipPolicy), default: nil
63
73
  end
64
74
  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
+ require_relative "enabled_capability_status"
8
+
9
+ module Inttegro
10
+ class Application
11
+ # Typed representation of the enabled capability 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] status
20
+ # Value of the `status` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `status`.
23
+ # @return [Inttegro::Application::EnabledCapabilityStatus]
24
+ #
25
+ # @!attribute [r] status_changed_at
26
+ # Value of the `status_changed_at` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `status_changed_at`.
29
+ # @return [Time]
30
+ class EnabledCapability < T::Struct
31
+ const :status, Inttegro::Application::EnabledCapabilityStatus
32
+ const :status_changed_at, Time
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,25 @@
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
+ class Application
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Application::EnabledCapabilityStatus.
12
+ #
13
+ # Use the constants below when constructing a request. `#serialize` returns the documented
14
+ # string wire value received from or sent to the API.
15
+ #
16
+ # @api public
17
+ class EnabledCapabilityStatus < T::Enum
18
+ enums do
19
+ # Serialized wire value: `enabled`.
20
+ # @return [Inttegro::Application::EnabledCapabilityStatus]
21
+ ENABLED = new("enabled")
22
+ end
23
+ end
24
+ end
25
+ end
@@ -4,6 +4,9 @@
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 "capability_projection"
8
+ require_relative "looked_up_relationship"
9
+ require_relative "operating_policy"
7
10
 
8
11
  module Inttegro
9
12
  class Application
@@ -56,6 +59,27 @@ module Inttegro
56
59
  #
57
60
  # Optional in the API payload; omitted values default to `nil`. Wire name: `archived_at`.
58
61
  # @return [Time, nil]
62
+ #
63
+ # @!attribute [r] capabilities
64
+ # Public capability states currently available to the application. Newly created applications
65
+ # can return an empty object until capabilities become available. New capability keys may
66
+ # appear over time.
67
+ #
68
+ # Required in the API payload. Wire name: `capabilities`.
69
+ # @return [Inttegro::Application::CapabilityProjection]
70
+ #
71
+ # @!attribute [r] operating_policy
72
+ # Immutable operating policy snapshot applied to the application. This field is returned only
73
+ # to `children_policy_v1` callers.
74
+ #
75
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
76
+ # @return [Inttegro::Application::OperatingPolicy, nil]
77
+ #
78
+ # @!attribute [r] relationship
79
+ # Identifies the authenticated app's direct placement relationship. Omitted for root apps.
80
+ #
81
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `relationship`.
82
+ # @return [Inttegro::Application::LookedUpRelationship, nil]
59
83
  class LookedUp < T::Struct
60
84
  const :id, String
61
85
  const :name, String
@@ -64,6 +88,9 @@ module Inttegro
64
88
  const :created_at, Time
65
89
  const :updated_at, T.nilable(Time), default: nil
66
90
  const :archived_at, T.nilable(Time), default: nil
91
+ const :capabilities, Inttegro::Application::CapabilityProjection
92
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
93
+ const :relationship, T.nilable(Inttegro::Application::LookedUpRelationship), default: nil
67
94
  end
68
95
  end
69
96
  end
@@ -0,0 +1,58 @@
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 "looked_up_relationship_parent"
8
+ require_relative "relationship_kind"
9
+ require_relative "relationship_status"
10
+
11
+ module Inttegro
12
+ class Application
13
+ # Identifies the authenticated app's direct placement relationship. Omitted for root apps.
14
+ #
15
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
17
+ # field names and serialized enum values.
18
+ #
19
+ # @api public
20
+ #
21
+ # @!attribute [r] id
22
+ # Value of the `id` field in the Inttegro API payload.
23
+ #
24
+ # Required in the API payload. Wire name: `id`.
25
+ # @return [String]
26
+ #
27
+ # @!attribute [r] kind
28
+ # Value of the `kind` field in the Inttegro API payload.
29
+ #
30
+ # Required in the API payload. Wire name: `kind`.
31
+ # @return [Inttegro::Application::RelationshipKind]
32
+ #
33
+ # @!attribute [r] parent
34
+ # Application that directly contains the authenticated app.
35
+ #
36
+ # Required in the API payload. Wire name: `parent`.
37
+ # @return [Inttegro::Application::LookedUpRelationshipParent]
38
+ #
39
+ # @!attribute [r] status
40
+ # Value of the `status` field in the Inttegro API payload.
41
+ #
42
+ # Required in the API payload. Wire name: `status`.
43
+ # @return [Inttegro::Application::RelationshipStatus]
44
+ #
45
+ # @!attribute [r] created_at
46
+ # Value of the `created_at` field in the Inttegro API payload.
47
+ #
48
+ # Required in the API payload. Wire name: `created_at`.
49
+ # @return [Time]
50
+ class LookedUpRelationship < T::Struct
51
+ const :id, String
52
+ const :kind, Inttegro::Application::RelationshipKind
53
+ const :parent, Inttegro::Application::LookedUpRelationshipParent
54
+ const :status, Inttegro::Application::RelationshipStatus
55
+ const :created_at, Time
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,41 @@
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
+ class Application
10
+ # Application that directly contains the authenticated app.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] id
19
+ # Value of the `id` field in the Inttegro API payload.
20
+ #
21
+ # Required in the API payload. Wire name: `id`.
22
+ # @return [String]
23
+ #
24
+ # @!attribute [r] name
25
+ # Value of the `name` field in the Inttegro API payload.
26
+ #
27
+ # Required in the API payload. Wire name: `name`.
28
+ # @return [String]
29
+ #
30
+ # @!attribute [r] alias
31
+ # Value of the `alias` field in the Inttegro API payload.
32
+ #
33
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `alias`.
34
+ # @return [String, nil]
35
+ class LookedUpRelationshipParent < T::Struct
36
+ const :id, String
37
+ const :name, String
38
+ const :alias, T.nilable(String), default: nil
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,21 @@
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
+ class Application
10
+ # Typed representation of the lookup capabilities request object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ class LookupCapabilitiesRequest < T::Struct
18
+ # This object intentionally has no fields.
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,37 @@
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 "../shared/operating_policy_capabilities"
8
+ require_relative "../shared/operating_policy_source"
9
+
10
+ module Inttegro
11
+ class Application
12
+ # Immutable operating policy snapshot applied to the application. This field is returned only
13
+ # to `children_policy_v1` callers.
14
+ #
15
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
17
+ # field names and serialized enum values.
18
+ #
19
+ # @api public
20
+ #
21
+ # @!attribute [r] capabilities
22
+ # Value of the `capabilities` field in the Inttegro API payload.
23
+ #
24
+ # Required in the API payload. Wire name: `capabilities`.
25
+ # @return [Inttegro::Shared::OperatingPolicyCapabilities]
26
+ #
27
+ # @!attribute [r] source
28
+ # Value of the `source` field in the Inttegro API payload.
29
+ #
30
+ # Required in the API payload. Wire name: `source`.
31
+ # @return [Inttegro::Shared::OperatingPolicySource]
32
+ class OperatingPolicy < T::Struct
33
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilities
34
+ const :source, Inttegro::Shared::OperatingPolicySource
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,43 @@
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 "pending_review_capability_status"
8
+ require_relative "pending_review_capability_status_reason"
9
+
10
+ module Inttegro
11
+ class Application
12
+ # Typed representation of the pending review capability object in the Inttegro 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] status
21
+ # Value of the `status` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `status`.
24
+ # @return [Inttegro::Application::PendingReviewCapabilityStatus]
25
+ #
26
+ # @!attribute [r] status_reason
27
+ # Value of the `status_reason` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `status_reason`.
30
+ # @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
31
+ #
32
+ # @!attribute [r] status_changed_at
33
+ # Value of the `status_changed_at` field in the Inttegro API payload.
34
+ #
35
+ # Required in the API payload. Wire name: `status_changed_at`.
36
+ # @return [Time]
37
+ class PendingReviewCapability < T::Struct
38
+ const :status, Inttegro::Application::PendingReviewCapabilityStatus
39
+ const :status_reason, Inttegro::Application::PendingReviewCapabilityStatusReason
40
+ const :status_changed_at, Time
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,25 @@
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
+ class Application
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Application::PendingReviewCapabilityStatus.
12
+ #
13
+ # Use the constants below when constructing a request. `#serialize` returns the documented
14
+ # string wire value received from or sent to the API.
15
+ #
16
+ # @api public
17
+ class PendingReviewCapabilityStatus < T::Enum
18
+ enums do
19
+ # Serialized wire value: `pending_review`.
20
+ # @return [Inttegro::Application::PendingReviewCapabilityStatus]
21
+ PENDING_REVIEW = new("pending_review")
22
+ end
23
+ end
24
+ end
25
+ end