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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/inttegro/app/application.rb +20 -1
- data/lib/inttegro/app/capabilities.rb +11 -0
- data/lib/inttegro/app/capabilities_response.rb +28 -0
- data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
- data/lib/inttegro/app/capability_projection.rb +39 -0
- data/lib/inttegro/app/capability_requirement.rb +41 -0
- data/lib/inttegro/app/capability_requirements.rb +28 -0
- data/lib/inttegro/app/create_request.rb +10 -0
- data/lib/inttegro/app/enabled_capability.rb +35 -0
- data/lib/inttegro/app/enabled_capability_status.rb +25 -0
- data/lib/inttegro/app/looked_up.rb +27 -0
- data/lib/inttegro/app/looked_up_relationship.rb +58 -0
- data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
- data/lib/inttegro/app/lookup_capabilities_request.rb +21 -0
- data/lib/inttegro/app/operating_policy.rb +37 -0
- data/lib/inttegro/app/pending_review_capability.rb +43 -0
- data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
- data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/relationship.rb +7 -63
- data/lib/inttegro/app/relationship_parent.rb +41 -0
- data/lib/inttegro/app/restricted_capability.rb +51 -0
- data/lib/inttegro/app/restricted_capability_status.rb +25 -0
- data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/update_request.rb +10 -0
- data/lib/inttegro/app/updated.rb +19 -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/invoice_view_format.rb +0 -8
- 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 +11 -2
- data/lib/inttegro/generated/models.rb +88 -34
- data/lib/inttegro/generated/operations.rb +23 -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/models.rb +1 -0
- data/lib/inttegro/order/create_existing_customer.rb +5 -3
- data/lib/inttegro/order/create_new_customer.rb +5 -3
- data/lib/inttegro/order/invoice_format.rb +0 -8
- data/lib/inttegro/order/line_item_group.rb +6 -3
- data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
- data/lib/inttegro/order/receipt_format.rb +35 -0
- 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/payment.rb +8 -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 +37 -0
- data/lib/inttegro/payout/cancellation.rb +42 -0
- data/lib/inttegro/payout/cancellation_reason.rb +30 -0
- 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/payout.rb +9 -0
- data/lib/inttegro/payout/settings_limits.rb +28 -0
- data/lib/inttegro/payout/settings_lookup.rb +8 -0
- data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
- data/lib/inttegro/payout/settings_mutation.rb +8 -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/{checkout/invoice_view_format_receipt.rb → purchase_intent/merchant_asset.rb} +14 -7
- 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/apps.rb +12 -0
- data/lib/inttegro/resources/children_policies.rb +26 -0
- data/lib/inttegro/resources/operating_policies.rb +52 -0
- data/lib/inttegro/schedule/chime_request.rb +5 -3
- data/lib/inttegro/shared/children_policy.rb +91 -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/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 +22 -0
- data/lib/inttegro/shared/lookup_operating_policy_request.rb +27 -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 +19 -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/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_public_id.rb +34 -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 +29 -4
- metadata +79 -13
- data/lib/inttegro/app/relationship_policy.rb +0 -43
- data/lib/inttegro/checkout/amount_selection.rb +0 -84
|
@@ -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
|
|
@@ -7,6 +7,7 @@ require_relative "base"
|
|
|
7
7
|
require_relative "../custom_data"
|
|
8
8
|
require_relative "../money/amount"
|
|
9
9
|
require_relative "balance_transaction"
|
|
10
|
+
require_relative "cancellation"
|
|
10
11
|
require_relative "error"
|
|
11
12
|
require_relative "failure"
|
|
12
13
|
require_relative "status"
|
|
@@ -47,6 +48,13 @@ module Inttegro
|
|
|
47
48
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `canceled_at`.
|
|
48
49
|
# @return [Time, nil]
|
|
49
50
|
#
|
|
51
|
+
# @!attribute [r] cancellation
|
|
52
|
+
# Caller-safe explanation and next step for a canceled payout. Present only when `status` is
|
|
53
|
+
# `canceled`.
|
|
54
|
+
#
|
|
55
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `cancellation`.
|
|
56
|
+
# @return [Inttegro::Payout::Cancellation, nil]
|
|
57
|
+
#
|
|
50
58
|
# @!attribute [r] custom_data
|
|
51
59
|
# Merchant-defined string values attached to a resource. SDKs expose this as a semantic
|
|
52
60
|
# collection rather than a raw map.
|
|
@@ -172,6 +180,7 @@ module Inttegro
|
|
|
172
180
|
const :balance_transactions, T.nilable(T::Array[Inttegro::Payout::BalanceTransaction]), default: nil
|
|
173
181
|
const :balance_transaction_id, T.nilable(String), default: nil
|
|
174
182
|
const :canceled_at, T.nilable(Time), default: nil
|
|
183
|
+
const :cancellation, T.nilable(Inttegro::Payout::Cancellation), default: nil
|
|
175
184
|
const :custom_data, T.nilable(Inttegro::CustomData), default: nil
|
|
176
185
|
const :destination_id, String
|
|
177
186
|
const :error, T.nilable(Inttegro::Payout::Error), default: nil
|
|
@@ -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 "amount_limits"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Payout
|
|
11
|
+
# Platform limits applied to payouts.
|
|
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
|
+
# Inclusive payout amount ranges keyed by lowercase ISO currency code.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `amount`.
|
|
23
|
+
# @return [Hash{String => Inttegro::Payout::AmountLimits}]
|
|
24
|
+
class SettingsLimits < T::Struct
|
|
25
|
+
const :amount, T::Hash[String, Inttegro::Payout::AmountLimits]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "destinations"
|
|
8
|
+
require_relative "settings_limits"
|
|
8
9
|
require_relative "settings_lookup_schedule"
|
|
9
10
|
|
|
10
11
|
module Inttegro
|
|
@@ -29,6 +30,12 @@ module Inttegro
|
|
|
29
30
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `fx_enabled`.
|
|
30
31
|
# @return [Boolean, nil]
|
|
31
32
|
#
|
|
33
|
+
# @!attribute [r] limits
|
|
34
|
+
# Platform limits applied to payouts.
|
|
35
|
+
#
|
|
36
|
+
# Required in the API payload. Wire name: `limits`.
|
|
37
|
+
# @return [Inttegro::Payout::SettingsLimits]
|
|
38
|
+
#
|
|
32
39
|
# @!attribute [r] schedule
|
|
33
40
|
# Active payout schedule returned when settings are retrieved.
|
|
34
41
|
#
|
|
@@ -37,6 +44,7 @@ module Inttegro
|
|
|
37
44
|
class SettingsLookup < T::Struct
|
|
38
45
|
const :destinations, Inttegro::Payout::Destinations
|
|
39
46
|
const :fx_enabled, T.nilable(T::Boolean), default: nil
|
|
47
|
+
const :limits, Inttegro::Payout::SettingsLimits
|
|
40
48
|
const :schedule, T.nilable(Inttegro::Payout::SettingsLookupSchedule), default: nil
|
|
41
49
|
end
|
|
42
50
|
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
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "destinations"
|
|
8
|
+
require_relative "settings_limits"
|
|
8
9
|
require_relative "settings_mutation_schedule"
|
|
9
10
|
|
|
10
11
|
module Inttegro
|
|
@@ -35,6 +36,12 @@ module Inttegro
|
|
|
35
36
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
|
|
36
37
|
# @return [String, nil]
|
|
37
38
|
#
|
|
39
|
+
# @!attribute [r] limits
|
|
40
|
+
# Platform limits applied to payouts.
|
|
41
|
+
#
|
|
42
|
+
# Required in the API payload. Wire name: `limits`.
|
|
43
|
+
# @return [Inttegro::Payout::SettingsLimits]
|
|
44
|
+
#
|
|
38
45
|
# @!attribute [r] schedule
|
|
39
46
|
# Updated payout schedule returned after a settings mutation.
|
|
40
47
|
#
|
|
@@ -44,6 +51,7 @@ module Inttegro
|
|
|
44
51
|
const :destinations, T.nilable(Inttegro::Payout::Destinations), default: nil
|
|
45
52
|
const :fx_enabled, T.nilable(T::Boolean), default: nil
|
|
46
53
|
const :id, T.nilable(String), default: nil
|
|
54
|
+
const :limits, Inttegro::Payout::SettingsLimits
|
|
47
55
|
const :schedule, T.nilable(Inttegro::Payout::SettingsMutationSchedule), default: nil
|
|
48
56
|
end
|
|
49
57
|
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
|
|
@@ -16,43 +16,44 @@ module Inttegro
|
|
|
16
16
|
# @api public
|
|
17
17
|
#
|
|
18
18
|
# @!attribute [r] hero_image
|
|
19
|
-
#
|
|
19
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
20
20
|
#
|
|
21
21
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `hero_image`.
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
#
|
|
24
24
|
# @!attribute [r] thumbnail
|
|
25
|
-
#
|
|
25
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
26
26
|
#
|
|
27
27
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `thumbnail`.
|
|
28
28
|
# @return [String, nil]
|
|
29
29
|
#
|
|
30
30
|
# @!attribute [r] web_page_url
|
|
31
|
-
#
|
|
31
|
+
# Public HTTP or HTTPS URL for the product's canonical landing page. Credentials and local or
|
|
32
|
+
# private literal addresses are rejected.
|
|
32
33
|
#
|
|
33
34
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `web_page_url`.
|
|
34
35
|
# @return [String, nil]
|
|
35
36
|
#
|
|
36
37
|
# @!attribute [r] brand_logo
|
|
37
|
-
#
|
|
38
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
38
39
|
#
|
|
39
40
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `brand_logo`.
|
|
40
41
|
# @return [String, nil]
|
|
41
42
|
#
|
|
42
43
|
# @!attribute [r] infographic
|
|
43
|
-
#
|
|
44
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
44
45
|
#
|
|
45
46
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `infographic`.
|
|
46
47
|
# @return [String, nil]
|
|
47
48
|
#
|
|
48
49
|
# @!attribute [r] promo_video
|
|
49
|
-
#
|
|
50
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
50
51
|
#
|
|
51
52
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `promo_video`.
|
|
52
53
|
# @return [String, nil]
|
|
53
54
|
#
|
|
54
55
|
# @!attribute [r] demo_video
|
|
55
|
-
#
|
|
56
|
+
# An Inttegro Files API file or file-link reference. Remote URLs are not accepted.
|
|
56
57
|
#
|
|
57
58
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `demo_video`.
|
|
58
59
|
# @return [String, nil]
|
|
@@ -88,7 +88,7 @@ module Inttegro
|
|
|
88
88
|
# @return [Inttegro::Product::Media, nil]
|
|
89
89
|
#
|
|
90
90
|
# @!attribute [r] images
|
|
91
|
-
# Legacy image list. Mutually exclusive with `media`.
|
|
91
|
+
# Legacy image list of Inttegro file or file-link references. Mutually exclusive with `media`.
|
|
92
92
|
#
|
|
93
93
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `images`.
|
|
94
94
|
# @return [Array<String>, nil]
|
|
@@ -4,11 +4,13 @@
|
|
|
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 "merchant_branding"
|
|
8
|
+
require_relative "merchant_profile"
|
|
7
9
|
|
|
8
10
|
module Inttegro
|
|
9
11
|
class PurchaseIntent
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
+
# Current public merchant presentation resolved from the purchase intent's application. It is
|
|
13
|
+
# hydrated at lookup time and is not stored on the purchase intent.
|
|
12
14
|
#
|
|
13
15
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
16
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -16,27 +18,20 @@ module Inttegro
|
|
|
16
18
|
#
|
|
17
19
|
# @api public
|
|
18
20
|
#
|
|
19
|
-
# @!attribute [r]
|
|
20
|
-
# Value of the `
|
|
21
|
+
# @!attribute [r] branding
|
|
22
|
+
# Value of the `branding` field in the Inttegro API payload.
|
|
21
23
|
#
|
|
22
|
-
#
|
|
23
|
-
# @return [
|
|
24
|
+
# Required in the API payload. Wire name: `branding`.
|
|
25
|
+
# @return [Inttegro::PurchaseIntent::MerchantBranding]
|
|
24
26
|
#
|
|
25
|
-
# @!attribute [r]
|
|
26
|
-
# Value of the `
|
|
27
|
+
# @!attribute [r] profile
|
|
28
|
+
# Value of the `profile` field in the Inttegro API payload.
|
|
27
29
|
#
|
|
28
|
-
#
|
|
29
|
-
# @return [
|
|
30
|
-
#
|
|
31
|
-
# @!attribute [r] organization_name
|
|
32
|
-
# Value of the `organization_name` field in the Inttegro API payload.
|
|
33
|
-
#
|
|
34
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `organization_name`.
|
|
35
|
-
# @return [String, nil]
|
|
30
|
+
# Required in the API payload. Wire name: `profile`.
|
|
31
|
+
# @return [Inttegro::PurchaseIntent::MerchantProfile]
|
|
36
32
|
class Merchant < T::Struct
|
|
37
|
-
const :
|
|
38
|
-
const :
|
|
39
|
-
const :organization_name, T.nilable(String), default: nil
|
|
33
|
+
const :branding, Inttegro::PurchaseIntent::MerchantBranding
|
|
34
|
+
const :profile, Inttegro::PurchaseIntent::MerchantProfile
|
|
40
35
|
end
|
|
41
36
|
end
|
|
42
37
|
end
|
data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → purchase_intent/merchant_asset.rb}
RENAMED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
|
-
|
|
10
|
-
# Typed representation of the
|
|
9
|
+
class PurchaseIntent
|
|
10
|
+
# Typed representation of the merchant asset object in the Inttegro API.
|
|
11
11
|
#
|
|
12
12
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
13
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -15,13 +15,20 @@ module Inttegro
|
|
|
15
15
|
#
|
|
16
16
|
# @api public
|
|
17
17
|
#
|
|
18
|
-
# @!attribute [r]
|
|
19
|
-
#
|
|
18
|
+
# @!attribute [r] alt_text
|
|
19
|
+
# Accessible description of the merchant asset
|
|
20
20
|
#
|
|
21
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `
|
|
21
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `alt_text`.
|
|
22
22
|
# @return [String, nil]
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] url
|
|
25
|
+
# Public URL of the merchant asset
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `url`.
|
|
28
|
+
# @return [String]
|
|
29
|
+
class MerchantAsset < T::Struct
|
|
30
|
+
const :alt_text, T.nilable(String), default: nil
|
|
31
|
+
const :url, String
|
|
25
32
|
end
|
|
26
33
|
end
|
|
27
34
|
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 "merchant_asset"
|
|
8
|
+
require_relative "merchant_color_scheme"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class PurchaseIntent
|
|
12
|
+
# Typed representation of the merchant branding 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] accent_color
|
|
21
|
+
# Merchant accent color as a normalized six-digit hexadecimal value
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `accent_color`.
|
|
24
|
+
# @return [String]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] color_scheme
|
|
27
|
+
# Value of the `color_scheme` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Required in the API payload. Wire name: `color_scheme`.
|
|
30
|
+
# @return [Inttegro::PurchaseIntent::MerchantColorScheme]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] icon
|
|
33
|
+
# Value of the `icon` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `icon`.
|
|
36
|
+
# @return [Inttegro::PurchaseIntent::MerchantAsset, nil]
|
|
37
|
+
#
|
|
38
|
+
# @!attribute [r] logo
|
|
39
|
+
# Value of the `logo` field in the Inttegro API payload.
|
|
40
|
+
#
|
|
41
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `logo`.
|
|
42
|
+
# @return [Inttegro::PurchaseIntent::MerchantAsset, nil]
|
|
43
|
+
class MerchantBranding < T::Struct
|
|
44
|
+
const :accent_color, String
|
|
45
|
+
const :color_scheme, Inttegro::PurchaseIntent::MerchantColorScheme
|
|
46
|
+
const :icon, T.nilable(Inttegro::PurchaseIntent::MerchantAsset), default: nil
|
|
47
|
+
const :logo, T.nilable(Inttegro::PurchaseIntent::MerchantAsset), default: nil
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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 color scheme 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] border
|
|
19
|
+
# Value of the `border` field in the Inttegro API payload.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `border`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] link
|
|
25
|
+
# Value of the `link` field in the Inttegro API payload.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `link`.
|
|
28
|
+
# @return [String]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] muted_text
|
|
31
|
+
# Value of the `muted_text` field in the Inttegro API payload.
|
|
32
|
+
#
|
|
33
|
+
# Required in the API payload. Wire name: `muted_text`.
|
|
34
|
+
# @return [String]
|
|
35
|
+
#
|
|
36
|
+
# @!attribute [r] primary
|
|
37
|
+
# Value of the `primary` field in the Inttegro API payload.
|
|
38
|
+
#
|
|
39
|
+
# Required in the API payload. Wire name: `primary`.
|
|
40
|
+
# @return [String]
|
|
41
|
+
#
|
|
42
|
+
# @!attribute [r] primary_foreground
|
|
43
|
+
# Value of the `primary_foreground` field in the Inttegro API payload.
|
|
44
|
+
#
|
|
45
|
+
# Required in the API payload. Wire name: `primary_foreground`.
|
|
46
|
+
# @return [String]
|
|
47
|
+
#
|
|
48
|
+
# @!attribute [r] surface
|
|
49
|
+
# Value of the `surface` field in the Inttegro API payload.
|
|
50
|
+
#
|
|
51
|
+
# Required in the API payload. Wire name: `surface`.
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
# @!attribute [r] surface_muted
|
|
55
|
+
# Value of the `surface_muted` field in the Inttegro API payload.
|
|
56
|
+
#
|
|
57
|
+
# Required in the API payload. Wire name: `surface_muted`.
|
|
58
|
+
# @return [String]
|
|
59
|
+
#
|
|
60
|
+
# @!attribute [r] text
|
|
61
|
+
# Value of the `text` field in the Inttegro API payload.
|
|
62
|
+
#
|
|
63
|
+
# Required in the API payload. Wire name: `text`.
|
|
64
|
+
# @return [String]
|
|
65
|
+
class MerchantColorScheme < T::Struct
|
|
66
|
+
const :border, String
|
|
67
|
+
const :link, String
|
|
68
|
+
const :muted_text, String
|
|
69
|
+
const :primary, String
|
|
70
|
+
const :primary_foreground, String
|
|
71
|
+
const :surface, String
|
|
72
|
+
const :surface_muted, String
|
|
73
|
+
const :text, String
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|