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
|
@@ -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,63 @@
|
|
|
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 versions page 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] number
|
|
20
|
+
# Value of the `number` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `number`.
|
|
23
|
+
# @return [Integer]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] size
|
|
26
|
+
# Value of the `size` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `size`.
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] count
|
|
32
|
+
# Value of the `count` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Required in the API payload. Wire name: `count`.
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] total
|
|
38
|
+
# Value of the `total` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Required in the API payload. Wire name: `total`.
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] has_more
|
|
44
|
+
# Value of the `has_more` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Required in the API payload. Wire name: `has_more`.
|
|
47
|
+
# @return [Boolean]
|
|
48
|
+
#
|
|
49
|
+
# @!attribute [r] versions
|
|
50
|
+
# Value of the `versions` field in the Inttegro API payload.
|
|
51
|
+
#
|
|
52
|
+
# Required in the API payload. Wire name: `versions`.
|
|
53
|
+
# @return [Array<Inttegro::Shared::OperatingPolicy>]
|
|
54
|
+
class OperatingPolicyVersionsPage < T::Struct
|
|
55
|
+
const :number, Integer
|
|
56
|
+
const :size, Integer
|
|
57
|
+
const :count, Integer
|
|
58
|
+
const :total, Integer
|
|
59
|
+
const :has_more, T::Boolean
|
|
60
|
+
const :versions, T::Array[Inttegro::Shared::OperatingPolicy]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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_versions_page"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the operating policy versions page response object in the Inttegro
|
|
12
|
+
# 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] page
|
|
21
|
+
# Value of the `page` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `page`.
|
|
24
|
+
# @return [Inttegro::Shared::OperatingPolicyVersionsPage]
|
|
25
|
+
class OperatingPolicyVersionsPageResponse < T::Struct
|
|
26
|
+
const :page, Inttegro::Shared::OperatingPolicyVersionsPage
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
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
|
+
module Shared
|
|
10
|
+
# Typed representation of the page children policy versions request object in the Inttegro
|
|
11
|
+
# 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] number
|
|
20
|
+
# Value of the `number` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
|
|
23
|
+
# @return [Integer, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] size
|
|
26
|
+
# Value of the `size` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `size`.
|
|
29
|
+
# @return [Integer, nil]
|
|
30
|
+
class PageChildrenPolicyVersionsRequest < T::Struct
|
|
31
|
+
const :number, T.nilable(Integer), default: nil
|
|
32
|
+
const :size, T.nilable(Integer), default: nil
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# Typed representation of the page operating policy versions request object in the Inttegro
|
|
11
|
+
# API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] operating_policy_id
|
|
20
|
+
# Value of the `operating_policy_id` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `operating_policy_id`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] number
|
|
26
|
+
# Value of the `number` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
|
|
29
|
+
# @return [Integer, nil]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] size
|
|
32
|
+
# Value of the `size` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `size`.
|
|
35
|
+
# @return [Integer, nil]
|
|
36
|
+
class PageOperatingPolicyVersionsRequest < T::Struct
|
|
37
|
+
const :operating_policy_id, String
|
|
38
|
+
const :number, T.nilable(Integer), default: nil
|
|
39
|
+
const :size, T.nilable(Integer), default: nil
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# Typed representation of the policy amount range object in the Inttegro API.
|
|
11
|
+
#
|
|
12
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
14
|
+
# field names and serialized enum values.
|
|
15
|
+
#
|
|
16
|
+
# @api public
|
|
17
|
+
#
|
|
18
|
+
# @!attribute [r] min
|
|
19
|
+
# Inclusive minimum amount in minor currency units.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `min`.
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] max
|
|
25
|
+
# Inclusive maximum amount in minor currency units.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `max`.
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
class PolicyAmountRange < T::Struct
|
|
30
|
+
const :min, Integer
|
|
31
|
+
const :max, Integer
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "policy_bt_aging_spec_id"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the policy bt aging spec object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] id
|
|
20
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `id`.
|
|
23
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecId]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] t_plus
|
|
26
|
+
# Platform-owned whole-hour aging duration.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `t_plus`.
|
|
29
|
+
# @return [String]
|
|
30
|
+
class PolicyBTAgingSpec < T::Struct
|
|
31
|
+
const :id, Inttegro::Shared::PolicyBTAgingSpecId
|
|
32
|
+
const :t_plus, String
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# String-backed values accepted by the Inttegro API for Inttegro::Shared::PolicyBTAgingSpecId.
|
|
11
|
+
#
|
|
12
|
+
# Use the constants below when constructing a request. `#serialize` returns the documented
|
|
13
|
+
# string wire value received from or sent to the API.
|
|
14
|
+
#
|
|
15
|
+
# @api public
|
|
16
|
+
class PolicyBTAgingSpecId < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `bt_aging_spec_immediate`.
|
|
19
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecId]
|
|
20
|
+
BT_AGING_SPEC_IMMEDIATE = new("bt_aging_spec_immediate")
|
|
21
|
+
# Serialized wire value: `bt_aging_spec_24_hourly`.
|
|
22
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecId]
|
|
23
|
+
BT_AGING_SPEC_24_HOURLY = new("bt_aging_spec_24_hourly")
|
|
24
|
+
# Serialized wire value: `bt_aging_spec_48_hourly`.
|
|
25
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecId]
|
|
26
|
+
BT_AGING_SPEC_48_HOURLY = new("bt_aging_spec_48_hourly")
|
|
27
|
+
# Serialized wire value: `bt_aging_spec_168_hourly`.
|
|
28
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecId]
|
|
29
|
+
BT_AGING_SPEC_168_HOURLY = new("bt_aging_spec_168_hourly")
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "policy_bt_aging_spec_reference_id"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the policy bt aging spec reference object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] id
|
|
20
|
+
# Public aging-specification identifier. The platform determines `t_plus`.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `id`.
|
|
23
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
|
|
24
|
+
class PolicyBTAgingSpecReference < T::Struct
|
|
25
|
+
const :id, Inttegro::Shared::PolicyBTAgingSpecReferenceId
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
module Shared
|
|
10
|
+
# Public aging-specification identifier. The platform determines `t_plus`.
|
|
11
|
+
#
|
|
12
|
+
# Use the constants below when constructing a request. `#serialize` returns the documented
|
|
13
|
+
# string wire value received from or sent to the API.
|
|
14
|
+
#
|
|
15
|
+
# @api public
|
|
16
|
+
class PolicyBTAgingSpecReferenceId < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `bt_aging_spec_immediate`.
|
|
19
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
|
|
20
|
+
BT_AGING_SPEC_IMMEDIATE = new("bt_aging_spec_immediate")
|
|
21
|
+
# Serialized wire value: `bt_aging_spec_24_hourly`.
|
|
22
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
|
|
23
|
+
BT_AGING_SPEC_24_HOURLY = new("bt_aging_spec_24_hourly")
|
|
24
|
+
# Serialized wire value: `bt_aging_spec_48_hourly`.
|
|
25
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
|
|
26
|
+
BT_AGING_SPEC_48_HOURLY = new("bt_aging_spec_48_hourly")
|
|
27
|
+
# Serialized wire value: `bt_aging_spec_168_hourly`.
|
|
28
|
+
# @return [Inttegro::Shared::PolicyBTAgingSpecReferenceId]
|
|
29
|
+
BT_AGING_SPEC_168_HOURLY = new("bt_aging_spec_168_hourly")
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "policy_amount_range"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the policy limits object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] amount
|
|
20
|
+
# Value of the `amount` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `amount`.
|
|
23
|
+
# @return [Inttegro::Shared::PolicyAmountRange]
|
|
24
|
+
class PolicyLimits < T::Struct
|
|
25
|
+
const :amount, Inttegro::Shared::PolicyAmountRange
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
require_relative "operating_policy_capabilities_input"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Shared
|
|
11
|
+
# Typed representation of the update operating policy request object in the Inttegro API.
|
|
12
|
+
#
|
|
13
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
14
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
15
|
+
# field names and serialized enum values.
|
|
16
|
+
#
|
|
17
|
+
# @api public
|
|
18
|
+
#
|
|
19
|
+
# @!attribute [r] operating_policy_id
|
|
20
|
+
# Value of the `operating_policy_id` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `operating_policy_id`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] expected_version
|
|
26
|
+
# Value of the `expected_version` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `expected_version`.
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] name
|
|
32
|
+
# Value of the `name` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `name`.
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] description
|
|
38
|
+
# Value of the `description` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `description`.
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] capabilities
|
|
44
|
+
# Value of the `capabilities` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `capabilities`.
|
|
47
|
+
# @return [Inttegro::Shared::OperatingPolicyCapabilitiesInput, nil]
|
|
48
|
+
class UpdateOperatingPolicyRequest < T::Struct
|
|
49
|
+
const :operating_policy_id, String
|
|
50
|
+
const :expected_version, Integer
|
|
51
|
+
const :name, T.nilable(String), default: nil
|
|
52
|
+
const :description, T.nilable(String), default: nil
|
|
53
|
+
const :capabilities, T.nilable(Inttegro::Shared::OperatingPolicyCapabilitiesInput), default: nil
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
data/lib/inttegro/version.rb
CHANGED
data/rbi/inttegro/generated.rbi
CHANGED
|
@@ -50,6 +50,25 @@ module Inttegro
|
|
|
50
50
|
def lookup(broadcast_id:); end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
class ChildrenPolicies
|
|
54
|
+
sig { params(http: Inttegro::HTTPClient).void }
|
|
55
|
+
def initialize(http); end
|
|
56
|
+
|
|
57
|
+
sig { params(version: T.nilable(Integer)).returns(Inttegro::Shared::ChildrenPolicy) }
|
|
58
|
+
def lookup(version: nil); end
|
|
59
|
+
|
|
60
|
+
sig { params(number: T.nilable(Inttegro::Types::WireValue), size: T.nilable(Inttegro::Types::WireValue)).returns(Inttegro::Shared::ChildrenPolicyVersionsPage) }
|
|
61
|
+
def page(number: nil, size: nil); end
|
|
62
|
+
|
|
63
|
+
private
|
|
64
|
+
|
|
65
|
+
sig { params(number: Inttegro::Types::WireValue, size: Inttegro::Types::WireValue).returns(Inttegro::Types::Payload) }
|
|
66
|
+
def pagination_payload(number, size); end
|
|
67
|
+
|
|
68
|
+
sig { params(version: T.nilable(Integer)).void }
|
|
69
|
+
def validate_version!(version); end
|
|
70
|
+
end
|
|
71
|
+
|
|
53
72
|
class Chimes
|
|
54
73
|
sig { params(http: Inttegro::HTTPClient).void }
|
|
55
74
|
def initialize(http); end
|
|
@@ -147,10 +166,10 @@ module Inttegro
|
|
|
147
166
|
sig { params(http: Inttegro::HTTPClient).void }
|
|
148
167
|
def initialize(http); end
|
|
149
168
|
|
|
150
|
-
sig { params(payload: T.any(Inttegro::FinancialAccount::
|
|
169
|
+
sig { params(payload: T.any(T.any(Inttegro::FinancialAccount::WalletRequest, Inttegro::FinancialAccount::BankRequest, Inttegro::FinancialAccount::DoshRequest), Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
|
|
151
170
|
def connect(payload); end
|
|
152
171
|
|
|
153
|
-
sig { params(payload: T.any(Inttegro::FinancialAccount::
|
|
172
|
+
sig { params(payload: T.any(T.any(Inttegro::FinancialAccount::WalletRequest, Inttegro::FinancialAccount::BankRequest, Inttegro::FinancialAccount::DoshRequest), Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
|
|
154
173
|
def create(payload); end
|
|
155
174
|
|
|
156
175
|
sig { params(account_id: String).returns(Inttegro::FinancialAccount) }
|
|
@@ -219,7 +238,7 @@ module Inttegro
|
|
|
219
238
|
sig { params(template_id: String, idempotency_key: T.nilable(String)).returns(Inttegro::MessageTemplate) }
|
|
220
239
|
def archive(template_id:, idempotency_key: nil); end
|
|
221
240
|
|
|
222
|
-
sig { params(payload: T.any(Inttegro::MessageTemplate::
|
|
241
|
+
sig { params(payload: T.any(T.any(Inttegro::MessageTemplate::CreateSMSRequest, Inttegro::MessageTemplate::CreateEmailRequest), Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::MessageTemplate) }
|
|
223
242
|
def create(payload, idempotency_key: nil); end
|
|
224
243
|
|
|
225
244
|
sig { params(template_id: String).returns(Inttegro::MessageTemplate) }
|
|
@@ -243,6 +262,28 @@ module Inttegro
|
|
|
243
262
|
def idempotency_headers(idempotency_key); end
|
|
244
263
|
end
|
|
245
264
|
|
|
265
|
+
class OperatingPolicies
|
|
266
|
+
sig { params(http: Inttegro::HTTPClient).void }
|
|
267
|
+
def initialize(http); end
|
|
268
|
+
|
|
269
|
+
sig { params(payload: T.any(Inttegro::Shared::CreateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
|
|
270
|
+
def create(payload); end
|
|
271
|
+
|
|
272
|
+
sig { params(operating_policy_id: String, version: T.nilable(Integer)).returns(Inttegro::Shared::OperatingPolicy) }
|
|
273
|
+
def lookup(operating_policy_id, version: nil); end
|
|
274
|
+
|
|
275
|
+
sig { params(operating_policy_id: String, number: T.nilable(Inttegro::Types::WireValue), size: T.nilable(Inttegro::Types::WireValue)).returns(Inttegro::Shared::OperatingPolicyVersionsPage) }
|
|
276
|
+
def page(operating_policy_id, number: nil, size: nil); end
|
|
277
|
+
|
|
278
|
+
sig { params(payload: T.any(Inttegro::Shared::UpdateOperatingPolicyRequest, Inttegro::Types::Payload)).returns(Inttegro::Shared::OperatingPolicy) }
|
|
279
|
+
def update(payload); end
|
|
280
|
+
|
|
281
|
+
private
|
|
282
|
+
|
|
283
|
+
sig { params(version: T.nilable(Integer)).void }
|
|
284
|
+
def validate_version!(version); end
|
|
285
|
+
end
|
|
286
|
+
|
|
246
287
|
class Orders
|
|
247
288
|
sig { params(http: Inttegro::HTTPClient).void }
|
|
248
289
|
def initialize(http); end
|
|
@@ -532,7 +573,7 @@ module Inttegro
|
|
|
532
573
|
sig { params(payload: T.nilable(T.any(Inttegro::UploadRequest::PageRequest, Inttegro::Types::Payload))).returns(Inttegro::UploadRequest::Page) }
|
|
533
574
|
def page(payload = nil); end
|
|
534
575
|
|
|
535
|
-
sig { params(payload: T.any(Inttegro::UploadRequest::
|
|
576
|
+
sig { params(payload: T.any(T.any(Inttegro::UploadRequest::ReviewAttemptByIDRequest, Inttegro::UploadRequest::ReviewAttemptByOrdinalRequest), Inttegro::Types::Payload), idempotency_key: T.nilable(String)).returns(Inttegro::UploadRequest::Details) }
|
|
536
577
|
def review(payload, idempotency_key: nil); end
|
|
537
578
|
|
|
538
579
|
private
|