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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/lib/inttegro/app/application.rb +20 -1
  4. data/lib/inttegro/app/capabilities.rb +11 -0
  5. data/lib/inttegro/app/capabilities_response.rb +28 -0
  6. data/lib/inttegro/app/capabilities_response_capabilities.rb +37 -0
  7. data/lib/inttegro/app/capability_projection.rb +39 -0
  8. data/lib/inttegro/app/capability_requirement.rb +41 -0
  9. data/lib/inttegro/app/capability_requirements.rb +28 -0
  10. data/lib/inttegro/app/create_request.rb +10 -0
  11. data/lib/inttegro/app/enabled_capability.rb +35 -0
  12. data/lib/inttegro/app/enabled_capability_status.rb +25 -0
  13. data/lib/inttegro/app/looked_up.rb +27 -0
  14. data/lib/inttegro/app/looked_up_relationship.rb +58 -0
  15. data/lib/inttegro/app/looked_up_relationship_parent.rb +41 -0
  16. data/lib/inttegro/app/lookup_capabilities_request.rb +21 -0
  17. data/lib/inttegro/app/operating_policy.rb +37 -0
  18. data/lib/inttegro/app/pending_review_capability.rb +43 -0
  19. data/lib/inttegro/app/pending_review_capability_status.rb +25 -0
  20. data/lib/inttegro/app/pending_review_capability_status_reason.rb +34 -0
  21. data/lib/inttegro/app/relationship.rb +7 -63
  22. data/lib/inttegro/app/relationship_parent.rb +41 -0
  23. data/lib/inttegro/app/restricted_capability.rb +51 -0
  24. data/lib/inttegro/app/restricted_capability_status.rb +25 -0
  25. data/lib/inttegro/app/restricted_capability_status_reason.rb +34 -0
  26. data/lib/inttegro/app/update_request.rb +10 -0
  27. data/lib/inttegro/app/updated.rb +19 -0
  28. data/lib/inttegro/balance_transaction/balance_transaction.rb +4 -3
  29. data/lib/inttegro/broadcast/request.rb +5 -3
  30. data/lib/inttegro/checkout/customer_data.rb +41 -0
  31. data/lib/inttegro/checkout/invoice_view_format.rb +0 -8
  32. data/lib/inttegro/checkout/lookup_request.rb +3 -3
  33. data/lib/inttegro/checkout/{lookup_request_variant2.rb → lookup_resource_request_variant2.rb} +2 -2
  34. data/lib/inttegro/checkout/lookup_response.rb +8 -17
  35. data/lib/inttegro/checkout/order_line_item_group.rb +5 -3
  36. data/lib/inttegro/checkout/pay_request.rb +40 -3
  37. data/lib/inttegro/checkout/pay_request_selected_amount.rb +36 -0
  38. data/lib/inttegro/checkout/select_amount_request_variant2.rb +6 -6
  39. data/lib/inttegro/checkout/select_amount_request_variant2_line_items_item.rb +36 -0
  40. data/lib/inttegro/chime/inline_recipient.rb +4 -4
  41. data/lib/inttegro/chime/recipient.rb +4 -3
  42. data/lib/inttegro/chime/send_request.rb +5 -3
  43. data/lib/inttegro/chime/{inline_recipient_variant1.rb → send_request_recipient_variant1_variant1.rb} +9 -8
  44. data/lib/inttegro/chime/{inline_recipient_variant1_phone.rb → send_request_recipient_variant1_variant1_phone.rb} +3 -2
  45. data/lib/inttegro/chime/{inline_recipient_variant1_type.rb → send_request_recipient_variant1_variant1_type.rb} +3 -3
  46. data/lib/inttegro/chime/{inline_recipient_variant2.rb → send_request_recipient_variant1_variant2.rb} +9 -8
  47. data/lib/inttegro/chime/{inline_recipient_variant2_email.rb → send_request_recipient_variant1_variant2_email.rb} +3 -2
  48. data/lib/inttegro/chime/{inline_recipient_variant2_type.rb → send_request_recipient_variant1_variant2_type.rb} +3 -3
  49. data/lib/inttegro/client.rb +10 -0
  50. data/lib/inttegro/financial_account/connected.rb +9 -0
  51. data/lib/inttegro/financial_account/created.rb +9 -0
  52. data/lib/inttegro/financial_account/details.rb +9 -0
  53. data/lib/inttegro/financial_account/financial_account.rb +9 -0
  54. data/lib/inttegro/financial_account/name_enquiry.rb +42 -0
  55. data/lib/inttegro/financial_account/updated.rb +9 -0
  56. data/lib/inttegro/generated/enums.rb +11 -2
  57. data/lib/inttegro/generated/models.rb +88 -34
  58. data/lib/inttegro/generated/operations.rb +23 -8
  59. data/lib/inttegro/message_template/create_email_request.rb +2 -3
  60. data/lib/inttegro/message_template/email_content.rb +6 -3
  61. data/lib/inttegro/message_template/email_content_from.rb +36 -0
  62. data/lib/inttegro/message_template/message_template.rb +2 -3
  63. data/lib/inttegro/message_template/rendered.rb +2 -3
  64. data/lib/inttegro/message_template/update_request.rb +2 -3
  65. data/lib/inttegro/models.rb +1 -0
  66. data/lib/inttegro/order/create_existing_customer.rb +5 -3
  67. data/lib/inttegro/order/create_new_customer.rb +5 -3
  68. data/lib/inttegro/order/invoice_format.rb +0 -8
  69. data/lib/inttegro/order/line_item_group.rb +6 -3
  70. data/lib/inttegro/order/{receipt_document_format.rb → receipt.rb} +15 -7
  71. data/lib/inttegro/order/receipt_format.rb +35 -0
  72. data/lib/inttegro/order/update_request.rb +5 -3
  73. data/lib/inttegro/payment/children_policy_capabilities.rb +35 -0
  74. data/lib/inttegro/payment/operating_policy_capabilities.rb +35 -0
  75. data/lib/inttegro/payment/operating_policy_capabilities_input.rb +35 -0
  76. data/lib/inttegro/payment/payment.rb +8 -0
  77. data/lib/inttegro/payment_method/children_policy_payment_method_capabilities.rb +35 -0
  78. data/lib/inttegro/payment_method/children_policy_payment_methods_capabilities.rb +50 -0
  79. data/lib/inttegro/payment_method/operating_policy_payment_method_capabilities.rb +35 -0
  80. data/lib/inttegro/payment_method/operating_policy_payment_methods_capabilities.rb +50 -0
  81. data/lib/inttegro/payout/amount_limits.rb +37 -0
  82. data/lib/inttegro/payout/cancellation.rb +42 -0
  83. data/lib/inttegro/payout/cancellation_reason.rb +30 -0
  84. data/lib/inttegro/payout/children_policy_capabilities.rb +43 -0
  85. data/lib/inttegro/payout/limit_value.rb +28 -0
  86. data/lib/inttegro/payout/operating_policy_capabilities.rb +43 -0
  87. data/lib/inttegro/payout/operating_policy_capabilities_input.rb +43 -0
  88. data/lib/inttegro/payout/payout.rb +9 -0
  89. data/lib/inttegro/payout/settings_limits.rb +28 -0
  90. data/lib/inttegro/payout/settings_lookup.rb +8 -0
  91. data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +7 -0
  92. data/lib/inttegro/payout/settings_mutation.rb +8 -0
  93. data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +4 -4
  94. data/lib/inttegro/product/line_item.rb +6 -3
  95. data/lib/inttegro/product/media.rb +8 -7
  96. data/lib/inttegro/product/update_request.rb +1 -1
  97. data/lib/inttegro/purchase_intent/merchant.rb +14 -19
  98. data/lib/inttegro/{checkout/invoice_view_format_receipt.rb → purchase_intent/merchant_asset.rb} +14 -7
  99. data/lib/inttegro/purchase_intent/merchant_branding.rb +50 -0
  100. data/lib/inttegro/purchase_intent/merchant_color_scheme.rb +76 -0
  101. data/lib/inttegro/purchase_intent/merchant_profile.rb +42 -0
  102. data/lib/inttegro/purchase_intent/merchant_support.rb +34 -0
  103. data/lib/inttegro/purchase_intent/purchase_intent.rb +10 -2
  104. data/lib/inttegro/refund/line_item.rb +5 -3
  105. data/lib/inttegro/refund/payment_method_settlement.rb +4 -3
  106. data/lib/inttegro/refund/refund.rb +4 -3
  107. data/lib/inttegro/resources/apps.rb +12 -0
  108. data/lib/inttegro/resources/children_policies.rb +26 -0
  109. data/lib/inttegro/resources/operating_policies.rb +52 -0
  110. data/lib/inttegro/schedule/chime_request.rb +5 -3
  111. data/lib/inttegro/shared/children_policy.rb +91 -0
  112. data/lib/inttegro/shared/children_policy_capabilities.rb +44 -0
  113. data/lib/inttegro/shared/children_policy_response.rb +28 -0
  114. data/lib/inttegro/shared/create_operating_policy_request.rb +42 -0
  115. data/lib/inttegro/shared/inline_operating_policy_selection.rb +28 -0
  116. data/lib/inttegro/shared/lookup_children_policy_request.rb +22 -0
  117. data/lib/inttegro/shared/lookup_operating_policy_request.rb +27 -0
  118. data/lib/inttegro/shared/operating_policy.rb +98 -0
  119. data/lib/inttegro/shared/operating_policy_capabilities.rb +44 -0
  120. data/lib/inttegro/shared/operating_policy_capabilities_input.rb +44 -0
  121. data/lib/inttegro/shared/operating_policy_response.rb +28 -0
  122. data/lib/inttegro/shared/operating_policy_selection.rb +19 -0
  123. data/lib/inttegro/shared/operating_policy_selection_by_id.rb +27 -0
  124. data/lib/inttegro/shared/operating_policy_source.rb +42 -0
  125. data/lib/inttegro/shared/operating_policy_source_type.rb +28 -0
  126. data/lib/inttegro/shared/policy_amount_range.rb +34 -0
  127. data/lib/inttegro/shared/policy_bt_aging_spec.rb +35 -0
  128. data/lib/inttegro/shared/policy_bt_aging_spec_public_id.rb +34 -0
  129. data/lib/inttegro/shared/policy_bt_aging_spec_reference.rb +28 -0
  130. data/lib/inttegro/shared/policy_bt_aging_spec_reference_id.rb +33 -0
  131. data/lib/inttegro/shared/policy_limits.rb +28 -0
  132. data/lib/inttegro/shared/update_operating_policy_request.rb +56 -0
  133. data/lib/inttegro/version.rb +1 -1
  134. data/rbi/inttegro/generated.rbi +29 -4
  135. metadata +79 -13
  136. data/lib/inttegro/app/relationship_policy.rb +0 -43
  137. data/lib/inttegro/checkout/amount_selection.rb +0 -84
@@ -6,10 +6,12 @@
6
6
  require_relative "base"
7
7
  require_relative "../custom_data"
8
8
  require_relative "../payment_method/data"
9
+ require_relative "../product/line_item"
9
10
  require_relative "../shared/billing_details"
11
+ require_relative "../shared/fee_line_item"
10
12
  require_relative "../shared/invoice_settings"
11
- require_relative "../shared/line_item"
12
13
  require_relative "../shared/shipping"
14
+ require_relative "../shared/shipping_line_item"
13
15
  require_relative "create_existing_customer_checkout_settings"
14
16
  require_relative "create_existing_customer_request_meta"
15
17
  require_relative "payout_settings_request"
@@ -106,7 +108,7 @@ module Inttegro
106
108
  # Value of the `line_items` field in the Inttegro API payload.
107
109
  #
108
110
  # Required in the API payload. Wire name: `line_items`.
109
- # @return [Array<Inttegro::Shared::LineItem>]
111
+ # @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>]
110
112
  #
111
113
  # @!attribute [r] custom_data
112
114
  # Merchant-defined string values attached to a resource. SDKs expose this as a semantic
@@ -139,7 +141,7 @@ module Inttegro
139
141
  const :checkout_settings, T.nilable(Inttegro::Order::CreateExistingCustomerCheckoutSettings), default: nil
140
142
  const :invoice_settings, T.nilable(Inttegro::Shared::InvoiceSettings), default: nil
141
143
  const :payout_settings, T.nilable(Inttegro::Order::PayoutSettingsRequest), default: nil
142
- const :line_items, T::Array[Inttegro::Shared::LineItem]
144
+ const :line_items, T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]
143
145
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
144
146
  const :billing_details, T.nilable(Inttegro::Shared::BillingDetails), default: nil
145
147
  const :shipping, T.nilable(Inttegro::Shared::Shipping), default: nil
@@ -7,10 +7,12 @@ require_relative "base"
7
7
  require_relative "../custom_data"
8
8
  require_relative "../customer/data"
9
9
  require_relative "../payment_method/data"
10
+ require_relative "../product/line_item"
10
11
  require_relative "../shared/billing_details"
12
+ require_relative "../shared/fee_line_item"
11
13
  require_relative "../shared/invoice_settings"
12
- require_relative "../shared/line_item"
13
14
  require_relative "../shared/shipping"
15
+ require_relative "../shared/shipping_line_item"
14
16
  require_relative "create_new_customer_checkout_settings"
15
17
  require_relative "create_new_customer_request_meta"
16
18
  require_relative "payout_settings_request"
@@ -108,7 +110,7 @@ module Inttegro
108
110
  # with explicit `price`, or `product_id` with `price_id`.
109
111
  #
110
112
  # Required in the API payload. Wire name: `line_items`.
111
- # @return [Array<Inttegro::Shared::LineItem>]
113
+ # @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>]
112
114
  #
113
115
  # @!attribute [r] custom_data
114
116
  # Merchant-defined string values attached to a resource. SDKs expose this as a semantic
@@ -141,7 +143,7 @@ module Inttegro
141
143
  const :checkout_settings, T.nilable(Inttegro::Order::CreateNewCustomerCheckoutSettings), default: nil
142
144
  const :invoice_settings, T.nilable(Inttegro::Shared::InvoiceSettings), default: nil
143
145
  const :payout_settings, T.nilable(Inttegro::Order::PayoutSettingsRequest), default: nil
144
- const :line_items, T::Array[Inttegro::Shared::LineItem]
146
+ const :line_items, T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]
145
147
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
146
148
  const :billing_details, T.nilable(Inttegro::Shared::BillingDetails), default: nil
147
149
  const :shipping, T.nilable(Inttegro::Shared::Shipping), default: nil
@@ -5,7 +5,6 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "document_format"
8
- require_relative "receipt_document_format"
9
8
 
10
9
  module Inttegro
11
10
  class Order
@@ -28,16 +27,9 @@ module Inttegro
28
27
  #
29
28
  # Required in the API payload. Wire name: `pdf`.
30
29
  # @return [Inttegro::Order::DocumentFormat]
31
- #
32
- # @!attribute [r] receipt
33
- # Value of the `receipt` field in the Inttegro API payload.
34
- #
35
- # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
36
- # @return [Inttegro::Order::ReceiptDocumentFormat, nil]
37
30
  class InvoiceFormat < T::Struct
38
31
  const :web, Inttegro::Order::DocumentFormat
39
32
  const :pdf, Inttegro::Order::DocumentFormat
40
- const :receipt, T.nilable(Inttegro::Order::ReceiptDocumentFormat), default: nil
41
33
  end
42
34
  end
43
35
  end
@@ -5,7 +5,10 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "../money/amount"
8
- require_relative "line_item"
8
+ require_relative "discount_line_item"
9
+ require_relative "fee_line_item"
10
+ require_relative "product_line_item"
11
+ require_relative "shipping_line_item"
9
12
 
10
13
  module Inttegro
11
14
  class Order
@@ -21,7 +24,7 @@ module Inttegro
21
24
  # Array of products, fees, and shipping charges
22
25
  #
23
26
  # Required in the API payload. Wire name: `line_items`.
24
- # @return [Array<Inttegro::Order::LineItem>]
27
+ # @return [Array<Inttegro::Order::ProductLineItem, Inttegro::Order::FeeLineItem, Inttegro::Order::ShippingLineItem, Inttegro::Order::DiscountLineItem>]
25
28
  #
26
29
  # @!attribute [r] total
27
30
  # Value of the `total` field in the Inttegro API payload.
@@ -29,7 +32,7 @@ module Inttegro
29
32
  # Required in the API payload. Wire name: `total`.
30
33
  # @return [Inttegro::Money::Amount]
31
34
  class LineItemGroup < T::Struct
32
- const :line_items, T::Array[Inttegro::Order::LineItem]
35
+ const :line_items, T::Array[T.any(Inttegro::Order::ProductLineItem, Inttegro::Order::FeeLineItem, Inttegro::Order::ShippingLineItem, Inttegro::Order::DiscountLineItem)]
33
36
  const :total, Inttegro::Money::Amount
34
37
 
35
38
  extend T::Sig
@@ -5,10 +5,11 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "document_delivery_summary"
8
+ require_relative "receipt_format"
8
9
 
9
10
  module Inttegro
10
11
  class Order
11
- # Typed representation of the receipt document format object in the Inttegro API.
12
+ # Receipt issued for a paid order payment.
12
13
  #
13
14
  # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
15
  # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
@@ -16,20 +17,27 @@ module Inttegro
16
17
  #
17
18
  # @api public
18
19
  #
20
+ # @!attribute [r] number
21
+ # Value of the `number` field in the Inttegro API payload.
22
+ #
23
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
24
+ # @return [String, nil]
25
+ #
19
26
  # @!attribute [r] delivery_summary
20
27
  # Bounded aggregate of Chime-accepted sends for one generated order document.
21
28
  #
22
29
  # Optional in the API payload; omitted values default to `nil`. Wire name: `delivery_summary`.
23
30
  # @return [Inttegro::Order::DocumentDeliverySummary, nil]
24
31
  #
25
- # @!attribute [r] url
26
- # Value of the `url` field in the Inttegro API payload.
32
+ # @!attribute [r] format_value
33
+ # Value of the `format` field in the Inttegro API payload.
27
34
  #
28
- # Required in the API payload. Wire name: `url`.
29
- # @return [String]
30
- class ReceiptDocumentFormat < T::Struct
35
+ # Required in the API payload. Wire name: `format`.
36
+ # @return [Inttegro::Order::ReceiptFormat]
37
+ class Receipt < T::Struct
38
+ const :number, T.nilable(String), default: nil
31
39
  const :delivery_summary, T.nilable(Inttegro::Order::DocumentDeliverySummary), default: nil
32
- const :url, String
40
+ const :format_value, Inttegro::Order::ReceiptFormat, name: "format"
33
41
  end
34
42
  end
35
43
  end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "document_format"
8
+
9
+ module Inttegro
10
+ class Order
11
+ # Typed representation of the receipt format object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] web
20
+ # Value of the `web` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `web`.
23
+ # @return [Inttegro::Order::DocumentFormat]
24
+ #
25
+ # @!attribute [r] pdf
26
+ # Value of the `pdf` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `pdf`.
29
+ # @return [Inttegro::Order::DocumentFormat]
30
+ class ReceiptFormat < T::Struct
31
+ const :web, Inttegro::Order::DocumentFormat
32
+ const :pdf, Inttegro::Order::DocumentFormat
33
+ end
34
+ end
35
+ end
@@ -5,8 +5,10 @@
5
5
 
6
6
  require_relative "base"
7
7
  require_relative "../custom_data"
8
+ require_relative "../product/line_item"
9
+ require_relative "../shared/fee_line_item"
8
10
  require_relative "../shared/invoice_settings"
9
- require_relative "../shared/line_item"
11
+ require_relative "../shared/shipping_line_item"
10
12
  require_relative "update_request_payment_method_data"
11
13
 
12
14
  module Inttegro
@@ -52,7 +54,7 @@ module Inttegro
52
54
  # unchanged.
53
55
  #
54
56
  # Optional in the API payload; omitted values default to `nil`. Wire name: `line_items`.
55
- # @return [Array<Inttegro::Shared::LineItem>, nil]
57
+ # @return [Array<Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem>, nil]
56
58
  #
57
59
  # @!attribute [r] number
58
60
  # Replacement order number.
@@ -105,7 +107,7 @@ module Inttegro
105
107
  const :custom_data, T.nilable(Inttegro::CustomData), default: nil
106
108
  const :invoice_settings, T.nilable(Inttegro::Shared::InvoiceSettings), default: nil
107
109
  const :finalize, T.nilable(T::Boolean), default: nil
108
- const :line_items, T.nilable(T::Array[Inttegro::Shared::LineItem]), default: nil
110
+ const :line_items, T.nilable(T::Array[T.any(Inttegro::Product::LineItem, Inttegro::Shared::FeeLineItem, Inttegro::Shared::ShippingLineItem)]), default: nil
109
111
  const :number, T.nilable(String), default: nil
110
112
  const :receipt_number, T.nilable(String), default: nil
111
113
  const :order_id, String
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "../shared/policy_limits"
8
+
9
+ module Inttegro
10
+ class Payment
11
+ # Typed representation of the children policy capabilities object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] currencies
20
+ # Value of the `currencies` field in the Inttegro API payload.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
23
+ # @return [Array<String>, nil]
24
+ #
25
+ # @!attribute [r] limits
26
+ # Value of the `limits` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
29
+ # @return [Inttegro::Shared::PolicyLimits, nil]
30
+ class ChildrenPolicyCapabilities < T::Struct
31
+ const :currencies, T.nilable(T::Array[String]), default: nil
32
+ const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "../shared/policy_limits"
8
+
9
+ module Inttegro
10
+ class Payment
11
+ # Typed representation of the operating policy capabilities object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] currencies
20
+ # Value of the `currencies` field in the Inttegro API payload.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
23
+ # @return [Array<String>, nil]
24
+ #
25
+ # @!attribute [r] limits
26
+ # Value of the `limits` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
29
+ # @return [Inttegro::Shared::PolicyLimits, nil]
30
+ class OperatingPolicyCapabilities < T::Struct
31
+ const :currencies, T.nilable(T::Array[String]), default: nil
32
+ const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "../shared/policy_limits"
8
+
9
+ module Inttegro
10
+ class Payment
11
+ # Typed representation of the operating policy capabilities input object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] currencies
20
+ # Value of the `currencies` field in the Inttegro API payload.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `currencies`.
23
+ # @return [Array<String>, nil]
24
+ #
25
+ # @!attribute [r] limits
26
+ # Value of the `limits` field in the Inttegro API payload.
27
+ #
28
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `limits`.
29
+ # @return [Inttegro::Shared::PolicyLimits, nil]
30
+ class OperatingPolicyCapabilitiesInput < T::Struct
31
+ const :currencies, T.nilable(T::Array[String]), default: nil
32
+ const :limits, T.nilable(Inttegro::Shared::PolicyLimits), default: nil
33
+ end
34
+ end
35
+ end
@@ -6,6 +6,7 @@
6
6
  require_relative "base"
7
7
  require_relative "../balance_transaction/balance_transaction"
8
8
  require_relative "../money/amount"
9
+ require_relative "../order/receipt"
9
10
  require_relative "billing_details"
10
11
  require_relative "customer"
11
12
  require_relative "latest_attempt"
@@ -67,6 +68,12 @@ module Inttegro
67
68
  # Optional in the API payload; omitted values default to `nil`. Wire name: `billing_details`.
68
69
  # @return [Inttegro::Payment::BillingDetails, nil]
69
70
  #
71
+ # @!attribute [r] receipt
72
+ # Receipt issued for a paid order payment.
73
+ #
74
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
75
+ # @return [Inttegro::Order::Receipt, nil]
76
+ #
70
77
  # @!attribute [r] customer
71
78
  # Value of the `customer` field in the Inttegro API payload.
72
79
  #
@@ -158,6 +165,7 @@ module Inttegro
158
165
  const :balance_transaction, T.nilable(Inttegro::BalanceTransaction), default: nil
159
166
  const :payment_method, T.nilable(Inttegro::Payment::PaymentMethod), default: nil
160
167
  const :billing_details, T.nilable(Inttegro::Payment::BillingDetails), default: nil
168
+ const :receipt, T.nilable(Inttegro::Order::Receipt), default: nil
161
169
  const :customer, T.nilable(Inttegro::Payment::Customer), default: nil
162
170
  const :latest_attempt, T.nilable(Inttegro::Payment::LatestAttempt), default: nil
163
171
  const :next_action, T.nilable(Inttegro::Payment::NextAction), default: nil
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ class PaymentMethod
10
+ # Typed representation of the children policy payment method capabilities object in the
11
+ # Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] enabled
20
+ # Value of the `enabled` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `enabled`.
23
+ # @return [Array<Boolean>]
24
+ #
25
+ # @!attribute [r] confirms_use
26
+ # Value of the `confirms_use` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `confirms_use`.
29
+ # @return [Array<Boolean>]
30
+ class ChildrenPolicyPaymentMethodCapabilities < T::Struct
31
+ const :enabled, T::Array[T::Boolean]
32
+ const :confirms_use, T::Array[T::Boolean]
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "children_policy_payment_method_capabilities"
8
+
9
+ module Inttegro
10
+ class PaymentMethod
11
+ # Typed representation of the children policy payment methods capabilities 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] mobile_money
21
+ # Value of the `mobile_money` field in the Inttegro API payload.
22
+ #
23
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `mobile_money`.
24
+ # @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
25
+ #
26
+ # @!attribute [r] bank_account
27
+ # Value of the `bank_account` field in the Inttegro API payload.
28
+ #
29
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `bank_account`.
30
+ # @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
31
+ #
32
+ # @!attribute [r] motito
33
+ # Value of the `motito` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `motito`.
36
+ # @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
37
+ #
38
+ # @!attribute [r] card
39
+ # Value of the `card` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `card`.
42
+ # @return [Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities, nil]
43
+ class ChildrenPolicyPaymentMethodsCapabilities < T::Struct
44
+ const :mobile_money, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
45
+ const :bank_account, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
46
+ const :motito, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
47
+ const :card, T.nilable(Inttegro::PaymentMethod::ChildrenPolicyPaymentMethodCapabilities), default: nil
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ class PaymentMethod
10
+ # Typed representation of the operating policy payment method capabilities object in the
11
+ # Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] enabled
20
+ # Value of the `enabled` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `enabled`.
23
+ # @return [Boolean]
24
+ #
25
+ # @!attribute [r] confirms_use
26
+ # Value of the `confirms_use` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `confirms_use`.
29
+ # @return [Boolean]
30
+ class OperatingPolicyPaymentMethodCapabilities < T::Struct
31
+ const :enabled, T::Boolean
32
+ const :confirms_use, T::Boolean
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "operating_policy_payment_method_capabilities"
8
+
9
+ module Inttegro
10
+ class PaymentMethod
11
+ # Typed representation of the operating policy payment methods capabilities 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] mobile_money
21
+ # Value of the `mobile_money` field in the Inttegro API payload.
22
+ #
23
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `mobile_money`.
24
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
25
+ #
26
+ # @!attribute [r] bank_account
27
+ # Value of the `bank_account` field in the Inttegro API payload.
28
+ #
29
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `bank_account`.
30
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
31
+ #
32
+ # @!attribute [r] motito
33
+ # Value of the `motito` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `motito`.
36
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
37
+ #
38
+ # @!attribute [r] card
39
+ # Value of the `card` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `card`.
42
+ # @return [Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities, nil]
43
+ class OperatingPolicyPaymentMethodsCapabilities < T::Struct
44
+ const :mobile_money, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
45
+ const :bank_account, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
46
+ const :motito, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
47
+ const :card, T.nilable(Inttegro::PaymentMethod::OperatingPolicyPaymentMethodCapabilities), default: nil
48
+ end
49
+ end
50
+ 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 "limit_value"
8
+
9
+ module Inttegro
10
+ class Payout
11
+ # Inclusive payout amount range. Values use the currency's smallest unit.
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] min
20
+ # A payout limit in the currency's smallest unit. The enclosing map key identifies the
21
+ # currency.
22
+ #
23
+ # Required in the API payload. Wire name: `min`.
24
+ # @return [Inttegro::Payout::LimitValue]
25
+ #
26
+ # @!attribute [r] max
27
+ # A payout limit in the currency's smallest unit. The enclosing map key identifies the
28
+ # currency.
29
+ #
30
+ # Required in the API payload. Wire name: `max`.
31
+ # @return [Inttegro::Payout::LimitValue]
32
+ class AmountLimits < T::Struct
33
+ const :min, Inttegro::Payout::LimitValue
34
+ const :max, Inttegro::Payout::LimitValue
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "cancellation_reason"
8
+
9
+ module Inttegro
10
+ class Payout
11
+ # Stable, caller-safe information and guidance for a canceled payout.
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] detail
20
+ # Human-readable explanation safe to show to an operator.
21
+ #
22
+ # Required in the API payload. Wire name: `detail`.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [r] reason
26
+ # Stable category describing why the payout was canceled.
27
+ #
28
+ # Required in the API payload. Wire name: `reason`.
29
+ # @return [Inttegro::Payout::CancellationReason]
30
+ #
31
+ # @!attribute [r] remediation
32
+ # Recommended next step safe to show to an operator.
33
+ #
34
+ # Required in the API payload. Wire name: `remediation`.
35
+ # @return [String]
36
+ class Cancellation < T::Struct
37
+ const :detail, String
38
+ const :reason, Inttegro::Payout::CancellationReason
39
+ const :remediation, String
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,30 @@
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 Payout
10
+ # Stable category describing why the payout was canceled.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class CancellationReason < T::Enum
17
+ enums do
18
+ # Serialized wire value: `requested`.
19
+ # @return [Inttegro::Payout::CancellationReason]
20
+ REQUESTED = new("requested")
21
+ # Serialized wire value: `no_eligible_funds`.
22
+ # @return [Inttegro::Payout::CancellationReason]
23
+ NO_ELIGIBLE_FUNDS = new("no_eligible_funds")
24
+ # Serialized wire value: `unknown`.
25
+ # @return [Inttegro::Payout::CancellationReason]
26
+ UNKNOWN = new("unknown")
27
+ end
28
+ end
29
+ end
30
+ end