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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83fa875bd760e81c7d474ee8df008463fb185a69fa14730c4292e4aa852c46a6
4
- data.tar.gz: 303c6d8eafd7135b879890890efbe2eb756debfe1befef9a113cc7a97133ce55
3
+ metadata.gz: b466a56cf755231ff0c078e8006d87cc2a8fb7529c8d6158e107bff0ae2f3ede
4
+ data.tar.gz: a2f3c15b344757d6b6017abd76b287ac623e45fb392ad615f6ee92f870527b18
5
5
  SHA512:
6
- metadata.gz: 1812e3a9156655cf6d7ae908682a95a9a7cdf87d13d9de5054bbd07c441ab8c55abf2c741d97eac82d8712868228eb0761a190c269ec7fc607b0e56d3ab1e002
7
- data.tar.gz: a684c2a1e7d03c9c401508ee30cc887c98920336fffd1a9882850fbbba1f4a332f01f54b18a5d7e333af955b66babd168c02ba5392f785cb1b474a415e657b68
6
+ metadata.gz: 9a95ee861ed16a1ba74190aaa8082c716ee9a5d361f2a5d6f04ac1d91125f1c6be31d9eb4338cc4e5ebe0d8c72ea5a3e23c13388f527809cc52bd54a8530870f
7
+ data.tar.gz: d4a6222b41c9aa290181cf7cd1d52a14dc43a816c0ddb3ca4e1edb3536e740edbffce8bfb8ea89c3c0a494e391c63eaa0673253d4104f1c8220b4b5992a5b773
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [12.0.0] - 2026-11-06
4
+
5
+ - **Breaking:** renamed the children-policy and operating-policy
6
+ balance-transaction aging identifier from `public_id` to `id` to match the
7
+ public API contract.
8
+ - Added active children-policy projections to typed application create, lookup,
9
+ and update responses.
10
+ - Added immutable version lookup and page history for children and operating
11
+ policies.
12
+ - Added typed payout balance-transaction allocation statuses.
13
+
14
+ ## [11.1.0] - 2026-11-05
15
+
16
+ - Added typed private-beta children-policy lookup and operating-policy create,
17
+ lookup, and versioned update endpoints.
18
+ - Added typed operating-policy selection to application create and update,
19
+ together with gated operating-policy projections on application responses.
20
+
3
21
  ## [11.0.0] - 2026-10-14
4
22
 
5
23
  - **Breaking:** replaced the legacy flat payout minimum with typed
@@ -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 "../shared/children_policy"
7
8
  require_relative "capability_projection"
9
+ require_relative "operating_policy"
8
10
  require_relative "relationship"
9
11
  require_relative "secret_key"
10
12
 
@@ -55,6 +57,20 @@ module Inttegro
55
57
  # Required in the API payload. Wire name: `capabilities`.
56
58
  # @return [Inttegro::Application::CapabilityProjection]
57
59
  #
60
+ # @!attribute [r] children_policy
61
+ # Active children policy assigned to the application. Omitted when the private beta is
62
+ # unavailable to the caller.
63
+ #
64
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
65
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
66
+ #
67
+ # @!attribute [r] operating_policy
68
+ # Immutable operating policy applied to the application. Omitted for root applications and
69
+ # when the private beta is unavailable to the caller.
70
+ #
71
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
72
+ # @return [Inttegro::Application::OperatingPolicy, nil]
73
+ #
58
74
  # @!attribute [r] secret_key
59
75
  # Value of the `secret_key` field in the Inttegro API payload.
60
76
  #
@@ -73,6 +89,8 @@ module Inttegro
73
89
  const :description, T.nilable(String), default: nil
74
90
  const :created_at, Time
75
91
  const :capabilities, Inttegro::Application::CapabilityProjection
92
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
93
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
76
94
  const :secret_key, T.nilable(Inttegro::Application::SecretKey), default: nil
77
95
  const :relationship, T.nilable(Inttegro::Application::Relationship), default: nil
78
96
  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,12 @@ 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.
54
+ #
55
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
56
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
57
+ #
50
58
  # @!attribute [r] relationship_policy
51
59
  # Optional direct-placement relationship policy. Omitted values default to parent management
52
60
  # and child credentials.
@@ -59,6 +67,7 @@ module Inttegro
59
67
  const :description, T.nilable(String), default: nil
60
68
  const :legal_entity_type, T.nilable(String), default: nil
61
69
  const :placement_parent_application_id, T.nilable(String), default: nil
70
+ const :operating_policy, T.nilable(T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection)), default: nil
62
71
  const :relationship_policy, T.nilable(Inttegro::Application::CreateRequestRelationshipPolicy), default: nil
63
72
  end
64
73
  end
@@ -4,8 +4,10 @@
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/children_policy"
7
8
  require_relative "capability_projection"
8
9
  require_relative "looked_up_relationship"
10
+ require_relative "operating_policy"
9
11
 
10
12
  module Inttegro
11
13
  class Application
@@ -67,6 +69,20 @@ module Inttegro
67
69
  # Required in the API payload. Wire name: `capabilities`.
68
70
  # @return [Inttegro::Application::CapabilityProjection]
69
71
  #
72
+ # @!attribute [r] children_policy
73
+ # Active children policy assigned to the application. Omitted when the private beta is
74
+ # unavailable to the caller.
75
+ #
76
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
77
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
78
+ #
79
+ # @!attribute [r] operating_policy
80
+ # Immutable operating policy applied to the application. Omitted for root applications and
81
+ # when the private beta is unavailable to the caller.
82
+ #
83
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
84
+ # @return [Inttegro::Application::OperatingPolicy, nil]
85
+ #
70
86
  # @!attribute [r] relationship
71
87
  # Identifies the authenticated app's direct placement relationship. Omitted for root apps.
72
88
  #
@@ -81,6 +97,8 @@ module Inttegro
81
97
  const :updated_at, T.nilable(Time), default: nil
82
98
  const :archived_at, T.nilable(Time), default: nil
83
99
  const :capabilities, Inttegro::Application::CapabilityProjection
100
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
101
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
84
102
  const :relationship, T.nilable(Inttegro::Application::LookedUpRelationship), default: nil
85
103
  end
86
104
  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 "../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.
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] capabilities
21
+ # Value of the `capabilities` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `capabilities`.
24
+ # @return [Inttegro::Shared::OperatingPolicyCapabilities]
25
+ #
26
+ # @!attribute [r] source
27
+ # Value of the `source` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `source`.
30
+ # @return [Inttegro::Shared::OperatingPolicySource]
31
+ class OperatingPolicy < T::Struct
32
+ const :capabilities, Inttegro::Shared::OperatingPolicyCapabilities
33
+ const :source, Inttegro::Shared::OperatingPolicySource
34
+ end
35
+ end
36
+ 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,18 @@ 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.
46
+ #
47
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
48
+ # @return [Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection, nil]
41
49
  class UpdateRequest < T::Struct
42
50
  const :name, T.nilable(String), default: nil
43
51
  const :alias, T.nilable(String), default: nil
44
52
  const :description, T.nilable(String), default: nil
45
53
  const :legal_entity_type, T.nilable(String), default: nil
54
+ const :operating_policy, T.nilable(T.any(Inttegro::Shared::OperatingPolicySelectionByID, Inttegro::Shared::InlineOperatingPolicySelection)), default: nil
46
55
  end
47
56
  end
48
57
  end
@@ -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 "../shared/children_policy"
7
8
  require_relative "capability_projection"
9
+ require_relative "operating_policy"
8
10
 
9
11
  module Inttegro
10
12
  class Application
@@ -59,6 +61,20 @@ module Inttegro
59
61
  #
60
62
  # Required in the API payload. Wire name: `capabilities`.
61
63
  # @return [Inttegro::Application::CapabilityProjection]
64
+ #
65
+ # @!attribute [r] children_policy
66
+ # Active children policy assigned to the application. Omitted when the private beta is
67
+ # unavailable to the caller.
68
+ #
69
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `children_policy`.
70
+ # @return [Inttegro::Shared::ChildrenPolicy, nil]
71
+ #
72
+ # @!attribute [r] operating_policy
73
+ # Immutable operating policy applied to the application. Omitted for root applications and
74
+ # when the private beta is unavailable to the caller.
75
+ #
76
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `operating_policy`.
77
+ # @return [Inttegro::Application::OperatingPolicy, nil]
62
78
  class Updated < T::Struct
63
79
  const :id, String
64
80
  const :name, String
@@ -67,6 +83,8 @@ module Inttegro
67
83
  const :created_at, Time
68
84
  const :updated_at, T.nilable(Time), default: nil
69
85
  const :capabilities, Inttegro::Application::CapabilityProjection
86
+ const :children_policy, T.nilable(Inttegro::Shared::ChildrenPolicy), default: nil
87
+ const :operating_policy, T.nilable(Inttegro::Application::OperatingPolicy), default: nil
70
88
  end
71
89
  end
72
90
  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