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
@@ -0,0 +1,98 @@
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_capabilities"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the operating policy 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] id
20
+ # Value of the `id` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `id`.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [r] version
26
+ # Value of the `version` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `version`.
29
+ # @return [Integer]
30
+ #
31
+ # @!attribute [r] active_version
32
+ # Value of the `active_version` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `active_version`.
35
+ # @return [Integer]
36
+ #
37
+ # @!attribute [r] name
38
+ # Value of the `name` field in the Inttegro API payload.
39
+ #
40
+ # Required in the API payload. Wire name: `name`.
41
+ # @return [String]
42
+ #
43
+ # @!attribute [r] description
44
+ # Value of the `description` field in the Inttegro API payload.
45
+ #
46
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
47
+ # @return [String, nil]
48
+ #
49
+ # @!attribute [r] capabilities
50
+ # Value of the `capabilities` field in the Inttegro API payload.
51
+ #
52
+ # Required in the API payload. Wire name: `capabilities`.
53
+ # @return [Inttegro::Shared::OperatingPolicyCapabilities]
54
+ #
55
+ # @!attribute [r] children_policy_id
56
+ # Value of the `children_policy_id` field in the Inttegro API payload.
57
+ #
58
+ # Required in the API payload. Wire name: `children_policy_id`.
59
+ # @return [String]
60
+ #
61
+ # @!attribute [r] children_policy_version
62
+ # Value of the `children_policy_version` field in the Inttegro API payload.
63
+ #
64
+ # Required in the API payload. Wire name: `children_policy_version`.
65
+ # @return [Integer]
66
+ #
67
+ # @!attribute [r] created_at
68
+ # Value of the `created_at` field in the Inttegro API payload.
69
+ #
70
+ # Required in the API payload. Wire name: `created_at`.
71
+ # @return [Time]
72
+ #
73
+ # @!attribute [r] updated_at
74
+ # Value of the `updated_at` field in the Inttegro API payload.
75
+ #
76
+ # Required in the API payload. Wire name: `updated_at`.
77
+ # @return [Time]
78
+ #
79
+ # @!attribute [r] version_created_at
80
+ # Value of the `version_created_at` field in the Inttegro API payload.
81
+ #
82
+ # Required in the API payload. Wire name: `version_created_at`.
83
+ # @return [Time]
84
+ class OperatingPolicy < T::Struct
85
+ const :id, String
86
+ const :version, Integer
87
+ const :active_version, Integer
88
+ const :name, String
89
+ const :description, T.nilable(String), default: nil
90
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilities
91
+ const :children_policy_id, String
92
+ const :children_policy_version, Integer
93
+ const :created_at, Time
94
+ const :updated_at, Time
95
+ const :version_created_at, Time
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,44 @@
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 "../payment/operating_policy_capabilities"
8
+ require_relative "../payment_method/operating_policy_payment_methods_capabilities"
9
+ require_relative "../payout/operating_policy_capabilities"
10
+
11
+ module Inttegro
12
+ module Shared
13
+ # Typed representation of the operating policy 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
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
25
+ # @return [Inttegro::Payment::OperatingPolicyCapabilities, nil]
26
+ #
27
+ # @!attribute [r] payouts
28
+ # Value of the `payouts` field in the Inttegro API payload.
29
+ #
30
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
31
+ # @return [Inttegro::Payout::OperatingPolicyCapabilities, nil]
32
+ #
33
+ # @!attribute [r] payment_methods
34
+ # Value of the `payment_methods` field in the Inttegro API payload.
35
+ #
36
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payment_methods`.
37
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities, nil]
38
+ class OperatingPolicyCapabilities < T::Struct
39
+ const :payments, T.nilable(Inttegro::Payment::OperatingPolicyCapabilities), default: nil
40
+ const :payouts, T.nilable(Inttegro::Payout::OperatingPolicyCapabilities), default: nil
41
+ const :payment_methods, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities), default: nil
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
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 "../payment/operating_policy_capabilities_input"
8
+ require_relative "../payment_method/operating_policy_payment_methods_capabilities"
9
+ require_relative "../payout/operating_policy_capabilities_input"
10
+
11
+ module Inttegro
12
+ module Shared
13
+ # Typed representation of the operating policy capabilities input 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
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
25
+ # @return [Inttegro::Payment::OperatingPolicyCapabilitiesInput, nil]
26
+ #
27
+ # @!attribute [r] payouts
28
+ # Value of the `payouts` field in the Inttegro API payload.
29
+ #
30
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
31
+ # @return [Inttegro::Payout::OperatingPolicyCapabilitiesInput, nil]
32
+ #
33
+ # @!attribute [r] payment_methods
34
+ # Value of the `payment_methods` field in the Inttegro API payload.
35
+ #
36
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payment_methods`.
37
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities, nil]
38
+ class OperatingPolicyCapabilitiesInput < T::Struct
39
+ const :payments, T.nilable(Inttegro::Payment::OperatingPolicyCapabilitiesInput), default: nil
40
+ const :payouts, T.nilable(Inttegro::Payout::OperatingPolicyCapabilitiesInput), default: nil
41
+ const :payment_methods, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities), default: nil
42
+ end
43
+ end
44
+ 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 "operating_policy"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the operating policy 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] operating_policy
20
+ # Value of the `operating_policy` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `operating_policy`.
23
+ # @return [Inttegro::Shared::OperatingPolicy]
24
+ class OperatingPolicyResponse < T::Struct
25
+ const :operating_policy, Inttegro::Shared::OperatingPolicy
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,19 @@
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 "inline_operating_policy_selection"
8
+ require_relative "operating_policy_selection_by_id"
9
+
10
+ module Inttegro
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.
14
+ #
15
+ # @api public
16
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection]
17
+ OperatingPolicySelection = T.type_alias { T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection) }
18
+ end
19
+ end
@@ -0,0 +1,27 @@
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 operating policy selection by id 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] id
19
+ # Active operating policy owned by the placement parent.
20
+ #
21
+ # Required in the API payload. Wire name: `id`.
22
+ # @return [String]
23
+ class OperatingPolicySelectionByID < T::Struct
24
+ const :id, String
25
+ end
26
+ end
27
+ 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
+ require_relative "operating_policy_source_type"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the operating policy source 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] type
20
+ # Value of the `type` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `type`.
23
+ # @return [Inttegro::Shared::OperatingPolicySourceType]
24
+ #
25
+ # @!attribute [r] id
26
+ # Template identifier when `type` is `template`.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
29
+ # @return [String, nil]
30
+ #
31
+ # @!attribute [r] version
32
+ # Template version when `type` is `template`.
33
+ #
34
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
35
+ # @return [Integer, nil]
36
+ class OperatingPolicySource < T::Struct
37
+ const :type, Inttegro::Shared::OperatingPolicySourceType
38
+ const :id, T.nilable(String), default: nil
39
+ const :version, T.nilable(Integer), default: nil
40
+ end
41
+ end
42
+ 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
+
8
+ module Inttegro
9
+ module Shared
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Shared::OperatingPolicySourceType.
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 OperatingPolicySourceType < T::Enum
18
+ enums do
19
+ # Serialized wire value: `inline`.
20
+ # @return [Inttegro::Shared::OperatingPolicySourceType]
21
+ INLINE = new("inline")
22
+ # Serialized wire value: `template`.
23
+ # @return [Inttegro::Shared::OperatingPolicySourceType]
24
+ TEMPLATE = new("template")
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,34 @@
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 policy amount range 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] min
19
+ # Inclusive minimum amount in minor currency units.
20
+ #
21
+ # Required in the API payload. Wire name: `min`.
22
+ # @return [Integer]
23
+ #
24
+ # @!attribute [r] max
25
+ # Inclusive maximum amount in minor currency units.
26
+ #
27
+ # Required in the API payload. Wire name: `max`.
28
+ # @return [Integer]
29
+ class PolicyAmountRange < T::Struct
30
+ const :min, Integer
31
+ const :max, Integer
32
+ end
33
+ end
34
+ 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 "policy_bt_aging_spec_public_id"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the policy bt aging spec 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] public_id
20
+ # Value of the `public_id` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `public_id`.
23
+ # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
24
+ #
25
+ # @!attribute [r] t_plus
26
+ # Platform-owned whole-hour aging duration.
27
+ #
28
+ # Required in the API payload. Wire name: `t_plus`.
29
+ # @return [String]
30
+ class PolicyBTAgingSpec < T::Struct
31
+ const :public_id, Inttegro::Shared::PolicyBTAgingSpecPublicId
32
+ const :t_plus, String
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,34 @@
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
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Shared::PolicyBTAgingSpecPublicId.
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 PolicyBTAgingSpecPublicId < T::Enum
18
+ enums do
19
+ # Serialized wire value: `bt_aging_spec_immediate`.
20
+ # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
21
+ BT_AGING_SPEC_IMMEDIATE = new("bt_aging_spec_immediate")
22
+ # Serialized wire value: `bt_aging_spec_24_hourly`.
23
+ # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
24
+ BT_AGING_SPEC_24_HOURLY = new("bt_aging_spec_24_hourly")
25
+ # Serialized wire value: `bt_aging_spec_48_hourly`.
26
+ # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
27
+ BT_AGING_SPEC_48_HOURLY = new("bt_aging_spec_48_hourly")
28
+ # Serialized wire value: `bt_aging_spec_168_hourly`.
29
+ # @return [Inttegro::Shared::PolicyBTAgingSpecPublicId]
30
+ BT_AGING_SPEC_168_HOURLY = new("bt_aging_spec_168_hourly")
31
+ end
32
+ end
33
+ end
34
+ 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 "policy_bt_aging_spec_reference_id"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the policy bt aging spec reference 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] id
20
+ # Public aging-specification identifier. The platform determines `t_plus`.
21
+ #
22
+ # Required in the API payload. Wire name: `id`.
23
+ # @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
24
+ class PolicyBTAgingSpecReference < T::Struct
25
+ const :id, Inttegro::Shared::PolicyBTAgingSpecReferenceId
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,33 @@
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
+ # Public aging-specification identifier. The platform determines `t_plus`.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class PolicyBTAgingSpecReferenceId < T::Enum
17
+ enums do
18
+ # Serialized wire value: `bt_aging_spec_immediate`.
19
+ # @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
20
+ BT_AGING_SPEC_IMMEDIATE = new("bt_aging_spec_immediate")
21
+ # Serialized wire value: `bt_aging_spec_24_hourly`.
22
+ # @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
23
+ BT_AGING_SPEC_24_HOURLY = new("bt_aging_spec_24_hourly")
24
+ # Serialized wire value: `bt_aging_spec_48_hourly`.
25
+ # @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
26
+ BT_AGING_SPEC_48_HOURLY = new("bt_aging_spec_48_hourly")
27
+ # Serialized wire value: `bt_aging_spec_168_hourly`.
28
+ # @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
29
+ BT_AGING_SPEC_168_HOURLY = new("bt_aging_spec_168_hourly")
30
+ end
31
+ end
32
+ end
33
+ 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 "policy_amount_range"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the policy limits 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] amount
20
+ # Value of the `amount` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `amount`.
23
+ # @return [Inttegro::Shared::PolicyAmountRange]
24
+ class PolicyLimits < T::Struct
25
+ const :amount, Inttegro::Shared::PolicyAmountRange
26
+ end
27
+ end
28
+ 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
+ require_relative "operating_policy_capabilities_input"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the update operating policy request 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] 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] expected_version
26
+ # Value of the `expected_version` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `expected_version`.
29
+ # @return [Integer]
30
+ #
31
+ # @!attribute [r] name
32
+ # Value of the `name` field in the Inttegro API payload.
33
+ #
34
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `name`.
35
+ # @return [String, nil]
36
+ #
37
+ # @!attribute [r] description
38
+ # Value of the `description` field in the Inttegro API payload.
39
+ #
40
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
41
+ # @return [String, nil]
42
+ #
43
+ # @!attribute [r] capabilities
44
+ # Value of the `capabilities` field in the Inttegro API payload.
45
+ #
46
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `capabilities`.
47
+ # @return [Inttegro::Shared::OperatingPolicyCapabilitiesInput, nil]
48
+ class UpdateOperatingPolicyRequest < T::Struct
49
+ const :operating_policy_id, String
50
+ const :expected_version, Integer
51
+ const :name, T.nilable(String), default: nil
52
+ const :description, T.nilable(String), default: nil
53
+ const :capabilities, T.nilable(Inttegro::Shared::OperatingPolicyCapabilitiesInput), default: nil
54
+ end
55
+ end
56
+ end
@@ -2,5 +2,5 @@
2
2
  # typed: strict
3
3
 
4
4
  module Inttegro
5
- VERSION = "10.0.0"
5
+ VERSION = "11.1.0"
6
6
  end
@@ -7,6 +7,9 @@ module Inttegro
7
7
  sig { params(http: Inttegro::HTTPClient).void }
8
8
  def initialize(http); end
9
9
 
10
+ sig { returns(Inttegro::Application::Capabilities) }
11
+ def capabilities(); end
12
+
10
13
  sig { params(payload: T.any(Inttegro::Application::CreateRequest, Inttegro::Types::Payload)).returns(Inttegro::Application) }
11
14
  def create(payload); end
12
15
 
@@ -47,6 +50,14 @@ module Inttegro
47
50
  def lookup(broadcast_id:); end
48
51
  end
49
52
 
53
+ class ChildrenPolicies
54
+ sig { params(http: Inttegro::HTTPClient).void }
55
+ def initialize(http); end
56
+
57
+ sig { returns(Inttegro::Shared::ChildrenPolicy) }
58
+ def lookup(); end
59
+ end
60
+
50
61
  class Chimes
51
62
  sig { params(http: Inttegro::HTTPClient).void }
52
63
  def initialize(http); end
@@ -144,10 +155,10 @@ module Inttegro
144
155
  sig { params(http: Inttegro::HTTPClient).void }
145
156
  def initialize(http); end
146
157
 
147
- sig { params(payload: T.any(Inttegro::FinancialAccount::CreateRequest, Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
158
+ sig { params(payload: T.any(T.any(Inttegro::FinancialAccount::WalletRequest, Inttegro::FinancialAccount::BankRequest, Inttegro::FinancialAccount::DoshRequest), Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
148
159
  def connect(payload); end
149
160
 
150
- sig { params(payload: T.any(Inttegro::FinancialAccount::CreateRequest, Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
161
+ sig { params(payload: T.any(T.any(Inttegro::FinancialAccount::WalletRequest, Inttegro::FinancialAccount::BankRequest, Inttegro::FinancialAccount::DoshRequest), Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
151
162
  def create(payload); end
152
163
 
153
164
  sig { params(account_id: String).returns(Inttegro::FinancialAccount) }
@@ -216,7 +227,7 @@ module Inttegro
216
227
  sig { params(template_id: String, idempotency_key: T.nilable(String)).returns(Inttegro::MessageTemplate) }
217
228
  def archive(template_id:, idempotency_key: nil); end
218
229
 
219
- sig { params(payload: T.any(Inttegro::MessageTemplate::CreateRequest, Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::MessageTemplate) }
230
+ sig { params(payload: T.any(T.any(Inttegro::MessageTemplate::CreateSMSRequest, Inttegro::MessageTemplate::CreateEmailRequest), Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::MessageTemplate) }
220
231
  def create(payload, idempotency_key: nil); end
221
232
 
222
233
  sig { params(template_id: String).returns(Inttegro::MessageTemplate) }
@@ -240,6 +251,20 @@ module Inttegro
240
251
  def idempotency_headers(idempotency_key); end
241
252
  end
242
253
 
254
+ class OperatingPolicies
255
+ sig { params(http: Inttegro::HTTPClient).void }
256
+ def initialize(http); end
257
+
258
+ sig { params(payload: T.any(Inttegro::Shared::CreateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
259
+ def create(payload); end
260
+
261
+ sig { params(operating_policy_id: String).returns(Inttegro::Shared::OperatingPolicy) }
262
+ def lookup(operating_policy_id); end
263
+
264
+ sig { params(payload: T.any(Inttegro::Shared::UpdateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
265
+ def update(payload); end
266
+ end
267
+
243
268
  class Orders
244
269
  sig { params(http: Inttegro::HTTPClient).void }
245
270
  def initialize(http); end
@@ -529,7 +554,7 @@ module Inttegro
529
554
  sig { params(payload: T.nilable(T.any(Inttegro::UploadRequest::PageRequest, Inttegro::Types::Payload))).returns(Inttegro::UploadRequest::Page) }
530
555
  def page(payload = nil); end
531
556
 
532
- sig { params(payload: T.any(Inttegro::UploadRequest::ReviewAttemptRequest, Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::UploadRequest::Details) }
557
+ sig { params(payload: T.any(T.any(Inttegro::UploadRequest::ReviewAttemptByIDRequest, Inttegro::UploadRequest::ReviewAttemptByOrdinalRequest), Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::UploadRequest::Details) }
533
558
  def review(payload, idempotency_key: nil); end
534
559
 
535
560
  private