inttegro 11.0.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/lib/inttegro/app/application.rb +9 -0
  4. data/lib/inttegro/app/create_request.rb +10 -0
  5. data/lib/inttegro/app/looked_up.rb +9 -0
  6. data/lib/inttegro/app/operating_policy.rb +37 -0
  7. data/lib/inttegro/app/update_request.rb +10 -0
  8. data/lib/inttegro/app/updated.rb +9 -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 +71 -31
  38. data/lib/inttegro/generated/operations.rb +20 -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 +26 -0
  78. data/lib/inttegro/resources/operating_policies.rb +52 -0
  79. data/lib/inttegro/schedule/chime_request.rb +5 -3
  80. data/lib/inttegro/shared/children_policy.rb +91 -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/create_operating_policy_request.rb +42 -0
  84. data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
  85. data/lib/inttegro/shared/lookup_children_policy_request.rb +22 -0
  86. data/lib/inttegro/shared/lookup_operating_policy_request.rb +27 -0
  87. data/lib/inttegro/shared/operating_policy.rb +98 -0
  88. data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
  89. data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
  90. data/lib/inttegro/shared/operating_policy_response.rb +28 -0
  91. data/lib/inttegro/shared/operating_policy_selection.rb +19 -0
  92. data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
  93. data/lib/inttegro/shared/operating_policy_source.rb +42 -0
  94. data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
  95. data/lib/inttegro/shared/policy_amount_range.rb +34 -0
  96. data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
  97. data/lib/inttegro/shared/policy_bt_aging_spec_public_id.rb +34 -0
  98. data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
  99. data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
  100. data/lib/inttegro/shared/policy_limits.rb +28 -0
  101. data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
  102. data/lib/inttegro/version.rb +1 -1
  103. data/rbi/inttegro/generated.rbi +26 -4
  104. metadata +55 -10
  105. data/lib/inttegro/checkout/amount_selection.rb +0 -84
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83fa875bd760e81c7d474ee8df008463fb185a69fa14730c4292e4aa852c46a6
4
- data.tar.gz: 303c6d8eafd7135b879890890efbe2eb756debfe1befef9a113cc7a97133ce55
3
+ metadata.gz: 66dea99faabd3138c2e7da0b9b4e69a6284b3ee08b93d794c74f2c98e50d9561
4
+ data.tar.gz: 0c87b4dc602513495eda111e6cdcc64b64663a567ba829754ef02c171b08c669
5
5
  SHA512:
6
- metadata.gz: 1812e3a9156655cf6d7ae908682a95a9a7cdf87d13d9de5054bbd07c441ab8c55abf2c741d97eac82d8712868228eb0761a190c269ec7fc607b0e56d3ab1e002
7
- data.tar.gz: a684c2a1e7d03c9c401508ee30cc887c98920336fffd1a9882850fbbba1f4a332f01f54b18a5d7e333af955b66babd168c02ba5392f785cb1b474a415e657b68
6
+ metadata.gz: 2afbad037692cd58701e69d6c24bd9953c9e4143e5c9d9375de4a89e64493c47a2d0a50aa9447bc08a4bc64466a321eb1ea5fc7ade8cff4d0383a36180c54a3a
7
+ data.tar.gz: a9ea9b1e88d7e4765ed12a5ad4ef11adc30ab0e355549a9d30d8cef6ed00842ea335caafcff91dd8c8a8d07de36700a6995caf4db6c332c2f5d5a3ad37d44184
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [11.1.0] - 2026-11-05
4
+
5
+ - Added typed private-beta children-policy lookup and operating-policy create,
6
+ lookup, and versioned update endpoints.
7
+ - Added typed operating-policy selection to application create and update,
8
+ together with gated operating-policy projections on application responses.
9
+
3
10
  ## [11.0.0] - 2026-10-14
4
11
 
5
12
  - **Breaking:** replaced the legacy flat payout minimum with typed
@@ -5,6 +5,7 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "capability_projection"
8
+ require_relative "operating_policy"
8
9
  require_relative "relationship"
9
10
  require_relative "secret_key"
10
11
 
@@ -55,6 +56,13 @@ module Inttegro
55
56
  # Required in the API payload. Wire name: `capabilities`.
56
57
  # @return [Inttegro::Application::CapabilityProjection]
57
58
  #
59
+ # @!attribute [r] operating_policy
60
+ # Immutable operating policy snapshot applied to the application. This field is returned only
61
+ # to `children_policy_v1` callers.
62
+ #
63
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
64
+ # @return [Inttegro::Application::OperatingPolicy, nil]
65
+ #
58
66
  # @!attribute [r] secret_key
59
67
  # Value of the `secret_key` field in the Inttegro API payload.
60
68
  #
@@ -73,6 +81,7 @@ module Inttegro
73
81
  const :description, T.nilable(String), default: nil
74
82
  const :created_at, Time
75
83
  const :capabilities, Inttegro::Application::CapabilityProjection
84
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
76
85
  const :secret_key, T.nilable(Inttegro::Application::SecretKey), default: nil
77
86
  const :relationship, T.nilable(Inttegro::Application::Relationship), default: nil
78
87
  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
  require_relative "create_request_relationship_policy"
8
10
 
9
11
  module Inttegro
@@ -47,6 +49,13 @@ module Inttegro
47
49
  # Optional in the API payload; omitted values default to `nil`. Wire name: `placement_parent_application_id`.
48
50
  # @return [String, nil]
49
51
  #
52
+ # @!attribute [r] operating_policy
53
+ # Mutually exclusive named-template or inline operating policy selection. Available only to
54
+ # internal Commerce services and `children_policy_v1` private-beta callers.
55
+ #
56
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
57
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
58
+ #
50
59
  # @!attribute [r] relationship_policy
51
60
  # Optional direct-placement relationship policy. Omitted values default to parent management
52
61
  # and child credentials.
@@ -59,6 +68,7 @@ module Inttegro
59
68
  const :description, T.nilable(String), default: nil
60
69
  const :legal_entity_type, T.nilable(String), default: nil
61
70
  const :placement_parent_application_id, T.nilable(String), default: nil
71
+ const :operating_policy, T.nilable(T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection)), default: nil
62
72
  const :relationship_policy, T.nilable(Inttegro::Application::CreateRequestRelationshipPolicy), default: nil
63
73
  end
64
74
  end
@@ -6,6 +6,7 @@
6
6
  require_relative "base"
7
7
  require_relative "capability_projection"
8
8
  require_relative "looked_up_relationship"
9
+ require_relative "operating_policy"
9
10
 
10
11
  module Inttegro
11
12
  class Application
@@ -67,6 +68,13 @@ module Inttegro
67
68
  # Required in the API payload. Wire name: `capabilities`.
68
69
  # @return [Inttegro::Application::CapabilityProjection]
69
70
  #
71
+ # @!attribute [r] operating_policy
72
+ # Immutable operating policy snapshot applied to the application. This field is returned only
73
+ # to `children_policy_v1` callers.
74
+ #
75
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
76
+ # @return [Inttegro::Application::OperatingPolicy, nil]
77
+ #
70
78
  # @!attribute [r] relationship
71
79
  # Identifies the authenticated app's direct placement relationship. Omitted for root apps.
72
80
  #
@@ -81,6 +89,7 @@ module Inttegro
81
89
  const :updated_at, T.nilable(Time), default: nil
82
90
  const :archived_at, T.nilable(Time), default: nil
83
91
  const :capabilities, Inttegro::Application::CapabilityProjection
92
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
84
93
  const :relationship, T.nilable(Inttegro::Application::LookedUpRelationship), default: nil
85
94
  end
86
95
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "../shared/operating_policy_capabilities"
8
+ require_relative "../shared/operating_policy_source"
9
+
10
+ module Inttegro
11
+ class Application
12
+ # Immutable operating policy snapshot applied to the application. This field is returned only
13
+ # to `children_policy_v1` callers.
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] capabilities
22
+ # Value of the `capabilities` field in the Inttegro API payload.
23
+ #
24
+ # Required in the API payload. Wire name: `capabilities`.
25
+ # @return [Inttegro::Shared::OperatingPolicyCapabilities]
26
+ #
27
+ # @!attribute [r] source
28
+ # Value of the `source` field in the Inttegro API payload.
29
+ #
30
+ # Required in the API payload. Wire name: `source`.
31
+ # @return [Inttegro::Shared::OperatingPolicySource]
32
+ class OperatingPolicy < T::Struct
33
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilities
34
+ const :source, Inttegro::Shared::OperatingPolicySource
35
+ end
36
+ end
37
+ 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
@@ -5,6 +5,7 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "capability_projection"
8
+ require_relative "operating_policy"
8
9
 
9
10
  module Inttegro
10
11
  class Application
@@ -59,6 +60,13 @@ module Inttegro
59
60
  #
60
61
  # Required in the API payload. Wire name: `capabilities`.
61
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]
62
70
  class Updated < T::Struct
63
71
  const :id, String
64
72
  const :name, String
@@ -67,6 +75,7 @@ module Inttegro
67
75
  const :created_at, Time
68
76
  const :updated_at, T.nilable(Time), default: nil
69
77
  const :capabilities, Inttegro::Application::CapabilityProjection
78
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
70
79
  end
71
80
  end
72
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::Allocation>, nil]
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::Allocation]), default: nil
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/recipient"
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::Recipient>]
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::Recipient]
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
@@ -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 "lookup_request_variant2"
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::LookupRequestVariant2]
16
- LookupRequest = T.type_alias { T.any(Inttegro::Checkout::OrderReferenceRequest, Inttegro::Checkout::LookupRequestVariant2) }
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
@@ -7,7 +7,7 @@ require_relative "base"
7
7
 
8
8
  module Inttegro
9
9
  module Checkout
10
- # Typed representation of the lookup request variant2 object in the Inttegro API.
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 LookupRequestVariant2 < T::Struct
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 "../shared/error_payload"
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
- # A Purchase Intent lookup returns `amount_selection`. An Order lookup returns `order` and
14
- # also returns `amount_selection` while that Order's amount can still be changed.
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] amount_selection
30
- # Value of the `amount_selection` field in the Inttegro API payload.
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: `amount_selection`.
33
- # @return [Inttegro::Checkout::AmountSelection, nil]
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 :amount_selection, T.nilable(Inttegro::Checkout::AmountSelection), default: nil
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 "../shared/line_item"
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::LineItem>, nil]
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::LineItem]), default: nil
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
- # Required in the API payload. Wire name: `order_id`.
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
@@ -0,0 +1,36 @@
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 "../money/currency"
8
+
9
+ module Inttegro
10
+ module Checkout
11
+ # Amount selected by the payer when the Purchase Intent accepts customer-selected pricing.
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] currency
20
+ # A currency code recognized by the Inttegro API. Individual operations can support a subset
21
+ # of these currencies.
22
+ #
23
+ # Required in the API payload. Wire name: `currency`.
24
+ # @return [Inttegro::Money::Currency]
25
+ #
26
+ # @!attribute [r] value
27
+ # Payer-selected amount in the currency's smallest unit.
28
+ #
29
+ # Required in the API payload. Wire name: `value`.
30
+ # @return [Integer]
31
+ class PayRequestSelectedAmount < T::Struct
32
+ const :currency, Inttegro::Money::Currency
33
+ const :value, Integer
34
+ end
35
+ end
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 "selected_amount"
7
+ require_relative "select_amount_request_variant2_line_items_item"
8
8
 
9
9
  module Inttegro
10
10
  module Checkout
@@ -22,14 +22,14 @@ module Inttegro
22
22
  # Required in the API payload. Wire name: `order_id`.
23
23
  # @return [String]
24
24
  #
25
- # @!attribute [r] selected_amount
26
- # Value of the `selected_amount` field in the Inttegro API payload.
25
+ # @!attribute [r] line_items
26
+ # Customer-selected amounts keyed by the Order line-item IDs returned by checkout lookup.
27
27
  #
28
- # Required in the API payload. Wire name: `selected_amount`.
29
- # @return [Inttegro::Checkout::SelectedAmount]
28
+ # Required in the API payload. Wire name: `line_items`.
29
+ # @return [Array<Inttegro::Checkout::SelectAmountRequestVariant2LineItemsItem>]
30
30
  class SelectAmountRequestVariant2 < T::Struct
31
31
  const :order_id, String
32
- const :selected_amount, Inttegro::Checkout::SelectedAmount
32
+ const :line_items, T::Array[Inttegro::Checkout::SelectAmountRequestVariant2LineItemsItem]
33
33
  end
34
34
  end
35
35
  end
@@ -0,0 +1,36 @@
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 "selected_amount"
8
+
9
+ module Inttegro
10
+ module Checkout
11
+ # Typed representation of the select amount request variant2 line items item object in the
12
+ # Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] id
21
+ # Product line-item ID whose amount should be changed.
22
+ #
23
+ # Required in the API payload. Wire name: `id`.
24
+ # @return [String]
25
+ #
26
+ # @!attribute [r] selected_amount
27
+ # Value of the `selected_amount` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `selected_amount`.
30
+ # @return [Inttegro::Checkout::SelectedAmount]
31
+ class SelectAmountRequestVariant2LineItemsItem < T::Struct
32
+ const :id, String
33
+ const :selected_amount, Inttegro::Checkout::SelectedAmount
34
+ end
35
+ end
36
+ end
@@ -4,15 +4,15 @@
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 "inline_recipient_variant1"
8
- require_relative "inline_recipient_variant2"
7
+ require_relative "send_request_recipient_variant1_variant1"
8
+ require_relative "send_request_recipient_variant1_variant2"
9
9
 
10
10
  module Inttegro
11
11
  class Chime
12
12
  # Typed representation of the inline recipient object in the Inttegro API.
13
13
  #
14
14
  # @api public
15
- # @return [Inttegro::Chime::InlineRecipientVariant1, Inttegro::Chime::InlineRecipientVariant2]
16
- InlineRecipient = T.type_alias { T.any(Inttegro::Chime::InlineRecipientVariant1, Inttegro::Chime::InlineRecipientVariant2) }
15
+ # @return [Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2]
16
+ InlineRecipient = T.type_alias { T.any(Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2) }
17
17
  end
18
18
  end
@@ -4,15 +4,16 @@
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 "inline_recipient"
8
7
  require_relative "saved_customer_recipient"
8
+ require_relative "send_request_recipient_variant1_variant1"
9
+ require_relative "send_request_recipient_variant1_variant2"
9
10
 
10
11
  module Inttegro
11
12
  class Chime
12
13
  # Typed representation of the recipient object in the Inttegro API.
13
14
  #
14
15
  # @api public
15
- # @return [Inttegro::Chime::InlineRecipient, Inttegro::Chime::SavedCustomerRecipient]
16
- Recipient = T.type_alias { T.any(Inttegro::Chime::InlineRecipient, Inttegro::Chime::SavedCustomerRecipient) }
16
+ # @return [Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2, Inttegro::Chime::SavedCustomerRecipient]
17
+ Recipient = T.type_alias { T.any(T.any(Inttegro::Chime::SendRequestRecipientVariant1Variant1, Inttegro::Chime::SendRequestRecipientVariant1Variant2), Inttegro::Chime::SavedCustomerRecipient) }
17
18
  end
18
19
  end