inttegro 10.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/inttegro/app/application.rb +20 -1
- data/lib/inttegro/app/capabilities.rb +11 -0
- data/lib/inttegro/app/capabilities_response.rb +28 -0
- data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
- data/lib/inttegro/app/capability_projection.rb +39 -0
- data/lib/inttegro/app/capability_requirement.rb +41 -0
- data/lib/inttegro/app/capability_requirements.rb +28 -0
- data/lib/inttegro/app/create_request.rb +10 -0
- data/lib/inttegro/app/enabled_capability.rb +35 -0
- data/lib/inttegro/app/enabled_capability_status.rb +25 -0
- data/lib/inttegro/app/looked_up.rb +27 -0
- data/lib/inttegro/app/looked_up_relationship.rb +58 -0
- data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
- data/lib/inttegro/app/lookup_capabilities_request.rb +21 -0
- data/lib/inttegro/app/operating_policy.rb +37 -0
- data/lib/inttegro/app/pending_review_capability.rb +43 -0
- data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
- data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/relationship.rb +7 -63
- data/lib/inttegro/app/relationship_parent.rb +41 -0
- data/lib/inttegro/app/restricted_capability.rb +51 -0
- data/lib/inttegro/app/restricted_capability_status.rb +25 -0
- data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
- data/lib/inttegro/app/update_request.rb +10 -0
- data/lib/inttegro/app/updated.rb +19 -0
- data/lib/inttegro/balance_transaction/balance_transaction.rb +4 -3
- data/lib/inttegro/broadcast/request.rb +5 -3
- data/lib/inttegro/checkout/customer_data.rb +41 -0
- data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
- data/lib/inttegro/checkout/lookup_request.rb +3 -3
- data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb} +2 -2
- data/lib/inttegro/checkout/lookup_response.rb +8 -17
- data/lib/inttegro/checkout/order_line_item_group.rb +5 -3
- data/lib/inttegro/checkout/pay_request.rb +40 -3
- data/lib/inttegro/checkout/pay_request_selected_amount.rb +36 -0
- data/lib/inttegro/checkout/select_amount_request_variant2.rb +6 -6
- data/lib/inttegro/checkout/select_amount_request_variant2_line_items_item.rb +36 -0
- data/lib/inttegro/chime/inline_recipient.rb +4 -4
- data/lib/inttegro/chime/recipient.rb +4 -3
- data/lib/inttegro/chime/send_request.rb +5 -3
- data/lib/inttegro/chime/{inline_recipient_variant1.rb → send_request_recipient_variant1_variant1.rb} +9 -8
- data/lib/inttegro/chime/{inline_recipient_variant1_phone.rb → send_request_recipient_variant1_variant1_phone.rb} +3 -2
- data/lib/inttegro/chime/{inline_recipient_variant1_type.rb → send_request_recipient_variant1_variant1_type.rb} +3 -3
- data/lib/inttegro/chime/{inline_recipient_variant2.rb → send_request_recipient_variant1_variant2.rb} +9 -8
- data/lib/inttegro/chime/{inline_recipient_variant2_email.rb → send_request_recipient_variant1_variant2_email.rb} +3 -2
- data/lib/inttegro/chime/{inline_recipient_variant2_type.rb → send_request_recipient_variant1_variant2_type.rb} +3 -3
- data/lib/inttegro/client.rb +10 -0
- data/lib/inttegro/financial_account/connected.rb +9 -0
- data/lib/inttegro/financial_account/created.rb +9 -0
- data/lib/inttegro/financial_account/details.rb +9 -0
- data/lib/inttegro/financial_account/financial_account.rb +9 -0
- data/lib/inttegro/financial_account/name_enquiry.rb +42 -0
- data/lib/inttegro/financial_account/updated.rb +9 -0
- data/lib/inttegro/generated/enums.rb +11 -2
- data/lib/inttegro/generated/models.rb +88 -34
- data/lib/inttegro/generated/operations.rb +23 -8
- data/lib/inttegro/message_template/create_email_request.rb +2 -3
- data/lib/inttegro/message_template/email_content.rb +6 -3
- data/lib/inttegro/message_template/email_content_from.rb +36 -0
- data/lib/inttegro/message_template/message_template.rb +2 -3
- data/lib/inttegro/message_template/rendered.rb +2 -3
- data/lib/inttegro/message_template/update_request.rb +2 -3
- data/lib/inttegro/models.rb +1 -0
- data/lib/inttegro/order/create_existing_customer.rb +5 -3
- data/lib/inttegro/order/create_new_customer.rb +5 -3
- data/lib/inttegro/order/invoice_format.rb +0 -8
- data/lib/inttegro/order/line_item_group.rb +6 -3
- data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
- data/lib/inttegro/order/receipt_format.rb +35 -0
- data/lib/inttegro/order/update_request.rb +5 -3
- data/lib/inttegro/payment/children_policy_capabilities.rb +35 -0
- data/lib/inttegro/payment/operating_policy_capabilities.rb +35 -0
- data/lib/inttegro/payment/operating_policy_capabilities_input.rb +35 -0
- data/lib/inttegro/payment/payment.rb +8 -0
- data/lib/inttegro/payment_method/children_policy_payment_method_capabilities.rb +35 -0
- data/lib/inttegro/payment_method/children_policy_payment_methods_capabilities.rb +50 -0
- data/lib/inttegro/payment_method/operating_policy_payment_method_capabilities.rb +35 -0
- data/lib/inttegro/payment_method/operating_policy_payment_methods_capabilities.rb +50 -0
- data/lib/inttegro/payout/amount_limits.rb +37 -0
- data/lib/inttegro/payout/cancellation.rb +42 -0
- data/lib/inttegro/payout/cancellation_reason.rb +30 -0
- data/lib/inttegro/payout/children_policy_capabilities.rb +43 -0
- data/lib/inttegro/payout/limit_value.rb +28 -0
- data/lib/inttegro/payout/operating_policy_capabilities.rb +43 -0
- data/lib/inttegro/payout/operating_policy_capabilities_input.rb +43 -0
- data/lib/inttegro/payout/payout.rb +9 -0
- data/lib/inttegro/payout/settings_limits.rb +28 -0
- data/lib/inttegro/payout/settings_lookup.rb +8 -0
- data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
- data/lib/inttegro/payout/settings_mutation.rb +8 -0
- data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +4 -4
- data/lib/inttegro/product/line_item.rb +6 -3
- data/lib/inttegro/product/media.rb +8 -7
- data/lib/inttegro/product/update_request.rb +1 -1
- data/lib/inttegro/purchase_intent/merchant.rb +14 -19
- data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → purchase_intent/merchant_asset.rb} +14 -7
- data/lib/inttegro/purchase_intent/merchant_branding.rb +50 -0
- data/lib/inttegro/purchase_intent/merchant_color_scheme.rb +76 -0
- data/lib/inttegro/purchase_intent/merchant_profile.rb +42 -0
- data/lib/inttegro/purchase_intent/merchant_support.rb +34 -0
- data/lib/inttegro/purchase_intent/purchase_intent.rb +10 -2
- data/lib/inttegro/refund/line_item.rb +5 -3
- data/lib/inttegro/refund/payment_method_settlement.rb +4 -3
- data/lib/inttegro/refund/refund.rb +4 -3
- data/lib/inttegro/resources/apps.rb +12 -0
- data/lib/inttegro/resources/children_policies.rb +26 -0
- data/lib/inttegro/resources/operating_policies.rb +52 -0
- data/lib/inttegro/schedule/chime_request.rb +5 -3
- data/lib/inttegro/shared/children_policy.rb +91 -0
- data/lib/inttegro/shared/children_policy_capabilities.rb +44 -0
- data/lib/inttegro/shared/children_policy_response.rb +28 -0
- data/lib/inttegro/shared/create_operating_policy_request.rb +42 -0
- data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
- data/lib/inttegro/shared/lookup_children_policy_request.rb +22 -0
- data/lib/inttegro/shared/lookup_operating_policy_request.rb +27 -0
- data/lib/inttegro/shared/operating_policy.rb +98 -0
- data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
- data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
- data/lib/inttegro/shared/operating_policy_response.rb +28 -0
- data/lib/inttegro/shared/operating_policy_selection.rb +19 -0
- data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
- data/lib/inttegro/shared/operating_policy_source.rb +42 -0
- data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
- data/lib/inttegro/shared/policy_amount_range.rb +34 -0
- data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_public_id.rb +34 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
- data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
- data/lib/inttegro/shared/policy_limits.rb +28 -0
- data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
- data/lib/inttegro/version.rb +1 -1
- data/rbi/inttegro/generated.rbi +29 -4
- metadata +79 -13
- data/lib/inttegro/app/relationship_policy.rb +0 -43
- data/lib/inttegro/checkout/amount_selection.rb +0 -84
|
@@ -0,0 +1,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
|
+
class Application
|
|
10
|
+
# String-backed values accepted by the Inttegro API for
|
|
11
|
+
# Inttegro::Application::PendingReviewCapabilityStatusReason.
|
|
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 PendingReviewCapabilityStatusReason < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `setup_incomplete`.
|
|
20
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
21
|
+
SETUP_INCOMPLETE = new("setup_incomplete")
|
|
22
|
+
# Serialized wire value: `account_under_review`.
|
|
23
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
24
|
+
ACCOUNT_UNDER_REVIEW = new("account_under_review")
|
|
25
|
+
# Serialized wire value: `account_restricted`.
|
|
26
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
27
|
+
ACCOUNT_RESTRICTED = new("account_restricted")
|
|
28
|
+
# Serialized wire value: `account_inactive`.
|
|
29
|
+
# @return [Inttegro::Application::PendingReviewCapabilityStatusReason]
|
|
30
|
+
ACCOUNT_INACTIVE = new("account_inactive")
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "relationship_kind"
|
|
8
|
-
require_relative "
|
|
8
|
+
require_relative "relationship_parent"
|
|
9
9
|
require_relative "relationship_status"
|
|
10
10
|
|
|
11
11
|
module Inttegro
|
|
12
12
|
class Application
|
|
13
|
-
#
|
|
13
|
+
# Identifies the created app's direct placement relationship.
|
|
14
14
|
#
|
|
15
15
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
16
16
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -30,11 +30,11 @@ module Inttegro
|
|
|
30
30
|
# Required in the API payload. Wire name: `kind`.
|
|
31
31
|
# @return [Inttegro::Application::RelationshipKind]
|
|
32
32
|
#
|
|
33
|
-
# @!attribute [r]
|
|
34
|
-
#
|
|
33
|
+
# @!attribute [r] parent
|
|
34
|
+
# Application that directly contains the created app.
|
|
35
35
|
#
|
|
36
|
-
# Required in the API payload. Wire name: `
|
|
37
|
-
# @return [
|
|
36
|
+
# Required in the API payload. Wire name: `parent`.
|
|
37
|
+
# @return [Inttegro::Application::RelationshipParent]
|
|
38
38
|
#
|
|
39
39
|
# @!attribute [r] status
|
|
40
40
|
# Value of the `status` field in the Inttegro API payload.
|
|
@@ -42,54 +42,6 @@ module Inttegro
|
|
|
42
42
|
# Required in the API payload. Wire name: `status`.
|
|
43
43
|
# @return [Inttegro::Application::RelationshipStatus]
|
|
44
44
|
#
|
|
45
|
-
# @!attribute [r] actor_app_id
|
|
46
|
-
# Value of the `actor_app_id` field in the Inttegro API payload.
|
|
47
|
-
#
|
|
48
|
-
# Required in the API payload. Wire name: `actor_app_id`.
|
|
49
|
-
# @return [String]
|
|
50
|
-
#
|
|
51
|
-
# @!attribute [r] creator_app_id
|
|
52
|
-
# Value of the `creator_app_id` field in the Inttegro API payload.
|
|
53
|
-
#
|
|
54
|
-
# Required in the API payload. Wire name: `creator_app_id`.
|
|
55
|
-
# @return [String]
|
|
56
|
-
#
|
|
57
|
-
# @!attribute [r] placement_parent_app_id
|
|
58
|
-
# Value of the `placement_parent_app_id` field in the Inttegro API payload.
|
|
59
|
-
#
|
|
60
|
-
# Required in the API payload. Wire name: `placement_parent_app_id`.
|
|
61
|
-
# @return [String]
|
|
62
|
-
#
|
|
63
|
-
# @!attribute [r] subject_app_id
|
|
64
|
-
# Value of the `subject_app_id` field in the Inttegro API payload.
|
|
65
|
-
#
|
|
66
|
-
# Required in the API payload. Wire name: `subject_app_id`.
|
|
67
|
-
# @return [String]
|
|
68
|
-
#
|
|
69
|
-
# @!attribute [r] child_app_id
|
|
70
|
-
# Value of the `child_app_id` field in the Inttegro API payload.
|
|
71
|
-
#
|
|
72
|
-
# Required in the API payload. Wire name: `child_app_id`.
|
|
73
|
-
# @return [String]
|
|
74
|
-
#
|
|
75
|
-
# @!attribute [r] child_standing
|
|
76
|
-
# Value of the `child_standing` field in the Inttegro API payload.
|
|
77
|
-
#
|
|
78
|
-
# Required in the API payload. Wire name: `child_standing`.
|
|
79
|
-
# @return [String]
|
|
80
|
-
#
|
|
81
|
-
# @!attribute [r] relationship_policy
|
|
82
|
-
# Value of the `relationship_policy` field in the Inttegro API payload.
|
|
83
|
-
#
|
|
84
|
-
# Required in the API payload. Wire name: `relationship_policy`.
|
|
85
|
-
# @return [Inttegro::Application::RelationshipPolicy]
|
|
86
|
-
#
|
|
87
|
-
# @!attribute [r] retained_creator_authority_exists
|
|
88
|
-
# Value of the `retained_creator_authority_exists` field in the Inttegro API payload.
|
|
89
|
-
#
|
|
90
|
-
# Required in the API payload. Wire name: `retained_creator_authority_exists`.
|
|
91
|
-
# @return [Boolean]
|
|
92
|
-
#
|
|
93
45
|
# @!attribute [r] created_at
|
|
94
46
|
# Value of the `created_at` field in the Inttegro API payload.
|
|
95
47
|
#
|
|
@@ -98,16 +50,8 @@ module Inttegro
|
|
|
98
50
|
class Relationship < T::Struct
|
|
99
51
|
const :id, String
|
|
100
52
|
const :kind, Inttegro::Application::RelationshipKind
|
|
101
|
-
const :
|
|
53
|
+
const :parent, Inttegro::Application::RelationshipParent
|
|
102
54
|
const :status, Inttegro::Application::RelationshipStatus
|
|
103
|
-
const :actor_app_id, String
|
|
104
|
-
const :creator_app_id, String
|
|
105
|
-
const :placement_parent_app_id, String
|
|
106
|
-
const :subject_app_id, String
|
|
107
|
-
const :child_app_id, String
|
|
108
|
-
const :child_standing, String
|
|
109
|
-
const :relationship_policy, Inttegro::Application::RelationshipPolicy
|
|
110
|
-
const :retained_creator_authority_exists, T::Boolean
|
|
111
55
|
const :created_at, Time
|
|
112
56
|
end
|
|
113
57
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
class Application
|
|
10
|
+
# Application that directly contains the created app.
|
|
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
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `id`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] name
|
|
25
|
+
# Value of the `name` field in the Inttegro API payload.
|
|
26
|
+
#
|
|
27
|
+
# Required in the API payload. Wire name: `name`.
|
|
28
|
+
# @return [String]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] alias
|
|
31
|
+
# Value of the `alias` field in the Inttegro API payload.
|
|
32
|
+
#
|
|
33
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `alias`.
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
class RelationshipParent < T::Struct
|
|
36
|
+
const :id, String
|
|
37
|
+
const :name, String
|
|
38
|
+
const :alias, T.nilable(String), default: nil
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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 "capability_requirements"
|
|
8
|
+
require_relative "restricted_capability_status"
|
|
9
|
+
require_relative "restricted_capability_status_reason"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
class Application
|
|
13
|
+
# Typed representation of the restricted capability 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] status
|
|
22
|
+
# Value of the `status` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Required in the API payload. Wire name: `status`.
|
|
25
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatus]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] status_reason
|
|
28
|
+
# Value of the `status_reason` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Required in the API payload. Wire name: `status_reason`.
|
|
31
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatusReason]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] status_changed_at
|
|
34
|
+
# Value of the `status_changed_at` field in the Inttegro API payload.
|
|
35
|
+
#
|
|
36
|
+
# Required in the API payload. Wire name: `status_changed_at`.
|
|
37
|
+
# @return [Time]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] requirements
|
|
40
|
+
# Value of the `requirements` field in the Inttegro API payload.
|
|
41
|
+
#
|
|
42
|
+
# Required in the API payload. Wire name: `requirements`.
|
|
43
|
+
# @return [Inttegro::Application::CapabilityRequirements]
|
|
44
|
+
class RestrictedCapability < T::Struct
|
|
45
|
+
const :status, Inttegro::Application::RestrictedCapabilityStatus
|
|
46
|
+
const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
|
|
47
|
+
const :status_changed_at, Time
|
|
48
|
+
const :requirements, Inttegro::Application::CapabilityRequirements
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# typed: strict
|
|
3
|
+
|
|
4
|
+
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
|
+
|
|
6
|
+
require_relative "base"
|
|
7
|
+
|
|
8
|
+
module Inttegro
|
|
9
|
+
class Application
|
|
10
|
+
# String-backed values accepted by the Inttegro API for
|
|
11
|
+
# Inttegro::Application::RestrictedCapabilityStatus.
|
|
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 RestrictedCapabilityStatus < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `restricted`.
|
|
20
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatus]
|
|
21
|
+
RESTRICTED = new("restricted")
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
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
|
+
class Application
|
|
10
|
+
# String-backed values accepted by the Inttegro API for
|
|
11
|
+
# Inttegro::Application::RestrictedCapabilityStatusReason.
|
|
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 RestrictedCapabilityStatusReason < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `setup_incomplete`.
|
|
20
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatusReason]
|
|
21
|
+
SETUP_INCOMPLETE = new("setup_incomplete")
|
|
22
|
+
# Serialized wire value: `account_under_review`.
|
|
23
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatusReason]
|
|
24
|
+
ACCOUNT_UNDER_REVIEW = new("account_under_review")
|
|
25
|
+
# Serialized wire value: `account_restricted`.
|
|
26
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatusReason]
|
|
27
|
+
ACCOUNT_RESTRICTED = new("account_restricted")
|
|
28
|
+
# Serialized wire value: `account_inactive`.
|
|
29
|
+
# @return [Inttegro::Application::RestrictedCapabilityStatusReason]
|
|
30
|
+
ACCOUNT_INACTIVE = new("account_inactive")
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
+
require_relative "../shared/inline_operating_policy_selection"
|
|
8
|
+
require_relative "../shared/operating_policy_selection_by_id"
|
|
7
9
|
|
|
8
10
|
module Inttegro
|
|
9
11
|
class Application
|
|
@@ -38,11 +40,19 @@ module Inttegro
|
|
|
38
40
|
#
|
|
39
41
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `legal_entity_type`.
|
|
40
42
|
# @return [String, nil]
|
|
43
|
+
#
|
|
44
|
+
# @!attribute [r] operating_policy
|
|
45
|
+
# Mutually exclusive named-template or inline operating policy selection. Available only to
|
|
46
|
+
# internal Commerce services and `children_policy_v1` private-beta callers.
|
|
47
|
+
#
|
|
48
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
|
|
49
|
+
# @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
|
|
41
50
|
class UpdateRequest < T::Struct
|
|
42
51
|
const :name, T.nilable(String), default: nil
|
|
43
52
|
const :alias, T.nilable(String), default: nil
|
|
44
53
|
const :description, T.nilable(String), default: nil
|
|
45
54
|
const :legal_entity_type, T.nilable(String), default: nil
|
|
55
|
+
const :operating_policy, T.nilable(T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection)), default: nil
|
|
46
56
|
end
|
|
47
57
|
end
|
|
48
58
|
end
|
data/lib/inttegro/app/updated.rb
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
+
require_relative "capability_projection"
|
|
8
|
+
require_relative "operating_policy"
|
|
7
9
|
|
|
8
10
|
module Inttegro
|
|
9
11
|
class Application
|
|
@@ -50,6 +52,21 @@ module Inttegro
|
|
|
50
52
|
#
|
|
51
53
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `updated_at`.
|
|
52
54
|
# @return [Time, nil]
|
|
55
|
+
#
|
|
56
|
+
# @!attribute [r] capabilities
|
|
57
|
+
# Public capability states currently available to the application. Newly created applications
|
|
58
|
+
# can return an empty object until capabilities become available. New capability keys may
|
|
59
|
+
# appear over time.
|
|
60
|
+
#
|
|
61
|
+
# Required in the API payload. Wire name: `capabilities`.
|
|
62
|
+
# @return [Inttegro::Application::CapabilityProjection]
|
|
63
|
+
#
|
|
64
|
+
# @!attribute [r] operating_policy
|
|
65
|
+
# Immutable operating policy snapshot applied to the application. This field is returned only
|
|
66
|
+
# to `children_policy_v1` callers.
|
|
67
|
+
#
|
|
68
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
|
|
69
|
+
# @return [Inttegro::Application::OperatingPolicy, nil]
|
|
53
70
|
class Updated < T::Struct
|
|
54
71
|
const :id, String
|
|
55
72
|
const :name, String
|
|
@@ -57,6 +74,8 @@ module Inttegro
|
|
|
57
74
|
const :description, T.nilable(String), default: nil
|
|
58
75
|
const :created_at, Time
|
|
59
76
|
const :updated_at, T.nilable(Time), default: nil
|
|
77
|
+
const :capabilities, Inttegro::Application::CapabilityProjection
|
|
78
|
+
const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
|
|
60
79
|
end
|
|
61
80
|
end
|
|
62
81
|
end
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
-
require_relative "allocation"
|
|
8
7
|
require_relative "amount"
|
|
9
8
|
require_relative "available_amount"
|
|
9
|
+
require_relative "payout_allocation"
|
|
10
10
|
require_relative "payout_configuration"
|
|
11
11
|
require_relative "pending_amount"
|
|
12
|
+
require_relative "refund_allocation"
|
|
12
13
|
require_relative "spent_amount"
|
|
13
14
|
require_relative "type"
|
|
14
15
|
|
|
@@ -50,7 +51,7 @@ module Inttegro
|
|
|
50
51
|
# All current pending and completed allocations. Released allocations are omitted.
|
|
51
52
|
#
|
|
52
53
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `allocations`.
|
|
53
|
-
# @return [Array<Inttegro::BalanceTransaction::
|
|
54
|
+
# @return [Array<Inttegro::BalanceTransaction::RefundAllocation, Inttegro::BalanceTransaction::PayoutAllocation>, nil]
|
|
54
55
|
#
|
|
55
56
|
# @!attribute [r] available_amount
|
|
56
57
|
# Amount still available for a refund or payout.
|
|
@@ -124,7 +125,7 @@ module Inttegro
|
|
|
124
125
|
const :created_at, Time
|
|
125
126
|
const :id, String
|
|
126
127
|
const :type, Inttegro::BalanceTransaction::Type
|
|
127
|
-
const :allocations, T.nilable(T::Array[Inttegro::BalanceTransaction::
|
|
128
|
+
const :allocations, T.nilable(T::Array[T.any(Inttegro::BalanceTransaction::RefundAllocation, Inttegro::BalanceTransaction::PayoutAllocation)]), default: nil
|
|
128
129
|
const :available_amount, T.nilable(Inttegro::BalanceTransaction::AvailableAmount), default: nil
|
|
129
130
|
const :available_at, T.nilable(Time), default: nil
|
|
130
131
|
const :claimed_at, T.nilable(Time), default: nil
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "../chime/email_message_input"
|
|
8
|
-
require_relative "../chime/
|
|
8
|
+
require_relative "../chime/saved_customer_recipient"
|
|
9
|
+
require_relative "../chime/send_request_recipient_variant1_variant1"
|
|
10
|
+
require_relative "../chime/send_request_recipient_variant1_variant2"
|
|
9
11
|
require_relative "../message_template/reference"
|
|
10
12
|
require_relative "request_request_meta"
|
|
11
13
|
|
|
@@ -49,7 +51,7 @@ module Inttegro
|
|
|
49
51
|
# contact details or `customer_id`.
|
|
50
52
|
#
|
|
51
53
|
# Required in the API payload. Wire name: `recipients`.
|
|
52
|
-
# @return [Array<Inttegro::Chime::
|
|
54
|
+
# @return [Array<Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2, Inttegro::Chime::SavedCustomerRecipient>]
|
|
53
55
|
#
|
|
54
56
|
# @!attribute [r] sender
|
|
55
57
|
# Sender identifier displayed to recipients.
|
|
@@ -61,7 +63,7 @@ module Inttegro
|
|
|
61
63
|
const :message_template, T.nilable(T.any(String, Inttegro::MessageTemplate::Reference)), default: nil
|
|
62
64
|
const :email, T.nilable(Inttegro::Chime::EmailMessageInput), default: nil
|
|
63
65
|
const :purpose, T.nilable(String), default: nil
|
|
64
|
-
const :recipients, T::Array[Inttegro::Chime::
|
|
66
|
+
const :recipients, T::Array[T.any(T.any(Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2), Inttegro::Chime::SavedCustomerRecipient)]
|
|
65
67
|
const :sender, T.nilable(String), default: nil
|
|
66
68
|
end
|
|
67
69
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
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 Checkout
|
|
10
|
+
# Typed representation of the customer data 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] name
|
|
19
|
+
# Customer name recorded on the Order created from the Purchase Intent.
|
|
20
|
+
#
|
|
21
|
+
# Required in the API payload. Wire name: `name`.
|
|
22
|
+
# @return [String]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] email_address
|
|
25
|
+
# Value of the `email_address` field in the Inttegro API payload.
|
|
26
|
+
#
|
|
27
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `email_address`.
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] phone_number
|
|
31
|
+
# Value of the `phone_number` field in the Inttegro API payload.
|
|
32
|
+
#
|
|
33
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `phone_number`.
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
class CustomerData < T::Struct
|
|
36
|
+
const :name, String
|
|
37
|
+
const :email_address, T.nilable(String), default: nil
|
|
38
|
+
const :phone_number, T.nilable(String), default: nil
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "invoice_view_format_pdf"
|
|
8
|
-
require_relative "invoice_view_format_receipt"
|
|
9
8
|
require_relative "invoice_view_format_web"
|
|
10
9
|
|
|
11
10
|
module Inttegro
|
|
@@ -29,16 +28,9 @@ module Inttegro
|
|
|
29
28
|
#
|
|
30
29
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `pdf`.
|
|
31
30
|
# @return [Inttegro::Checkout::InvoiceViewFormatPdf, nil]
|
|
32
|
-
#
|
|
33
|
-
# @!attribute [r] receipt
|
|
34
|
-
# Value of the `receipt` field in the Inttegro API payload.
|
|
35
|
-
#
|
|
36
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
|
|
37
|
-
# @return [Inttegro::Checkout::InvoiceViewFormatReceipt, nil]
|
|
38
31
|
class InvoiceViewFormat < T::Struct
|
|
39
32
|
const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
|
|
40
33
|
const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
|
|
41
|
-
const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
|
|
42
34
|
end
|
|
43
35
|
end
|
|
44
36
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
-
require_relative "
|
|
7
|
+
require_relative "lookup_resource_request_variant2"
|
|
8
8
|
require_relative "order_reference_request"
|
|
9
9
|
|
|
10
10
|
module Inttegro
|
|
@@ -12,7 +12,7 @@ module Inttegro
|
|
|
12
12
|
# Typed representation of the lookup request object in the Inttegro API.
|
|
13
13
|
#
|
|
14
14
|
# @api public
|
|
15
|
-
# @return [Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::
|
|
16
|
-
LookupRequest = T.type_alias { T.any(Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::
|
|
15
|
+
# @return [Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::LookupResourceRequestVariant2]
|
|
16
|
+
LookupRequest = T.type_alias { T.any(Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::LookupResourceRequestVariant2) }
|
|
17
17
|
end
|
|
18
18
|
end
|
data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb}
RENAMED
|
@@ -7,7 +7,7 @@ require_relative "base"
|
|
|
7
7
|
|
|
8
8
|
module Inttegro
|
|
9
9
|
module Checkout
|
|
10
|
-
#
|
|
10
|
+
# Legacy Purchase Intent amount selection. New integrations should use `/checkout/pay`.
|
|
11
11
|
#
|
|
12
12
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
13
13
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -20,7 +20,7 @@ module Inttegro
|
|
|
20
20
|
#
|
|
21
21
|
# Required in the API payload. Wire name: `purchase_intent_id`.
|
|
22
22
|
# @return [String]
|
|
23
|
-
class
|
|
23
|
+
class LookupResourceRequestVariant2 < T::Struct
|
|
24
24
|
const :purchase_intent_id, String
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
-
require_relative "../
|
|
8
|
-
require_relative "amount_selection"
|
|
7
|
+
require_relative "../purchase_intent/purchase_intent"
|
|
9
8
|
require_relative "order"
|
|
10
9
|
|
|
11
10
|
module Inttegro
|
|
12
11
|
module Checkout
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# Returns exactly one resource matching the supplied checkout reference. Purchase Intent
|
|
13
|
+
# responses use the same public resource shape as Purchase Intent lookup.
|
|
15
14
|
#
|
|
16
15
|
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
17
16
|
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
@@ -26,22 +25,14 @@ module Inttegro
|
|
|
26
25
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `order`.
|
|
27
26
|
# @return [Inttegro::Checkout::Order, nil]
|
|
28
27
|
#
|
|
29
|
-
# @!attribute [r]
|
|
30
|
-
# Value of the `
|
|
28
|
+
# @!attribute [r] purchase_intent
|
|
29
|
+
# Value of the `purchase_intent` field in the Inttegro API payload.
|
|
31
30
|
#
|
|
32
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `
|
|
33
|
-
# @return [Inttegro::
|
|
34
|
-
#
|
|
35
|
-
# @!attribute [r] error
|
|
36
|
-
# Standard error response structure returned by all API endpoints. Provides machine-readable
|
|
37
|
-
# codes, human-readable messages, and actionable guidance for resolution.
|
|
38
|
-
#
|
|
39
|
-
# Optional in the API payload; omitted values default to `nil`. Wire name: `error`.
|
|
40
|
-
# @return [Inttegro::Shared::ErrorPayload, nil]
|
|
31
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `purchase_intent`.
|
|
32
|
+
# @return [Inttegro::PurchaseIntent, nil]
|
|
41
33
|
class LookupResponse < T::Struct
|
|
42
34
|
const :order, T.nilable(Inttegro::Checkout::Order), default: nil
|
|
43
|
-
const :
|
|
44
|
-
const :error, T.nilable(Inttegro::Shared::ErrorPayload), default: nil
|
|
35
|
+
const :purchase_intent, T.nilable(Inttegro::PurchaseIntent), default: nil
|
|
45
36
|
end
|
|
46
37
|
end
|
|
47
38
|
end
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
7
|
require_relative "../money/amount"
|
|
8
|
-
require_relative "../
|
|
8
|
+
require_relative "../product/line_item"
|
|
9
|
+
require_relative "../shared/fee_line_item"
|
|
10
|
+
require_relative "../shared/shipping_line_item"
|
|
9
11
|
|
|
10
12
|
module Inttegro
|
|
11
13
|
module Checkout
|
|
@@ -21,7 +23,7 @@ module Inttegro
|
|
|
21
23
|
# Value of the `line_items` field in the Inttegro API payload.
|
|
22
24
|
#
|
|
23
25
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `line_items`.
|
|
24
|
-
# @return [Array<Inttegro::Shared::
|
|
26
|
+
# @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>, nil]
|
|
25
27
|
#
|
|
26
28
|
# @!attribute [r] total
|
|
27
29
|
# Value of the `total` field in the Inttegro API payload.
|
|
@@ -29,7 +31,7 @@ module Inttegro
|
|
|
29
31
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `total`.
|
|
30
32
|
# @return [Inttegro::Money::Amount, nil]
|
|
31
33
|
class OrderLineItemGroup < T::Struct
|
|
32
|
-
const :line_items, T.nilable(T::Array[Inttegro::Shared::
|
|
34
|
+
const :line_items, T.nilable(T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]), default: nil
|
|
33
35
|
const :total, T.nilable(Inttegro::Money::Amount), default: nil
|
|
34
36
|
|
|
35
37
|
extend T::Sig
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
# Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
|
|
5
5
|
|
|
6
6
|
require_relative "base"
|
|
7
|
+
require_relative "customer_data"
|
|
7
8
|
require_relative "pay_request_payment_method_data"
|
|
9
|
+
require_relative "pay_request_selected_amount"
|
|
8
10
|
|
|
9
11
|
module Inttegro
|
|
10
12
|
module Checkout
|
|
@@ -19,8 +21,38 @@ module Inttegro
|
|
|
19
21
|
# @!attribute [r] order_id
|
|
20
22
|
# The finalized Order to pay.
|
|
21
23
|
#
|
|
22
|
-
#
|
|
23
|
-
# @return [String]
|
|
24
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `order_id`.
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] purchase_intent_id
|
|
28
|
+
# Purchase Intent to turn into an Order and pay in this request.
|
|
29
|
+
#
|
|
30
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `purchase_intent_id`.
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] variant_product_id
|
|
34
|
+
# Selected variant when the Purchase Intent offers product variants.
|
|
35
|
+
#
|
|
36
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `variant_product_id`.
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] quantity
|
|
40
|
+
# Quantity selected by the payer. Defaults to the Purchase Intent minimum.
|
|
41
|
+
#
|
|
42
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `quantity`.
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
#
|
|
45
|
+
# @!attribute [r] selected_amount
|
|
46
|
+
# Amount selected by the payer when the Purchase Intent accepts customer-selected pricing.
|
|
47
|
+
#
|
|
48
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `selected_amount`.
|
|
49
|
+
# @return [Inttegro::Checkout::PayRequestSelectedAmount, nil]
|
|
50
|
+
#
|
|
51
|
+
# @!attribute [r] customer_data
|
|
52
|
+
# Value of the `customer_data` field in the Inttegro API payload.
|
|
53
|
+
#
|
|
54
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `customer_data`.
|
|
55
|
+
# @return [Inttegro::Checkout::CustomerData, nil]
|
|
24
56
|
#
|
|
25
57
|
# @!attribute [r] payment_method_id
|
|
26
58
|
# A saved payment method owned by the Order's immutable customer. Mutually exclusive with
|
|
@@ -44,7 +76,12 @@ module Inttegro
|
|
|
44
76
|
# Optional in the API payload; omitted values default to `nil`. Wire name: `save_payment_method`.
|
|
45
77
|
# @return [Boolean, nil]
|
|
46
78
|
class PayRequest < T::Struct
|
|
47
|
-
const :order_id, String
|
|
79
|
+
const :order_id, T.nilable(String), default: nil
|
|
80
|
+
const :purchase_intent_id, T.nilable(String), default: nil
|
|
81
|
+
const :variant_product_id, T.nilable(String), default: nil
|
|
82
|
+
const :quantity, T.nilable(Integer), default: nil
|
|
83
|
+
const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil
|
|
84
|
+
const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil
|
|
48
85
|
const :payment_method_id, T.nilable(String), default: nil
|
|
49
86
|
const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil
|
|
50
87
|
const :save_payment_method, T.nilable(T::Boolean), default: nil
|