inttegro 11.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 +7 -0
- data/lib/inttegro/app/application.rb +9 -0
- data/lib/inttegro/app/create_request.rb +10 -0
- data/lib/inttegro/app/looked_up.rb +9 -0
- data/lib/inttegro/app/operating_policy.rb +37 -0
- data/lib/inttegro/app/update_request.rb +10 -0
- data/lib/inttegro/app/updated.rb +9 -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 +71 -31
- data/lib/inttegro/generated/operations.rb +20 -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 +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 +26 -4
- metadata +55 -10
- data/lib/inttegro/checkout/amount_selection.rb +0 -84
|
@@ -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
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "operating_policy_capabilities"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the operating policy object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] id
|
|
20
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `id`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] version
|
|
26
|
+
# Value of the `version` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `version`.
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] active_version
|
|
32
|
+
# Value of the `active_version` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Required in the API payload. Wire name: `active_version`.
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] name
|
|
38
|
+
# Value of the `name` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Required in the API payload. Wire name: `name`.
|
|
41
|
+
# @return [String]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] description
|
|
44
|
+
# Value of the `description` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
#
|
|
49
|
+
# @!attribute [r] capabilities
|
|
50
|
+
# Value of the `capabilities` field in the Inttegro API payload.
|
|
51
|
+
#
|
|
52
|
+
# Required in the API payload. Wire name: `capabilities`.
|
|
53
|
+
# @return [Inttegro::Shared::OperatingPolicyCapabilities]
|
|
54
|
+
#
|
|
55
|
+
# @!attribute [r] children_policy_id
|
|
56
|
+
# Value of the `children_policy_id` field in the Inttegro API payload.
|
|
57
|
+
#
|
|
58
|
+
# Required in the API payload. Wire name: `children_policy_id`.
|
|
59
|
+
# @return [String]
|
|
60
|
+
#
|
|
61
|
+
# @!attribute [r] children_policy_version
|
|
62
|
+
# Value of the `children_policy_version` field in the Inttegro API payload.
|
|
63
|
+
#
|
|
64
|
+
# Required in the API payload. Wire name: `children_policy_version`.
|
|
65
|
+
# @return [Integer]
|
|
66
|
+
#
|
|
67
|
+
# @!attribute [r] created_at
|
|
68
|
+
# Value of the `created_at` field in the Inttegro API payload.
|
|
69
|
+
#
|
|
70
|
+
# Required in the API payload. Wire name: `created_at`.
|
|
71
|
+
# @return [Time]
|
|
72
|
+
#
|
|
73
|
+
# @!attribute [r] updated_at
|
|
74
|
+
# Value of the `updated_at` field in the Inttegro API payload.
|
|
75
|
+
#
|
|
76
|
+
# Required in the API payload. Wire name: `updated_at`.
|
|
77
|
+
# @return [Time]
|
|
78
|
+
#
|
|
79
|
+
# @!attribute [r] version_created_at
|
|
80
|
+
# Value of the `version_created_at` field in the Inttegro API payload.
|
|
81
|
+
#
|
|
82
|
+
# Required in the API payload. Wire name: `version_created_at`.
|
|
83
|
+
# @return [Time]
|
|
84
|
+
class OperatingPolicy < T::Struct
|
|
85
|
+
const :id, String
|
|
86
|
+
const :version, Integer
|
|
87
|
+
const :active_version, Integer
|
|
88
|
+
const :name, String
|
|
89
|
+
const :description, T.nilable(String), default: nil
|
|
90
|
+
const :capabilities, Inttegro::Shared::OperatingPolicyCapabilities
|
|
91
|
+
const :children_policy_id, String
|
|
92
|
+
const :children_policy_version, Integer
|
|
93
|
+
const :created_at, Time
|
|
94
|
+
const :updated_at, Time
|
|
95
|
+
const :version_created_at, Time
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "../payment/operating_policy_capabilities"
|
|
8
|
+
require_relative "../payment_method/operating_policy_payment_methods_capabilities"
|
|
9
|
+
require_relative "../payout/operating_policy_capabilities"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
module Shared
|
|
13
|
+
# Typed representation of the operating policy capabilities object in the Inttegro API.
|
|
14
|
+
#
|
|
15
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
16
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
17
|
+
# field names and serialized enum values.
|
|
18
|
+
#
|
|
19
|
+
# @api public
|
|
20
|
+
#
|
|
21
|
+
# @!attribute [r] payments
|
|
22
|
+
# Value of the `payments` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
|
|
25
|
+
# @return [Inttegro::Payment::OperatingPolicyCapabilities, nil]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] payouts
|
|
28
|
+
# Value of the `payouts` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
|
|
31
|
+
# @return [Inttegro::Payout::OperatingPolicyCapabilities, nil]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] payment_methods
|
|
34
|
+
# Value of the `payment_methods` field in the Inttegro API payload.
|
|
35
|
+
#
|
|
36
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payment_methods`.
|
|
37
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities, nil]
|
|
38
|
+
class OperatingPolicyCapabilities < T::Struct
|
|
39
|
+
const :payments, T.nilable(Inttegro::Payment::OperatingPolicyCapabilities), default: nil
|
|
40
|
+
const :payouts, T.nilable(Inttegro::Payout::OperatingPolicyCapabilities), default: nil
|
|
41
|
+
const :payment_methods, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities), default: nil
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "../payment/operating_policy_capabilities_input"
|
|
8
|
+
require_relative "../payment_method/operating_policy_payment_methods_capabilities"
|
|
9
|
+
require_relative "../payout/operating_policy_capabilities_input"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
module Shared
|
|
13
|
+
# Typed representation of the operating policy capabilities input object in the Inttegro API.
|
|
14
|
+
#
|
|
15
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
16
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
17
|
+
# field names and serialized enum values.
|
|
18
|
+
#
|
|
19
|
+
# @api public
|
|
20
|
+
#
|
|
21
|
+
# @!attribute [r] payments
|
|
22
|
+
# Value of the `payments` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payments`.
|
|
25
|
+
# @return [Inttegro::Payment::OperatingPolicyCapabilitiesInput, nil]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] payouts
|
|
28
|
+
# Value of the `payouts` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payouts`.
|
|
31
|
+
# @return [Inttegro::Payout::OperatingPolicyCapabilitiesInput, nil]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] payment_methods
|
|
34
|
+
# Value of the `payment_methods` field in the Inttegro API payload.
|
|
35
|
+
#
|
|
36
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `payment_methods`.
|
|
37
|
+
# @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities, nil]
|
|
38
|
+
class OperatingPolicyCapabilitiesInput < T::Struct
|
|
39
|
+
const :payments, T.nilable(Inttegro::Payment::OperatingPolicyCapabilitiesInput), default: nil
|
|
40
|
+
const :payouts, T.nilable(Inttegro::Payout::OperatingPolicyCapabilitiesInput), default: nil
|
|
41
|
+
const :payment_methods, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodsCapabilities), default: nil
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "operating_policy"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the operating policy response object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] operating_policy
|
|
20
|
+
# Value of the `operating_policy` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `operating_policy`.
|
|
23
|
+
# @return [Inttegro::Shared::OperatingPolicy]
|
|
24
|
+
class OperatingPolicyResponse < T::Struct
|
|
25
|
+
const :operating_policy, Inttegro::Shared::OperatingPolicy
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "inline_operating_policy_selection"
|
|
8
|
+
require_relative "operating_policy_selection_by_id"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
module Shared
|
|
12
|
+
# Mutually exclusive named-template or inline operating policy selection. Available only to
|
|
13
|
+
# internal Commerce services and `children_policy_v1` private-beta callers.
|
|
14
|
+
#
|
|
15
|
+
# @api public
|
|
16
|
+
# @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection]
|
|
17
|
+
OperatingPolicySelection = T.type_alias { T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection) }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# Typed representation of the operating policy selection by id object in the Inttegro API.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] id
|
|
19
|
+
# Active operating policy owned by the placement parent.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `id`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
class OperatingPolicySelectionByID < T::Struct
|
|
24
|
+
const :id, String
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "operating_policy_source_type"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the operating policy source object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] type
|
|
20
|
+
# Value of the `type` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `type`.
|
|
23
|
+
# @return [Inttegro::Shared::OperatingPolicySourceType]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] id
|
|
26
|
+
# Template identifier when `type` is `template`.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] version
|
|
32
|
+
# Template version when `type` is `template`.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
|
|
35
|
+
# @return [Integer, nil]
|
|
36
|
+
class OperatingPolicySource < T::Struct
|
|
37
|
+
const :type, Inttegro::Shared::OperatingPolicySourceType
|
|
38
|
+
const :id, T.nilable(String), default: nil
|
|
39
|
+
const :version, T.nilable(Integer), default: nil
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# String-backed values accepted by the Inttegro API for
|
|
11
|
+
# Inttegro::Shared::OperatingPolicySourceType.
|
|
12
|
+
#
|
|
13
|
+
# Use the constants below when constructing a request. `#serialize` returns the documented
|
|
14
|
+
# string wire value received from or sent to the API.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
class OperatingPolicySourceType < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `inline`.
|
|
20
|
+
# @return [Inttegro::Shared::OperatingPolicySourceType]
|
|
21
|
+
INLINE = new("inline")
|
|
22
|
+
# Serialized wire value: `template`.
|
|
23
|
+
# @return [Inttegro::Shared::OperatingPolicySourceType]
|
|
24
|
+
TEMPLATE = new("template")
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# Typed representation of the policy amount range object in the Inttegro API.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] min
|
|
19
|
+
# Inclusive minimum amount in minor currency units.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `min`.
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] max
|
|
25
|
+
# Inclusive maximum amount in minor currency units.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `max`.
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
class PolicyAmountRange < T::Struct
|
|
30
|
+
const :min, Integer
|
|
31
|
+
const :max, Integer
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|