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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/lib/inttegro/app/application.rb +18 -0
  4. data/lib/inttegro/app/create_request.rb +9 -0
  5. data/lib/inttegro/app/looked_up.rb +18 -0
  6. data/lib/inttegro/app/operating_policy.rb +36 -0
  7. data/lib/inttegro/app/update_request.rb +9 -0
  8. data/lib/inttegro/app/updated.rb +18 -0
  9. data/lib/inttegro/balance_transaction/balance_transaction.rb +4 -3
  10. data/lib/inttegro/broadcast/request.rb +5 -3
  11. data/lib/inttegro/checkout/customer_data.rb +41 -0
  12. data/lib/inttegro/checkout/lookup_request.rb +3 -3
  13. data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb} +2 -2
  14. data/lib/inttegro/checkout/lookup_response.rb +8 -17
  15. data/lib/inttegro/checkout/order_line_item_group.rb +5 -3
  16. data/lib/inttegro/checkout/pay_request.rb +40 -3
  17. data/lib/inttegro/checkout/pay_request_selected_amount.rb +36 -0
  18. data/lib/inttegro/checkout/select_amount_request_variant2.rb +6 -6
  19. data/lib/inttegro/checkout/select_amount_request_variant2_line_items_item.rb +36 -0
  20. data/lib/inttegro/chime/inline_recipient.rb +4 -4
  21. data/lib/inttegro/chime/recipient.rb +4 -3
  22. data/lib/inttegro/chime/send_request.rb +5 -3
  23. data/lib/inttegro/chime/{inline_recipient_variant1.rb → send_request_recipient_variant1_variant1.rb} +9 -8
  24. data/lib/inttegro/chime/{inline_recipient_variant1_phone.rb → send_request_recipient_variant1_variant1_phone.rb} +3 -2
  25. data/lib/inttegro/chime/{inline_recipient_variant1_type.rb → send_request_recipient_variant1_variant1_type.rb} +3 -3
  26. data/lib/inttegro/chime/{inline_recipient_variant2.rb → send_request_recipient_variant1_variant2.rb} +9 -8
  27. data/lib/inttegro/chime/{inline_recipient_variant2_email.rb → send_request_recipient_variant1_variant2_email.rb} +3 -2
  28. data/lib/inttegro/chime/{inline_recipient_variant2_type.rb → send_request_recipient_variant1_variant2_type.rb} +3 -3
  29. data/lib/inttegro/client.rb +10 -0
  30. data/lib/inttegro/financial_account/connected.rb +9 -0
  31. data/lib/inttegro/financial_account/created.rb +9 -0
  32. data/lib/inttegro/financial_account/details.rb +9 -0
  33. data/lib/inttegro/financial_account/financial_account.rb +9 -0
  34. data/lib/inttegro/financial_account/name_enquiry.rb +42 -0
  35. data/lib/inttegro/financial_account/updated.rb +9 -0
  36. data/lib/inttegro/generated/enums.rb +5 -2
  37. data/lib/inttegro/generated/models.rb +77 -31
  38. data/lib/inttegro/generated/operations.rb +26 -8
  39. data/lib/inttegro/message_template/create_email_request.rb +2 -3
  40. data/lib/inttegro/message_template/email_content.rb +6 -3
  41. data/lib/inttegro/message_template/email_content_from.rb +36 -0
  42. data/lib/inttegro/message_template/message_template.rb +2 -3
  43. data/lib/inttegro/message_template/rendered.rb +2 -3
  44. data/lib/inttegro/message_template/update_request.rb +2 -3
  45. data/lib/inttegro/order/create_existing_customer.rb +5 -3
  46. data/lib/inttegro/order/create_new_customer.rb +5 -3
  47. data/lib/inttegro/order/line_item_group.rb +6 -3
  48. data/lib/inttegro/order/update_request.rb +5 -3
  49. data/lib/inttegro/payment/children_policy_capabilities.rb +35 -0
  50. data/lib/inttegro/payment/operating_policy_capabilities.rb +35 -0
  51. data/lib/inttegro/payment/operating_policy_capabilities_input.rb +35 -0
  52. data/lib/inttegro/payment_method/children_policy_payment_method_capabilities.rb +35 -0
  53. data/lib/inttegro/payment_method/children_policy_payment_methods_capabilities.rb +50 -0
  54. data/lib/inttegro/payment_method/operating_policy_payment_method_capabilities.rb +35 -0
  55. data/lib/inttegro/payment_method/operating_policy_payment_methods_capabilities.rb +50 -0
  56. data/lib/inttegro/payout/amount_limits.rb +9 -7
  57. data/lib/inttegro/payout/children_policy_capabilities.rb +43 -0
  58. data/lib/inttegro/payout/limit_value.rb +28 -0
  59. data/lib/inttegro/payout/operating_policy_capabilities.rb +43 -0
  60. data/lib/inttegro/payout/operating_policy_capabilities_input.rb +43 -0
  61. data/lib/inttegro/payout/settings_limits.rb +3 -3
  62. data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
  63. data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +4 -4
  64. data/lib/inttegro/product/line_item.rb +6 -3
  65. data/lib/inttegro/product/media.rb +8 -7
  66. data/lib/inttegro/product/update_request.rb +1 -1
  67. data/lib/inttegro/purchase_intent/merchant.rb +14 -19
  68. data/lib/inttegro/purchase_intent/merchant_asset.rb +34 -0
  69. data/lib/inttegro/purchase_intent/merchant_branding.rb +50 -0
  70. data/lib/inttegro/purchase_intent/merchant_color_scheme.rb +76 -0
  71. data/lib/inttegro/purchase_intent/merchant_profile.rb +42 -0
  72. data/lib/inttegro/purchase_intent/merchant_support.rb +34 -0
  73. data/lib/inttegro/purchase_intent/purchase_intent.rb +10 -2
  74. data/lib/inttegro/refund/line_item.rb +5 -3
  75. data/lib/inttegro/refund/payment_method_settlement.rb +4 -3
  76. data/lib/inttegro/refund/refund.rb +4 -3
  77. data/lib/inttegro/resources/children_policies.rb +61 -0
  78. data/lib/inttegro/resources/operating_policies.rb +88 -0
  79. data/lib/inttegro/schedule/chime_request.rb +5 -3
  80. data/lib/inttegro/shared/children_policy.rb +84 -0
  81. data/lib/inttegro/shared/children_policy_capabilities.rb +44 -0
  82. data/lib/inttegro/shared/children_policy_response.rb +28 -0
  83. data/lib/inttegro/shared/children_policy_versions_page.rb +63 -0
  84. data/lib/inttegro/shared/children_policy_versions_page_response.rb +29 -0
  85. data/lib/inttegro/shared/create_operating_policy_request.rb +42 -0
  86. data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
  87. data/lib/inttegro/shared/lookup_children_policy_request.rb +27 -0
  88. data/lib/inttegro/shared/lookup_operating_policy_request.rb +34 -0
  89. data/lib/inttegro/shared/operating_policy.rb +98 -0
  90. data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
  91. data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
  92. data/lib/inttegro/shared/operating_policy_response.rb +28 -0
  93. data/lib/inttegro/shared/operating_policy_selection.rb +18 -0
  94. data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
  95. data/lib/inttegro/shared/operating_policy_source.rb +42 -0
  96. data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
  97. data/lib/inttegro/shared/operating_policy_versions_page.rb +63 -0
  98. data/lib/inttegro/shared/operating_policy_versions_page_response.rb +29 -0
  99. data/lib/inttegro/shared/page_children_policy_versions_request.rb +35 -0
  100. data/lib/inttegro/shared/page_operating_policy_versions_request.rb +42 -0
  101. data/lib/inttegro/shared/policy_amount_range.rb +34 -0
  102. data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
  103. data/lib/inttegro/shared/policy_bt_aging_spec_id.rb +33 -0
  104. data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
  105. data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
  106. data/lib/inttegro/shared/policy_limits.rb +28 -0
  107. data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
  108. data/lib/inttegro/version.rb +1 -1
  109. data/rbi/inttegro/generated.rbi +45 -4
  110. metadata +61 -10
  111. data/lib/inttegro/checkout/amount_selection.rb +0 -84
@@ -0,0 +1,84 @@
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] 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::ChildrenPolicyCapabilities]
54
+ #
55
+ # @!attribute [r] created_at
56
+ # Value of the `created_at` field in the Inttegro API payload.
57
+ #
58
+ # Required in the API payload. Wire name: `created_at`.
59
+ # @return [Time]
60
+ #
61
+ # @!attribute [r] updated_at
62
+ # Value of the `updated_at` field in the Inttegro API payload.
63
+ #
64
+ # Required in the API payload. Wire name: `updated_at`.
65
+ # @return [Time]
66
+ #
67
+ # @!attribute [r] version_created_at
68
+ # Value of the `version_created_at` field in the Inttegro API payload.
69
+ #
70
+ # Required in the API payload. Wire name: `version_created_at`.
71
+ # @return [Time]
72
+ class ChildrenPolicy < T::Struct
73
+ const :id, String
74
+ const :version, Integer
75
+ const :active_version, Integer
76
+ const :name, String
77
+ const :description, T.nilable(String), default: nil
78
+ const :capabilities, Inttegro::Shared::ChildrenPolicyCapabilities
79
+ const :created_at, Time
80
+ const :updated_at, Time
81
+ const :version_created_at, Time
82
+ end
83
+ end
84
+ 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,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 "children_policy"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children 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::ChildrenPolicy>]
54
+ class ChildrenPolicyVersionsPage < 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::ChildrenPolicy]
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 "children_policy_versions_page"
8
+
9
+ module Inttegro
10
+ module Shared
11
+ # Typed representation of the children 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::ChildrenPolicyVersionsPage]
25
+ class ChildrenPolicyVersionsPageResponse < T::Struct
26
+ const :page, Inttegro::Shared::ChildrenPolicyVersionsPage
27
+ end
28
+ end
29
+ 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,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 children 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] version
19
+ # Immutable version to return. Omit to return the latest active version.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
22
+ # @return [Integer, nil]
23
+ class LookupChildrenPolicyRequest < T::Struct
24
+ const :version, T.nilable(Integer), default: nil
25
+ end
26
+ end
27
+ 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 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
+ #
24
+ # @!attribute [r] version
25
+ # Immutable version to return. Omit to return the latest active version.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `version`.
28
+ # @return [Integer, nil]
29
+ class LookupOperatingPolicyRequest < T::Struct
30
+ const :operating_policy_id, String
31
+ const :version, T.nilable(Integer), default: nil
32
+ end
33
+ end
34
+ 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,18 @@
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.
13
+ #
14
+ # @api public
15
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection]
16
+ OperatingPolicySelection = T.type_alias { T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection) }
17
+ end
18
+ 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