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,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 "merchant_support"
8
+
9
+ module Inttegro
10
+ class PurchaseIntent
11
+ # Typed representation of the merchant profile 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] name
20
+ # Current public application alias, falling back to its current application name
21
+ #
22
+ # Required in the API payload. Wire name: `name`.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [r] support
26
+ # Value of the `support` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `support`.
29
+ # @return [Inttegro::PurchaseIntent::MerchantSupport, nil]
30
+ #
31
+ # @!attribute [r] website_url
32
+ # Public merchant website URL
33
+ #
34
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `website_url`.
35
+ # @return [String, nil]
36
+ class MerchantProfile < T::Struct
37
+ const :name, String
38
+ const :support, T.nilable(Inttegro::PurchaseIntent::MerchantSupport), default: nil
39
+ const :website_url, T.nilable(String), default: nil
40
+ end
41
+ end
42
+ 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
+ class PurchaseIntent
10
+ # Typed representation of the merchant support 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] email
19
+ # Public merchant support email address
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `email`.
22
+ # @return [String, nil]
23
+ #
24
+ # @!attribute [r] phone
25
+ # Public merchant support phone number
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `phone`.
28
+ # @return [String, nil]
29
+ class MerchantSupport < T::Struct
30
+ const :email, T.nilable(String), default: nil
31
+ const :phone, T.nilable(String), default: nil
32
+ end
33
+ end
34
+ end
@@ -28,6 +28,13 @@ module Inttegro
28
28
  # Required in the API payload. Wire name: `allow_variants`.
29
29
  # @return [Boolean]
30
30
  #
31
+ # @!attribute [r] application_id
32
+ # Application that owns the purchase intent. This is routing metadata, not merchant
33
+ # presentation.
34
+ #
35
+ # Required in the API payload. Wire name: `application_id`.
36
+ # @return [String]
37
+ #
31
38
  # @!attribute [r] created_at
32
39
  # Creation timestamp
33
40
  #
@@ -54,8 +61,8 @@ module Inttegro
54
61
  # @return [Time, nil]
55
62
  #
56
63
  # @!attribute [r] merchant
57
- # Merchant identity captured for the hosted checkout. Individual fields are omitted when
58
- # unavailable.
64
+ # Current public merchant presentation resolved from the purchase intent's application. It is
65
+ # hydrated at lookup time and is not stored on the purchase intent.
59
66
  #
60
67
  # Optional in the API payload; omitted values default to `nil`. Wire name: `merchant`.
61
68
  # @return [Inttegro::PurchaseIntent::Merchant, nil]
@@ -111,6 +118,7 @@ module Inttegro
111
118
  # @return [Inttegro::PurchaseIntent::VariantSet, nil]
112
119
  class PurchaseIntent
113
120
  const :allow_variants, T::Boolean
121
+ const :application_id, String
114
122
  const :created_at, Time
115
123
  const :expires_at, T.nilable(Time), default: nil
116
124
  const :id, String
@@ -5,7 +5,9 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "../money/amount"
8
- require_relative "order_line_item"
8
+ require_relative "order_fee_line_item"
9
+ require_relative "order_product_line_item"
10
+ require_relative "order_shipping_line_item"
9
11
  require_relative "reason"
10
12
 
11
13
  module Inttegro
@@ -36,7 +38,7 @@ module Inttegro
36
38
  # cannot be resolved.
37
39
  #
38
40
  # Optional in the API payload; omitted values default to `nil`. Wire name: `order_line_item`.
39
- # @return [Inttegro::Refund::OrderLineItem, nil]
41
+ # @return [Inttegro::Refund::OrderProductLineItem, Inttegro::Refund::OrderFeeLineItem, Inttegro::Refund::OrderShippingLineItem, nil]
40
42
  #
41
43
  # @!attribute [r] original_amount_paid
42
44
  # Value of the `original_amount_paid` field in the Inttegro API payload.
@@ -64,7 +66,7 @@ module Inttegro
64
66
  class LineItem < T::Struct
65
67
  const :id, String
66
68
  const :order_line_item_id, String
67
- const :order_line_item, T.nilable(Inttegro::Refund::OrderLineItem), default: nil
69
+ const :order_line_item, T.nilable(T.any(Inttegro::Refund::OrderProductLineItem, Inttegro::Refund::OrderFeeLineItem, Inttegro::Refund::OrderShippingLineItem)), default: nil
68
70
  const :original_amount_paid, Inttegro::Money::Amount
69
71
  const :reason, T.nilable(Inttegro::Refund::Reason), default: nil
70
72
  const :reason_details, T.nilable(String), default: nil
@@ -5,7 +5,8 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "payment_method_settlement_type"
8
- require_relative "settlement_payment_method"
8
+ require_relative "settlement_bank_account_payment_method"
9
+ require_relative "settlement_mobile_money_payment_method"
9
10
 
10
11
  module Inttegro
11
12
  class Refund
@@ -22,7 +23,7 @@ module Inttegro
22
23
  # management-only payment-method data is never included.
23
24
  #
24
25
  # Required in the API payload. Wire name: `payment_method`.
25
- # @return [Inttegro::Refund::SettlementPaymentMethod]
26
+ # @return [Inttegro::Refund::SettlementMobileMoneyPaymentMethod, Inttegro::Refund::SettlementBankAccountPaymentMethod]
26
27
  #
27
28
  # @!attribute [r] type
28
29
  # The refund returns to the original payment method used for the order.
@@ -30,7 +31,7 @@ module Inttegro
30
31
  # Required in the API payload. Wire name: `type`.
31
32
  # @return [Inttegro::Refund::PaymentMethodSettlementType]
32
33
  class PaymentMethodSettlement < T::Struct
33
- const :payment_method, Inttegro::Refund::SettlementPaymentMethod
34
+ const :payment_method, T.any(Inttegro::Refund::SettlementMobileMoneyPaymentMethod, Inttegro::Refund::SettlementBankAccountPaymentMethod)
34
35
  const :type, Inttegro::Refund::PaymentMethodSettlementType
35
36
 
36
37
  extend T::Sig
@@ -8,8 +8,9 @@ require_relative "../custom_data"
8
8
  require_relative "../money/amount"
9
9
  require_relative "failure"
10
10
  require_relative "line_item"
11
+ require_relative "offline_settlement"
12
+ require_relative "payment_method_settlement"
11
13
  require_relative "reason"
12
- require_relative "settlement"
13
14
  require_relative "status"
14
15
 
15
16
  module Inttegro
@@ -112,7 +113,7 @@ module Inttegro
112
113
  # original payment method; `offline` records settlement for an order paid outside Inttegro.
113
114
  #
114
115
  # Required in the API payload. Wire name: `settlement`.
115
- # @return [Inttegro::Refund::Settlement]
116
+ # @return [Inttegro::Refund::OfflineSettlement, Inttegro::Refund::PaymentMethodSettlement]
116
117
  #
117
118
  # @!attribute [r] status
118
119
  # Value of the `status` field in the Inttegro API payload.
@@ -146,7 +147,7 @@ module Inttegro
146
147
  const :reason, Inttegro::Refund::Reason
147
148
  const :reason_details, T.nilable(String), default: nil
148
149
  const :reference, T.nilable(String), default: nil
149
- const :settlement, Inttegro::Refund::Settlement
150
+ const :settlement, T.any(Inttegro::Refund::OfflineSettlement, Inttegro::Refund::PaymentMethodSettlement)
150
151
  const :status, Inttegro::Refund::Status
151
152
  const :succeeded_at, T.nilable(Time), default: nil
152
153
  const :total, Inttegro::Money::Amount
@@ -31,6 +31,18 @@ module Inttegro
31
31
  @http.post_resource("/apps/lookup", Inttegro::Application, :app, {})
32
32
  end
33
33
 
34
+ # Retrieve the authenticated application's payment and payout capabilities.
35
+ #
36
+ # @return [Inttegro::Application::Capabilities] current capability states
37
+ def capabilities
38
+ @http.post_resource(
39
+ "/apps/capabilities",
40
+ Inttegro::Application::Capabilities,
41
+ :capabilities,
42
+ {}
43
+ )
44
+ end
45
+
34
46
  # Update mutable fields on the authenticated application.
35
47
  #
36
48
  # @param payload [Hash, Inttegro::Application::UpdateRequest] fields to change
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ module Inttegro
5
+ module Resources
6
+ # Read access to the authenticated application's active children policy.
7
+ class ChildrenPolicies
8
+ extend T::Sig
9
+
10
+ sig { params(http: Inttegro::HTTPClient).void }
11
+ def initialize(http)
12
+ @http = T.let(http, Inttegro::HTTPClient)
13
+ end
14
+
15
+ sig { returns(Inttegro::Shared::ChildrenPolicy) }
16
+ def lookup
17
+ @http.post_resource(
18
+ "/children_policies/lookup",
19
+ Inttegro::Shared::ChildrenPolicy,
20
+ :children_policy,
21
+ {}
22
+ )
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ module Inttegro
5
+ module Resources
6
+ # Create, look up, and version reusable operating policies.
7
+ class OperatingPolicies
8
+ extend T::Sig
9
+
10
+ sig { params(http: Inttegro::HTTPClient).void }
11
+ def initialize(http)
12
+ @http = T.let(http, Inttegro::HTTPClient)
13
+ end
14
+
15
+ sig do
16
+ params(payload: T.any(Inttegro::Types::Payload, Inttegro::Shared::CreateOperatingPolicyRequest))
17
+ .returns(Inttegro::Shared::OperatingPolicy)
18
+ end
19
+ def create(payload)
20
+ @http.post_resource(
21
+ "/operating_policies/create",
22
+ Inttegro::Shared::OperatingPolicy,
23
+ :operating_policy,
24
+ payload
25
+ )
26
+ end
27
+
28
+ sig { params(operating_policy_id: String).returns(Inttegro::Shared::OperatingPolicy) }
29
+ def lookup(operating_policy_id)
30
+ @http.post_resource(
31
+ "/operating_policies/lookup",
32
+ Inttegro::Shared::OperatingPolicy,
33
+ :operating_policy,
34
+ { operating_policy_id: operating_policy_id }
35
+ )
36
+ end
37
+
38
+ sig do
39
+ params(payload: T.any(Inttegro::Types::Payload, Inttegro::Shared::UpdateOperatingPolicyRequest))
40
+ .returns(Inttegro::Shared::OperatingPolicy)
41
+ end
42
+ def update(payload)
43
+ @http.post_resource(
44
+ "/operating_policies/update",
45
+ Inttegro::Shared::OperatingPolicy,
46
+ :operating_policy,
47
+ payload
48
+ )
49
+ end
50
+ end
51
+ end
52
+ end
@@ -5,7 +5,9 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "../chime/email_message_input"
8
- require_relative "../chime/recipient"
8
+ require_relative "../chime/saved_customer_recipient"
9
+ require_relative "../chime/send_request_recipient_variant1_variant1"
10
+ require_relative "../chime/send_request_recipient_variant1_variant2"
9
11
  require_relative "../message_template/reference"
10
12
  require_relative "chime_request_request_meta"
11
13
 
@@ -30,7 +32,7 @@ module Inttegro
30
32
  # inline contact details or `customer_id`.
31
33
  #
32
34
  # Required in the API payload. Wire name: `recipients`.
33
- # @return [Array<Inttegro::Chime::Recipient>]
35
+ # @return [Array<Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2, Inttegro::Chime::SavedCustomerRecipient>]
34
36
  #
35
37
  # @!attribute [r] send_after
36
38
  # ISO 8601 timestamp for when to send the chime (must be in the future)
@@ -69,7 +71,7 @@ module Inttegro
69
71
  # @return [String, nil]
70
72
  class ChimeRequest < T::Struct
71
73
  const :request_meta, T.nilable(Inttegro::Schedule::ChimeRequestRequestMeta), default: nil
72
- const :recipients, T::Array[Inttegro::Chime::Recipient]
74
+ const :recipients, T::Array[T.any(T.any(Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2), Inttegro::Chime::SavedCustomerRecipient)]
73
75
  const :send_after, Time
74
76
  const :full_message, T.nilable(String), default: nil
75
77
  const :email, T.nilable(Inttegro::Chime::EmailMessageInput), default: nil
@@ -0,0 +1,91 @@
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_capabilities"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children 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] 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
+ # @!attribute [r] version
32
+ # Value of the `version` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `version`.
35
+ # @return [Integer]
36
+ #
37
+ # @!attribute [r] active_version
38
+ # Value of the `active_version` field in the Inttegro API payload.
39
+ #
40
+ # Required in the API payload. Wire name: `active_version`.
41
+ # @return [Integer]
42
+ #
43
+ # @!attribute [r] name
44
+ # Value of the `name` field in the Inttegro API payload.
45
+ #
46
+ # Required in the API payload. Wire name: `name`.
47
+ # @return [String]
48
+ #
49
+ # @!attribute [r] description
50
+ # Value of the `description` field in the Inttegro API payload.
51
+ #
52
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
53
+ # @return [String, nil]
54
+ #
55
+ # @!attribute [r] capabilities
56
+ # Value of the `capabilities` field in the Inttegro API payload.
57
+ #
58
+ # Required in the API payload. Wire name: `capabilities`.
59
+ # @return [Inttegro::Shared::ChildrenPolicyCapabilities]
60
+ #
61
+ # @!attribute [r] created_at
62
+ # Value of the `created_at` field in the Inttegro API payload.
63
+ #
64
+ # Required in the API payload. Wire name: `created_at`.
65
+ # @return [Time]
66
+ #
67
+ # @!attribute [r] updated_at
68
+ # Value of the `updated_at` field in the Inttegro API payload.
69
+ #
70
+ # Required in the API payload. Wire name: `updated_at`.
71
+ # @return [Time]
72
+ #
73
+ # @!attribute [r] version_created_at
74
+ # Value of the `version_created_at` field in the Inttegro API payload.
75
+ #
76
+ # Required in the API payload. Wire name: `version_created_at`.
77
+ # @return [Time]
78
+ class ChildrenPolicy < T::Struct
79
+ const :id, String
80
+ const :owner_application_id, String
81
+ const :version, Integer
82
+ const :active_version, Integer
83
+ const :name, String
84
+ const :description, T.nilable(String), default: nil
85
+ const :capabilities, Inttegro::Shared::ChildrenPolicyCapabilities
86
+ const :created_at, Time
87
+ const :updated_at, Time
88
+ const :version_created_at, Time
89
+ end
90
+ end
91
+ 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/children_policy_capabilities"
8
+ require_relative "../payment_method/children_policy_payment_methods_capabilities"
9
+ require_relative "../payout/children_policy_capabilities"
10
+
11
+ module Inttegro
12
+ module Shared
13
+ # Typed representation of the children 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::ChildrenPolicyCapabilities, 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::ChildrenPolicyCapabilities, 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::ChildrenPolicyPaymentMethodsCapabilities, nil]
38
+ class ChildrenPolicyCapabilities < T::Struct
39
+ const :payments, T.nilable(Inttegro::Payment::ChildrenPolicyCapabilities), default: nil
40
+ const :payouts, T.nilable(Inttegro::Payout::ChildrenPolicyCapabilities), default: nil
41
+ const :payment_methods, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodsCapabilities), 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 "children_policy"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children 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] children_policy
20
+ # Value of the `children_policy` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `children_policy`.
23
+ # @return [Inttegro::Shared::ChildrenPolicy]
24
+ class ChildrenPolicyResponse < T::Struct
25
+ const :children_policy, Inttegro::Shared::ChildrenPolicy
26
+ end
27
+ end
28
+ 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_capabilities_input"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the create 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] name
20
+ # Value of the `name` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `name`.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [r] description
26
+ # Value of the `description` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
29
+ # @return [String, nil]
30
+ #
31
+ # @!attribute [r] capabilities
32
+ # Value of the `capabilities` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `capabilities`.
35
+ # @return [Inttegro::Shared::OperatingPolicyCapabilitiesInput]
36
+ class CreateOperatingPolicyRequest < T::Struct
37
+ const :name, String
38
+ const :description, T.nilable(String), default: nil
39
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilitiesInput
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
+ require_relative "operating_policy_capabilities_input"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the inline operating policy selection 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::Shared::OperatingPolicyCapabilitiesInput]
24
+ class InlineOperatingPolicySelection < T::Struct
25
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilitiesInput
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,22 @@
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 lookup accepts no selectors and always returns the authenticated application's active
11
+ # policy.
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
+ class LookupChildrenPolicyRequest < T::Struct
19
+ # This object intentionally has no fields.
20
+ end
21
+ end
22
+ 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 lookup operating policy 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
+ #
18
+ # @!attribute [r] operating_policy_id
19
+ # Value of the `operating_policy_id` field in the Inttegro API payload.
20
+ #
21
+ # Required in the API payload. Wire name: `operating_policy_id`.
22
+ # @return [String]
23
+ class LookupOperatingPolicyRequest < T::Struct
24
+ const :operating_policy_id, String
25
+ end
26
+ end
27
+ end