inttegro 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/lib/inttegro/app/application.rb +18 -0
- data/lib/inttegro/app/create_request.rb +9 -0
- data/lib/inttegro/app/looked_up.rb +18 -0
- data/lib/inttegro/app/operating_policy.rb +36 -0
- data/lib/inttegro/app/update_request.rb +9 -0
- data/lib/inttegro/app/updated.rb +18 -0
- data/lib/inttegro/balance_transaction/balance_transaction.rb +4 -3
- data/lib/inttegro/broadcast/request.rb +5 -3
- data/lib/inttegro/checkout/customer_data.rb +41 -0
- data/lib/inttegro/checkout/lookup_request.rb +3 -3
- data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb} +2 -2
- data/lib/inttegro/checkout/lookup_response.rb +8 -17
- data/lib/inttegro/checkout/order_line_item_group.rb +5 -3
- data/lib/inttegro/checkout/pay_request.rb +40 -3
- data/lib/inttegro/checkout/pay_request_selected_amount.rb +36 -0
- data/lib/inttegro/checkout/select_amount_request_variant2.rb +6 -6
- data/lib/inttegro/checkout/select_amount_request_variant2_line_items_item.rb +36 -0
- data/lib/inttegro/chime/inline_recipient.rb +4 -4
- data/lib/inttegro/chime/recipient.rb +4 -3
- data/lib/inttegro/chime/send_request.rb +5 -3
- data/lib/inttegro/chime/{inline_recipient_variant1.rb → send_request_recipient_variant1_variant1.rb} +9 -8
- data/lib/inttegro/chime/{inline_recipient_variant1_phone.rb → send_request_recipient_variant1_variant1_phone.rb} +3 -2
- data/lib/inttegro/chime/{inline_recipient_variant1_type.rb → send_request_recipient_variant1_variant1_type.rb} +3 -3
- data/lib/inttegro/chime/{inline_recipient_variant2.rb → send_request_recipient_variant1_variant2.rb} +9 -8
- data/lib/inttegro/chime/{inline_recipient_variant2_email.rb → send_request_recipient_variant1_variant2_email.rb} +3 -2
- data/lib/inttegro/chime/{inline_recipient_variant2_type.rb → send_request_recipient_variant1_variant2_type.rb} +3 -3
- data/lib/inttegro/client.rb +10 -0
- data/lib/inttegro/financial_account/connected.rb +9 -0
- data/lib/inttegro/financial_account/created.rb +9 -0
- data/lib/inttegro/financial_account/details.rb +9 -0
- data/lib/inttegro/financial_account/financial_account.rb +9 -0
- data/lib/inttegro/financial_account/name_enquiry.rb +42 -0
- data/lib/inttegro/financial_account/updated.rb +9 -0
- data/lib/inttegro/generated/enums.rb +5 -2
- data/lib/inttegro/generated/models.rb +77 -31
- data/lib/inttegro/generated/operations.rb +26 -8
- data/lib/inttegro/message_template/create_email_request.rb +2 -3
- data/lib/inttegro/message_template/email_content.rb +6 -3
- data/lib/inttegro/message_template/email_content_from.rb +36 -0
- data/lib/inttegro/message_template/message_template.rb +2 -3
- data/lib/inttegro/message_template/rendered.rb +2 -3
- data/lib/inttegro/message_template/update_request.rb +2 -3
- data/lib/inttegro/order/create_existing_customer.rb +5 -3
- data/lib/inttegro/order/create_new_customer.rb +5 -3
- data/lib/inttegro/order/line_item_group.rb +6 -3
- data/lib/inttegro/order/update_request.rb +5 -3
- data/lib/inttegro/payment/children_policy_capabilities.rb +35 -0
- data/lib/inttegro/payment/operating_policy_capabilities.rb +35 -0
- data/lib/inttegro/payment/operating_policy_capabilities_input.rb +35 -0
- data/lib/inttegro/payment_method/children_policy_payment_method_capabilities.rb +35 -0
- data/lib/inttegro/payment_method/children_policy_payment_methods_capabilities.rb +50 -0
- data/lib/inttegro/payment_method/operating_policy_payment_method_capabilities.rb +35 -0
- data/lib/inttegro/payment_method/operating_policy_payment_methods_capabilities.rb +50 -0
- data/lib/inttegro/payout/amount_limits.rb +9 -7
- data/lib/inttegro/payout/children_policy_capabilities.rb +43 -0
- data/lib/inttegro/payout/limit_value.rb +28 -0
- data/lib/inttegro/payout/operating_policy_capabilities.rb +43 -0
- data/lib/inttegro/payout/operating_policy_capabilities_input.rb +43 -0
- data/lib/inttegro/payout/settings_limits.rb +3 -3
- data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
- data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +4 -4
- data/lib/inttegro/product/line_item.rb +6 -3
- data/lib/inttegro/product/media.rb +8 -7
- data/lib/inttegro/product/update_request.rb +1 -1
- data/lib/inttegro/purchase_intent/merchant.rb +14 -19
- data/lib/inttegro/purchase_intent/merchant_asset.rb +34 -0
- data/lib/inttegro/purchase_intent/merchant_branding.rb +50 -0
- data/lib/inttegro/purchase_intent/merchant_color_scheme.rb +76 -0
- data/lib/inttegro/purchase_intent/merchant_profile.rb +42 -0
- data/lib/inttegro/purchase_intent/merchant_support.rb +34 -0
- data/lib/inttegro/purchase_intent/purchase_intent.rb +10 -2
- data/lib/inttegro/refund/line_item.rb +5 -3
- data/lib/inttegro/refund/payment_method_settlement.rb +4 -3
- data/lib/inttegro/refund/refund.rb +4 -3
- data/lib/inttegro/resources/children_policies.rb +61 -0
- data/lib/inttegro/resources/operating_policies.rb +88 -0
- data/lib/inttegro/schedule/chime_request.rb +5 -3
- data/lib/inttegro/shared/children_policy.rb +84 -0
- data/lib/inttegro/shared/children_policy_capabilities.rb +44 -0
- data/lib/inttegro/shared/children_policy_response.rb +28 -0
- data/lib/inttegro/shared/children_policy_versions_page.rb +63 -0
- data/lib/inttegro/shared/children_policy_versions_page_response.rb +29 -0
- data/lib/inttegro/shared/create_operating_policy_request.rb +42 -0
- data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
- data/lib/inttegro/shared/lookup_children_policy_request.rb +27 -0
- data/lib/inttegro/shared/lookup_operating_policy_request.rb +34 -0
- data/lib/inttegro/shared/operating_policy.rb +98 -0
- data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
- data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
- data/lib/inttegro/shared/operating_policy_response.rb +28 -0
- data/lib/inttegro/shared/operating_policy_selection.rb +18 -0
- data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
- data/lib/inttegro/shared/operating_policy_source.rb +42 -0
- data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
- data/lib/inttegro/shared/operating_policy_versions_page.rb +63 -0
- data/lib/inttegro/shared/operating_policy_versions_page_response.rb +29 -0
- data/lib/inttegro/shared/page_children_policy_versions_request.rb +35 -0
- data/lib/inttegro/shared/page_operating_policy_versions_request.rb +42 -0
- data/lib/inttegro/shared/policy_amount_range.rb +34 -0
- data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_id.rb +33 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
- data/lib/inttegro/shared/policy_limits.rb +28 -0
- data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
- data/lib/inttegro/version.rb +1 -1
- data/rbi/inttegro/generated.rbi +45 -4
- metadata +61 -10
- data/lib/inttegro/checkout/amount_selection.rb +0 -84
|
@@ -7,10 +7,12 @@ require_relative "base"
|
|
|
7
7
|
require_relative "../custom_data"
|
|
8
8
|
require_relative "../customer/data"
|
|
9
9
|
require_relative "../payment_method/data"
|
|
10
|
+
require_relative "../product/line_item"
|
|
10
11
|
require_relative "../shared/billing_details"
|
|
12
|
+
require_relative "../shared/fee_line_item"
|
|
11
13
|
require_relative "../shared/invoice_settings"
|
|
12
|
-
require_relative "../shared/line_item"
|
|
13
14
|
require_relative "../shared/shipping"
|
|
15
|
+
require_relative "../shared/shipping_line_item"
|
|
14
16
|
require_relative "create_new_customer_checkout_settings"
|
|
15
17
|
require_relative "create_new_customer_request_meta"
|
|
16
18
|
require_relative "payout_settings_request"
|
|
@@ -108,7 +110,7 @@ module Inttegro
|
|
|
108
110
|
# with explicit `price`, or `product_id` with `price_id`.
|
|
109
111
|
#
|
|
110
112
|
# Required in the API payload. Wire name: `line_items`.
|
|
111
|
-
# @return [Array<Inttegro::Shared::
|
|
113
|
+
# @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>]
|
|
112
114
|
#
|
|
113
115
|
# @!attribute [r] custom_data
|
|
114
116
|
# Merchant-defined string values attached to a resource. SDKs expose this as a semantic
|
|
@@ -141,7 +143,7 @@ module Inttegro
|
|
|
141
143
|
const :checkout_settings, T.nilable(Inttegro::Order::CreateNewCustomerCheckoutSettings), default: nil
|
|
142
144
|
const :invoice_settings, T.nilable(Inttegro::Shared::InvoiceSettings), default: nil
|
|
143
145
|
const :payout_settings, T.nilable(Inttegro::Order::PayoutSettingsRequest), default: nil
|
|
144
|
-
const :line_items, T::Array[Inttegro::Shared::
|
|
146
|
+
const :line_items, T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]
|
|
145
147
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
146
148
|
const :billing_details, T.nilable(Inttegro::Shared::BillingDetails), default: nil
|
|
147
149
|
const :shipping, T.nilable(Inttegro::Shared::Shipping), default: nil
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "../money/amount"
|
|
8
|
-
require_relative "
|
|
8
|
+
require_relative "discount_line_item"
|
|
9
|
+
require_relative "fee_line_item"
|
|
10
|
+
require_relative "product_line_item"
|
|
11
|
+
require_relative "shipping_line_item"
|
|
9
12
|
|
|
10
13
|
module Inttegro
|
|
11
14
|
class Order
|
|
@@ -21,7 +24,7 @@ module Inttegro
|
|
|
21
24
|
# Array of products, fees, and shipping charges
|
|
22
25
|
#
|
|
23
26
|
# Required in the API payload. Wire name: `line_items`.
|
|
24
|
-
# @return [Array<Inttegro::Order::
|
|
27
|
+
# @return [Array<Inttegro::Order::ProductLineItem, Inttegro::Order::FeeLineItem, Inttegro::Order::ShippingLineItem, Inttegro::Order::DiscountLineItem>]
|
|
25
28
|
#
|
|
26
29
|
# @!attribute [r] total
|
|
27
30
|
# Value of the `total` field in the Inttegro API payload.
|
|
@@ -29,7 +32,7 @@ module Inttegro
|
|
|
29
32
|
# Required in the API payload. Wire name: `total`.
|
|
30
33
|
# @return [Inttegro::Money::Amount]
|
|
31
34
|
class LineItemGroup < T::Struct
|
|
32
|
-
const :line_items, T::Array[Inttegro::Order::
|
|
35
|
+
const :line_items, T::Array[T.any(Inttegro::Order::ProductLineItem, Inttegro::Order::FeeLineItem, Inttegro::Order::ShippingLineItem, Inttegro::Order::DiscountLineItem)]
|
|
33
36
|
const :total, Inttegro::Money::Amount
|
|
34
37
|
|
|
35
38
|
extend T::Sig
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "../custom_data"
|
|
8
|
+
require_relative "../product/line_item"
|
|
9
|
+
require_relative "../shared/fee_line_item"
|
|
8
10
|
require_relative "../shared/invoice_settings"
|
|
9
|
-
require_relative "../shared/
|
|
11
|
+
require_relative "../shared/shipping_line_item"
|
|
10
12
|
require_relative "update_request_payment_method_data"
|
|
11
13
|
|
|
12
14
|
module Inttegro
|
|
@@ -52,7 +54,7 @@ module Inttegro
|
|
|
52
54
|
# unchanged.
|
|
53
55
|
#
|
|
54
56
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `line_items`.
|
|
55
|
-
# @return [Array<Inttegro::Shared::
|
|
57
|
+
# @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>, nil]
|
|
56
58
|
#
|
|
57
59
|
# @!attribute [r] number
|
|
58
60
|
# Replacement order number.
|
|
@@ -105,7 +107,7 @@ module Inttegro
|
|
|
105
107
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
106
108
|
const :invoice_settings, T.nilable(Inttegro::Shared::InvoiceSettings), default: nil
|
|
107
109
|
const :finalize, T.nilable(T::Boolean), default: nil
|
|
108
|
-
const :line_items, T.nilable(T::Array[Inttegro::Shared::
|
|
110
|
+
const :line_items, T.nilable(T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]), default: nil
|
|
109
111
|
const :number, T.nilable(String), default: nil
|
|
110
112
|
const :receipt_number, T.nilable(String), default: nil
|
|
111
113
|
const :order_id, String
|
|
@@ -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 "../shared/policy_limits"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Payment
|
|
11
|
+
# Typed representation of the children policy capabilities 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] currencies
|
|
20
|
+
# Value of the `currencies` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
|
|
23
|
+
# @return [Array<String>, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] limits
|
|
26
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
29
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
30
|
+
class ChildrenPolicyCapabilities < T::Struct
|
|
31
|
+
const :currencies, T.nilable(T::Array[String]), default: nil
|
|
32
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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 "../shared/policy_limits"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Payment
|
|
11
|
+
# Typed representation of the operating policy capabilities 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] currencies
|
|
20
|
+
# Value of the `currencies` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
|
|
23
|
+
# @return [Array<String>, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] limits
|
|
26
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
29
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
30
|
+
class OperatingPolicyCapabilities < T::Struct
|
|
31
|
+
const :currencies, T.nilable(T::Array[String]), default: nil
|
|
32
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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 "../shared/policy_limits"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Payment
|
|
11
|
+
# Typed representation of the operating policy capabilities input 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] currencies
|
|
20
|
+
# Value of the `currencies` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
|
|
23
|
+
# @return [Array<String>, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] limits
|
|
26
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
29
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
30
|
+
class OperatingPolicyCapabilitiesInput < T::Struct
|
|
31
|
+
const :currencies, T.nilable(T::Array[String]), default: nil
|
|
32
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
class PaymentMethod
|
|
10
|
+
# Typed representation of the children policy payment method capabilities object in the
|
|
11
|
+
# 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] enabled
|
|
20
|
+
# Value of the `enabled` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `enabled`.
|
|
23
|
+
# @return [Array<Boolean>]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] confirms_use
|
|
26
|
+
# Value of the `confirms_use` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `confirms_use`.
|
|
29
|
+
# @return [Array<Boolean>]
|
|
30
|
+
class ChildrenPolicyPaymentMethodCapabilities < T::Struct
|
|
31
|
+
const :enabled, T::Array[T::Boolean]
|
|
32
|
+
const :confirms_use, T::Array[T::Boolean]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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_payment_method_capabilities"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PaymentMethod
|
|
11
|
+
# Typed representation of the children policy payment methods capabilities object in the
|
|
12
|
+
# 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] mobile_money
|
|
21
|
+
# Value of the `mobile_money` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `mobile_money`.
|
|
24
|
+
# @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] bank_account
|
|
27
|
+
# Value of the `bank_account` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bank_account`.
|
|
30
|
+
# @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] motito
|
|
33
|
+
# Value of the `motito` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `motito`.
|
|
36
|
+
# @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
|
|
37
|
+
#
|
|
38
|
+
# @!attribute [r] card
|
|
39
|
+
# Value of the `card` field in the Inttegro API payload.
|
|
40
|
+
#
|
|
41
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `card`.
|
|
42
|
+
# @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
|
|
43
|
+
class ChildrenPolicyPaymentMethodsCapabilities < T::Struct
|
|
44
|
+
const :mobile_money, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
|
|
45
|
+
const :bank_account, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
|
|
46
|
+
const :motito, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
|
|
47
|
+
const :card, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
class PaymentMethod
|
|
10
|
+
# Typed representation of the operating policy payment method capabilities object in the
|
|
11
|
+
# 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] enabled
|
|
20
|
+
# Value of the `enabled` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `enabled`.
|
|
23
|
+
# @return [Boolean]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] confirms_use
|
|
26
|
+
# Value of the `confirms_use` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `confirms_use`.
|
|
29
|
+
# @return [Boolean]
|
|
30
|
+
class OperatingPolicyPaymentMethodCapabilities < T::Struct
|
|
31
|
+
const :enabled, T::Boolean
|
|
32
|
+
const :confirms_use, T::Boolean
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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_payment_method_capabilities"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class PaymentMethod
|
|
11
|
+
# Typed representation of the operating policy payment methods capabilities object in the
|
|
12
|
+
# 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] mobile_money
|
|
21
|
+
# Value of the `mobile_money` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `mobile_money`.
|
|
24
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] bank_account
|
|
27
|
+
# Value of the `bank_account` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bank_account`.
|
|
30
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] motito
|
|
33
|
+
# Value of the `motito` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `motito`.
|
|
36
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
|
|
37
|
+
#
|
|
38
|
+
# @!attribute [r] card
|
|
39
|
+
# Value of the `card` field in the Inttegro API payload.
|
|
40
|
+
#
|
|
41
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `card`.
|
|
42
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
|
|
43
|
+
class OperatingPolicyPaymentMethodsCapabilities < T::Struct
|
|
44
|
+
const :mobile_money, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
|
|
45
|
+
const :bank_account, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
|
|
46
|
+
const :motito, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
|
|
47
|
+
const :card, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
-
require_relative "
|
|
7
|
+
require_relative "limit_value"
|
|
8
8
|
|
|
9
9
|
module Inttegro
|
|
10
10
|
class Payout
|
|
@@ -17,19 +17,21 @@ module Inttegro
|
|
|
17
17
|
# @api public
|
|
18
18
|
#
|
|
19
19
|
# @!attribute [r] min
|
|
20
|
-
#
|
|
20
|
+
# A payout limit in the currency's smallest unit. The enclosing map key identifies the
|
|
21
|
+
# currency.
|
|
21
22
|
#
|
|
22
23
|
# Required in the API payload. Wire name: `min`.
|
|
23
|
-
# @return [Inttegro::
|
|
24
|
+
# @return [Inttegro::Payout::LimitValue]
|
|
24
25
|
#
|
|
25
26
|
# @!attribute [r] max
|
|
26
|
-
#
|
|
27
|
+
# A payout limit in the currency's smallest unit. The enclosing map key identifies the
|
|
28
|
+
# currency.
|
|
27
29
|
#
|
|
28
30
|
# Required in the API payload. Wire name: `max`.
|
|
29
|
-
# @return [Inttegro::
|
|
31
|
+
# @return [Inttegro::Payout::LimitValue]
|
|
30
32
|
class AmountLimits < T::Struct
|
|
31
|
-
const :min, Inttegro::
|
|
32
|
-
const :max, Inttegro::
|
|
33
|
+
const :min, Inttegro::Payout::LimitValue
|
|
34
|
+
const :max, Inttegro::Payout::LimitValue
|
|
33
35
|
end
|
|
34
36
|
end
|
|
35
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 "../shared/policy_bt_aging_spec"
|
|
8
|
+
require_relative "../shared/policy_limits"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class Payout
|
|
12
|
+
# Typed representation of the children policy capabilities 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] enabled
|
|
21
|
+
# Value of the `enabled` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `enabled`.
|
|
24
|
+
# @return [Array<Boolean>, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] limits
|
|
27
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
30
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] bt_aging_spec
|
|
33
|
+
# Value of the `bt_aging_spec` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bt_aging_spec`.
|
|
36
|
+
# @return [Array<Inttegro::Shared::PolicyBTAgingSpec>, nil]
|
|
37
|
+
class ChildrenPolicyCapabilities < T::Struct
|
|
38
|
+
const :enabled, T.nilable(T::Array[T::Boolean]), default: nil
|
|
39
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
40
|
+
const :bt_aging_spec, T.nilable(T::Array[Inttegro::Shared::PolicyBTAgingSpec]), default: nil
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
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
|
+
class Payout
|
|
10
|
+
# A payout limit in the currency's smallest unit. The enclosing map key identifies the
|
|
11
|
+
# currency.
|
|
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] value
|
|
20
|
+
# Value of the `value` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `value`.
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
class LimitValue < T::Struct
|
|
25
|
+
const :value, Integer
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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 "../shared/policy_bt_aging_spec"
|
|
8
|
+
require_relative "../shared/policy_limits"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class Payout
|
|
12
|
+
# Typed representation of the operating policy capabilities 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] enabled
|
|
21
|
+
# Value of the `enabled` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `enabled`.
|
|
24
|
+
# @return [Boolean, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] limits
|
|
27
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
30
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] bt_aging_spec
|
|
33
|
+
# Value of the `bt_aging_spec` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bt_aging_spec`.
|
|
36
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpec, nil]
|
|
37
|
+
class OperatingPolicyCapabilities < T::Struct
|
|
38
|
+
const :enabled, T.nilable(T::Boolean), default: nil
|
|
39
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
40
|
+
const :bt_aging_spec, T.nilable(Inttegro::Shared::PolicyBTAgingSpec), default: nil
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
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 "../shared/policy_bt_aging_spec_reference"
|
|
8
|
+
require_relative "../shared/policy_limits"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class Payout
|
|
12
|
+
# Typed representation of the operating policy capabilities input 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] enabled
|
|
21
|
+
# Value of the `enabled` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `enabled`.
|
|
24
|
+
# @return [Boolean, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] limits
|
|
27
|
+
# Value of the `limits` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
|
|
30
|
+
# @return [Inttegro::Shared::PolicyLimits, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] bt_aging_spec
|
|
33
|
+
# Value of the `bt_aging_spec` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bt_aging_spec`.
|
|
36
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReference, nil]
|
|
37
|
+
class OperatingPolicyCapabilitiesInput < T::Struct
|
|
38
|
+
const :enabled, T.nilable(T::Boolean), default: nil
|
|
39
|
+
const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
|
|
40
|
+
const :bt_aging_spec, T.nilable(Inttegro::Shared::PolicyBTAgingSpecReference), default: nil
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -17,12 +17,12 @@ module Inttegro
|
|
|
17
17
|
# @api public
|
|
18
18
|
#
|
|
19
19
|
# @!attribute [r] amount
|
|
20
|
-
# Inclusive payout amount
|
|
20
|
+
# Inclusive payout amount ranges keyed by lowercase ISO currency code.
|
|
21
21
|
#
|
|
22
22
|
# Required in the API payload. Wire name: `amount`.
|
|
23
|
-
# @return [Inttegro::Payout::AmountLimits]
|
|
23
|
+
# @return [Hash{String => Inttegro::Payout::AmountLimits}]
|
|
24
24
|
class SettingsLimits < T::Struct
|
|
25
|
-
const :amount, Inttegro::Payout::AmountLimits
|
|
25
|
+
const :amount, T::Hash[String, Inttegro::Payout::AmountLimits]
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -21,6 +21,12 @@ module Inttegro
|
|
|
21
21
|
# Required in the API payload. Wire name: `abide`.
|
|
22
22
|
# @return [String]
|
|
23
23
|
#
|
|
24
|
+
# @!attribute [r] public_id
|
|
25
|
+
# Public identifier for the balance transaction aging specification.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `public_id`.
|
|
28
|
+
# @return [String]
|
|
29
|
+
#
|
|
24
30
|
# @!attribute [r] label
|
|
25
31
|
# Human-readable aging rule label.
|
|
26
32
|
#
|
|
@@ -34,6 +40,7 @@ module Inttegro
|
|
|
34
40
|
# @return [String]
|
|
35
41
|
class SettingsLookupScheduleAgingSpec < T::Struct
|
|
36
42
|
const :abide, String
|
|
43
|
+
const :public_id, String
|
|
37
44
|
const :label, String
|
|
38
45
|
const :t_plus, String
|
|
39
46
|
end
|
|
@@ -21,10 +21,10 @@ module Inttegro
|
|
|
21
21
|
# Required in the API payload. Wire name: `abide`.
|
|
22
22
|
# @return [String]
|
|
23
23
|
#
|
|
24
|
-
# @!attribute [r]
|
|
25
|
-
#
|
|
24
|
+
# @!attribute [r] public_id
|
|
25
|
+
# Public identifier for the balance transaction aging specification.
|
|
26
26
|
#
|
|
27
|
-
# Required in the API payload. Wire name: `
|
|
27
|
+
# Required in the API payload. Wire name: `public_id`.
|
|
28
28
|
# @return [String]
|
|
29
29
|
#
|
|
30
30
|
# @!attribute [r] label
|
|
@@ -40,7 +40,7 @@ module Inttegro
|
|
|
40
40
|
# @return [String]
|
|
41
41
|
class SettingsMutationScheduleSpec < T::Struct
|
|
42
42
|
const :abide, String
|
|
43
|
-
const :
|
|
43
|
+
const :public_id, String
|
|
44
44
|
const :label, String
|
|
45
45
|
const :t_plus, String
|
|
46
46
|
end
|
|
@@ -4,7 +4,10 @@
|
|
|
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 "
|
|
7
|
+
require_relative "catalog_with_customer_selected_price"
|
|
8
|
+
require_relative "catalog_with_price_data"
|
|
9
|
+
require_relative "catalog_with_price_reference"
|
|
10
|
+
require_relative "inline_details"
|
|
8
11
|
require_relative "line_item_type"
|
|
9
12
|
|
|
10
13
|
module Inttegro
|
|
@@ -30,10 +33,10 @@ module Inttegro
|
|
|
30
33
|
# product's default unit price during order creation.
|
|
31
34
|
#
|
|
32
35
|
# Required in the API payload. Wire name: `product`.
|
|
33
|
-
# @return [Inttegro::Product::
|
|
36
|
+
# @return [Inttegro::Product::InlineDetails, Inttegro::Product::CatalogWithPriceData, Inttegro::Product::CatalogWithPriceReference, Inttegro::Product::CatalogWithCustomerSelectedPrice]
|
|
34
37
|
class LineItem < T::Struct
|
|
35
38
|
const :type, Inttegro::Product::LineItemType
|
|
36
|
-
const :product, Inttegro::Product::
|
|
39
|
+
const :product, T.any(Inttegro::Product::InlineDetails, Inttegro::Product::CatalogWithPriceData, Inttegro::Product::CatalogWithPriceReference, Inttegro::Product::CatalogWithCustomerSelectedPrice)
|
|
37
40
|
end
|
|
38
41
|
end
|
|
39
42
|
end
|