maytes-api-client-rb 0.1.1

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 (163) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +47 -0
  5. data/Rakefile +10 -0
  6. data/docs/CancelCheckout409Response.md +24 -0
  7. data/docs/CancelCheckoutRequest.md +18 -0
  8. data/docs/CancelCheckoutResponse.md +18 -0
  9. data/docs/CaptureCheckout409Response.md +24 -0
  10. data/docs/CaptureCheckout422Response.md +24 -0
  11. data/docs/CaptureCheckoutRequest.md +24 -0
  12. data/docs/CaptureCheckoutResponse.md +18 -0
  13. data/docs/Checkout.md +48 -0
  14. data/docs/CheckoutCancelled.md +22 -0
  15. data/docs/CheckoutCaptured.md +28 -0
  16. data/docs/CheckoutCreated.md +24 -0
  17. data/docs/CheckoutDiscount.md +30 -0
  18. data/docs/CheckoutFee.md +32 -0
  19. data/docs/CreateCheckout401Response.md +24 -0
  20. data/docs/CreateCheckout409Response.md +24 -0
  21. data/docs/CreateCheckout422Response.md +24 -0
  22. data/docs/CreateCheckoutRequest.md +44 -0
  23. data/docs/CreateCheckoutResponse.md +18 -0
  24. data/docs/CreateRefundRequest.md +20 -0
  25. data/docs/CustomerData.md +22 -0
  26. data/docs/DefaultApi.md +633 -0
  27. data/docs/DigitalGoodsCustomData.md +18 -0
  28. data/docs/DigitalGoodsLineItem.md +38 -0
  29. data/docs/DonationLineItem.md +36 -0
  30. data/docs/ErrorResponseDto.md +24 -0
  31. data/docs/Fee.md +24 -0
  32. data/docs/FeeBreakdownLine.md +24 -0
  33. data/docs/FoodBeverageLineItem.md +36 -0
  34. data/docs/GetCheckout404Response.md +24 -0
  35. data/docs/GetCheckout422Response.md +24 -0
  36. data/docs/GetCheckoutResponse.md +18 -0
  37. data/docs/GetSettlementResponse.md +18 -0
  38. data/docs/HealthResponse.md +18 -0
  39. data/docs/LineItem.md +94 -0
  40. data/docs/ListSettlementsResponse.md +18 -0
  41. data/docs/OAuthTokenRequest.md +30 -0
  42. data/docs/OAuthTokenResponse.md +26 -0
  43. data/docs/OtherLineItem.md +36 -0
  44. data/docs/PhysicalGoodsCustomData.md +20 -0
  45. data/docs/PhysicalGoodsLineItem.md +38 -0
  46. data/docs/RefundCheckout402Response.md +24 -0
  47. data/docs/RefundCheckout409Response.md +24 -0
  48. data/docs/ServiceCustomData.md +18 -0
  49. data/docs/ServiceLineItem.md +38 -0
  50. data/docs/Settlement.md +52 -0
  51. data/docs/Tax.md +22 -0
  52. data/docs/TicketCustomData.md +40 -0
  53. data/docs/TicketLineItem.md +38 -0
  54. data/docs/TicketSeating.md +24 -0
  55. data/lib/maytes_api_client/api/default_api.rb +642 -0
  56. data/lib/maytes_api_client/api_client.rb +397 -0
  57. data/lib/maytes_api_client/api_error.rb +58 -0
  58. data/lib/maytes_api_client/api_model_base.rb +88 -0
  59. data/lib/maytes_api_client/configuration.rb +316 -0
  60. data/lib/maytes_api_client/managed_client.rb +140 -0
  61. data/lib/maytes_api_client/models/cancel_checkout409_response.rb +258 -0
  62. data/lib/maytes_api_client/models/cancel_checkout_request.rb +147 -0
  63. data/lib/maytes_api_client/models/cancel_checkout_response.rb +164 -0
  64. data/lib/maytes_api_client/models/capture_checkout409_response.rb +258 -0
  65. data/lib/maytes_api_client/models/capture_checkout422_response.rb +258 -0
  66. data/lib/maytes_api_client/models/capture_checkout_request.rb +218 -0
  67. data/lib/maytes_api_client/models/capture_checkout_response.rb +164 -0
  68. data/lib/maytes_api_client/models/checkout.rb +483 -0
  69. data/lib/maytes_api_client/models/checkout_cancelled.rb +202 -0
  70. data/lib/maytes_api_client/models/checkout_captured.rb +266 -0
  71. data/lib/maytes_api_client/models/checkout_created.rb +242 -0
  72. data/lib/maytes_api_client/models/checkout_discount.rb +329 -0
  73. data/lib/maytes_api_client/models/checkout_fee.rb +351 -0
  74. data/lib/maytes_api_client/models/create_checkout401_response.rb +258 -0
  75. data/lib/maytes_api_client/models/create_checkout409_response.rb +258 -0
  76. data/lib/maytes_api_client/models/create_checkout422_response.rb +258 -0
  77. data/lib/maytes_api_client/models/create_checkout_request.rb +444 -0
  78. data/lib/maytes_api_client/models/create_checkout_response.rb +164 -0
  79. data/lib/maytes_api_client/models/create_refund_request.rb +212 -0
  80. data/lib/maytes_api_client/models/customer_data.rb +168 -0
  81. data/lib/maytes_api_client/models/digital_goods_custom_data.rb +148 -0
  82. data/lib/maytes_api_client/models/digital_goods_line_item.rb +414 -0
  83. data/lib/maytes_api_client/models/donation_line_item.rb +405 -0
  84. data/lib/maytes_api_client/models/error_response_dto.rb +227 -0
  85. data/lib/maytes_api_client/models/fee.rb +271 -0
  86. data/lib/maytes_api_client/models/fee_breakdown_line.rb +266 -0
  87. data/lib/maytes_api_client/models/food_beverage_line_item.rb +405 -0
  88. data/lib/maytes_api_client/models/get_checkout404_response.rb +258 -0
  89. data/lib/maytes_api_client/models/get_checkout422_response.rb +258 -0
  90. data/lib/maytes_api_client/models/get_checkout_response.rb +164 -0
  91. data/lib/maytes_api_client/models/get_settlement_response.rb +164 -0
  92. data/lib/maytes_api_client/models/health_response.rb +164 -0
  93. data/lib/maytes_api_client/models/line_item.rb +65 -0
  94. data/lib/maytes_api_client/models/list_settlements_response.rb +166 -0
  95. data/lib/maytes_api_client/models/o_auth_token_request.rb +244 -0
  96. data/lib/maytes_api_client/models/o_auth_token_response.rb +251 -0
  97. data/lib/maytes_api_client/models/other_line_item.rb +405 -0
  98. data/lib/maytes_api_client/models/physical_goods_custom_data.rb +173 -0
  99. data/lib/maytes_api_client/models/physical_goods_line_item.rb +431 -0
  100. data/lib/maytes_api_client/models/refund_checkout402_response.rb +258 -0
  101. data/lib/maytes_api_client/models/refund_checkout409_response.rb +258 -0
  102. data/lib/maytes_api_client/models/service_custom_data.rb +148 -0
  103. data/lib/maytes_api_client/models/service_line_item.rb +414 -0
  104. data/lib/maytes_api_client/models/settlement.rb +526 -0
  105. data/lib/maytes_api_client/models/tax.rb +202 -0
  106. data/lib/maytes_api_client/models/ticket_custom_data.rb +333 -0
  107. data/lib/maytes_api_client/models/ticket_line_item.rb +431 -0
  108. data/lib/maytes_api_client/models/ticket_seating.rb +176 -0
  109. data/lib/maytes_api_client/version.rb +15 -0
  110. data/lib/maytes_api_client/webhook_verifier.rb +212 -0
  111. data/lib/maytes_api_client.rb +95 -0
  112. data/maytes_api_client.gemspec +39 -0
  113. data/spec/api/default_api_spec.rb +145 -0
  114. data/spec/models/cancel_checkout409_response_spec.rb +58 -0
  115. data/spec/models/cancel_checkout_request_spec.rb +36 -0
  116. data/spec/models/cancel_checkout_response_spec.rb +36 -0
  117. data/spec/models/capture_checkout409_response_spec.rb +58 -0
  118. data/spec/models/capture_checkout422_response_spec.rb +58 -0
  119. data/spec/models/capture_checkout_request_spec.rb +54 -0
  120. data/spec/models/capture_checkout_response_spec.rb +36 -0
  121. data/spec/models/checkout_cancelled_spec.rb +48 -0
  122. data/spec/models/checkout_captured_spec.rb +66 -0
  123. data/spec/models/checkout_created_spec.rb +54 -0
  124. data/spec/models/checkout_discount_spec.rb +76 -0
  125. data/spec/models/checkout_fee_spec.rb +86 -0
  126. data/spec/models/checkout_spec.rb +126 -0
  127. data/spec/models/create_checkout401_response_spec.rb +58 -0
  128. data/spec/models/create_checkout409_response_spec.rb +58 -0
  129. data/spec/models/create_checkout422_response_spec.rb +58 -0
  130. data/spec/models/create_checkout_request_spec.rb +118 -0
  131. data/spec/models/create_checkout_response_spec.rb +36 -0
  132. data/spec/models/create_refund_request_spec.rb +42 -0
  133. data/spec/models/customer_data_spec.rb +48 -0
  134. data/spec/models/digital_goods_custom_data_spec.rb +36 -0
  135. data/spec/models/digital_goods_line_item_spec.rb +100 -0
  136. data/spec/models/donation_line_item_spec.rb +94 -0
  137. data/spec/models/error_response_dto_spec.rb +54 -0
  138. data/spec/models/fee_breakdown_line_spec.rb +58 -0
  139. data/spec/models/fee_spec.rb +54 -0
  140. data/spec/models/food_beverage_line_item_spec.rb +94 -0
  141. data/spec/models/get_checkout404_response_spec.rb +58 -0
  142. data/spec/models/get_checkout422_response_spec.rb +58 -0
  143. data/spec/models/get_checkout_response_spec.rb +36 -0
  144. data/spec/models/get_settlement_response_spec.rb +36 -0
  145. data/spec/models/health_response_spec.rb +36 -0
  146. data/spec/models/line_item_spec.rb +44 -0
  147. data/spec/models/list_settlements_response_spec.rb +36 -0
  148. data/spec/models/o_auth_token_request_spec.rb +72 -0
  149. data/spec/models/o_auth_token_response_spec.rb +60 -0
  150. data/spec/models/other_line_item_spec.rb +94 -0
  151. data/spec/models/physical_goods_custom_data_spec.rb +42 -0
  152. data/spec/models/physical_goods_line_item_spec.rb +100 -0
  153. data/spec/models/refund_checkout402_response_spec.rb +58 -0
  154. data/spec/models/refund_checkout409_response_spec.rb +58 -0
  155. data/spec/models/service_custom_data_spec.rb +36 -0
  156. data/spec/models/service_line_item_spec.rb +100 -0
  157. data/spec/models/settlement_spec.rb +138 -0
  158. data/spec/models/tax_spec.rb +48 -0
  159. data/spec/models/ticket_custom_data_spec.rb +106 -0
  160. data/spec/models/ticket_line_item_spec.rb +100 -0
  161. data/spec/models/ticket_seating_spec.rb +54 -0
  162. data/spec/spec_helper.rb +111 -0
  163. metadata +295 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 20554fbc0822fb7425d36ab1910c844cb60cabb55989a3a36ed3e4e6f7ce7ec6
4
+ data.tar.gz: 3ae75434416e7428a56c8e58e7fcc3a740a8eb49bf16fb4cc32b7a000d5e61e0
5
+ SHA512:
6
+ metadata.gz: 267a7cdd7f40288025fe1b2d84fca38cc61595f602b0928c938942158bbf16274ce44c741b3e33be615efe71e5cb39ec9a68614596105c101d534f2dfe948713
7
+ data.tar.gz: c4b533c7a1c9727ad96faf6990b898abf3fea01f38bc3a86d26c8ccadf8ad145aebe9840da5e9b056776ced86597827ce2cdb5123caa5a4b36698ebb258f731b
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maytes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # Maytes Ruby SDK
2
+
3
+ Official Ruby client for the [Maytes API](https://developers.maytes.co) — create,
4
+ capture and cancel checkouts, and verify inbound webhook signatures.
5
+
6
+ > **Generated package.** This repository is a build artefact, published from the
7
+ > Maytes API service definition. Pull requests here are not accepted — file
8
+ > issues instead, and fixes land upstream in the source model.
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ gem install maytes-api-client-rb
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ The client mints an OAuth2 `client_credentials` token on first use, caches it,
19
+ and — on a `401` — refreshes and retries the request once. There is no
20
+ client-side expiry maths to get wrong, and no proactive refresh to schedule.
21
+
22
+ ```ruby
23
+ require 'maytes_api_client'
24
+
25
+ api = MaytesApiClient.create_maytes_api_client(
26
+ endpoint: endpoint, client_id: client_id, client_secret: client_secret,
27
+ )
28
+ checkout = api.create_checkout(request)
29
+
30
+ event = MaytesApiClient.verify_webhook_signature(raw_body, signature_header, signing_secret)
31
+ ```
32
+
33
+ The gem is `maytes-api-client-rb`; the require path is `maytes_api_client`.
34
+
35
+ ### Verifying webhooks
36
+
37
+ Verify **before** parsing the body, and pass the raw request bytes — not a
38
+ re-encoded object. Re-serialising changes the bytes and the signature will not
39
+ match. The event id is stable across retries, so deduplicate on it.
40
+
41
+ ## Documentation
42
+
43
+ Full integration docs: <https://developers.maytes.co>
44
+
45
+ ## License
46
+
47
+ MIT — see [LICENSE](LICENSE).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CancelCheckout409Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CancelCheckout409Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # MaytesApiClient::CancelCheckoutRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **merchant_order_id** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'maytes_api_client'
13
+
14
+ instance = MaytesApiClient::CancelCheckoutRequest.new(
15
+ merchant_order_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # MaytesApiClient::CancelCheckoutResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**CheckoutCancelled**](CheckoutCancelled.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'maytes_api_client'
13
+
14
+ instance = MaytesApiClient::CancelCheckoutResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CaptureCheckout409Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CaptureCheckout409Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CaptureCheckout422Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CaptureCheckout422Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CaptureCheckoutRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **merchant_order_id** | **String** | | [optional] |
8
+ | **expected_total_amount** | **Integer** | | [optional] |
9
+ | **currency** | **String** | | [optional] |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CaptureCheckoutRequest.new(
18
+ merchant_order_id: null,
19
+ expected_total_amount: null,
20
+ currency: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # MaytesApiClient::CaptureCheckoutResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**CheckoutCaptured**](CheckoutCaptured.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'maytes_api_client'
13
+
14
+ instance = MaytesApiClient::CaptureCheckoutResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
data/docs/Checkout.md ADDED
@@ -0,0 +1,48 @@
1
+ # MaytesApiClient::Checkout
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **checkout_uuid** | **String** | | |
8
+ | **merchant_order_id** | **String** | | |
9
+ | **status** | **String** | | |
10
+ | **transaction_ref** | **String** | | |
11
+ | **checkout_url** | **String** | | |
12
+ | **merchant_expires_at** | **Time** | | |
13
+ | **captured_at** | **Time** | | |
14
+ | **return_url** | **String** | | |
15
+ | **cancel_url** | **String** | | |
16
+ | **amount** | **Integer** | | |
17
+ | **currency** | **String** | | |
18
+ | **service_fee** | [**Fee**](Fee.md) | | |
19
+ | **refunded_amount** | **Integer** | | |
20
+ | **merchant_processor_fee** | **Integer** | | |
21
+ | **merchant_service_fee** | **Integer** | | |
22
+ | **last_refund_at** | **Time** | | |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'maytes_api_client'
28
+
29
+ instance = MaytesApiClient::Checkout.new(
30
+ checkout_uuid: null,
31
+ merchant_order_id: null,
32
+ status: null,
33
+ transaction_ref: null,
34
+ checkout_url: null,
35
+ merchant_expires_at: null,
36
+ captured_at: null,
37
+ return_url: null,
38
+ cancel_url: null,
39
+ amount: null,
40
+ currency: null,
41
+ service_fee: null,
42
+ refunded_amount: null,
43
+ merchant_processor_fee: null,
44
+ merchant_service_fee: null,
45
+ last_refund_at: null
46
+ )
47
+ ```
48
+
@@ -0,0 +1,22 @@
1
+ # MaytesApiClient::CheckoutCancelled
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **checkout_uuid** | **String** | | |
8
+ | **merchant_order_id** | **String** | | |
9
+ | **status** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'maytes_api_client'
15
+
16
+ instance = MaytesApiClient::CheckoutCancelled.new(
17
+ checkout_uuid: null,
18
+ merchant_order_id: null,
19
+ status: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # MaytesApiClient::CheckoutCaptured
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **checkout_uuid** | **String** | | |
8
+ | **merchant_order_id** | **String** | | |
9
+ | **status** | **String** | | |
10
+ | **captured_at** | **Time** | | |
11
+ | **amount** | **Integer** | | |
12
+ | **currency** | **String** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'maytes_api_client'
18
+
19
+ instance = MaytesApiClient::CheckoutCaptured.new(
20
+ checkout_uuid: null,
21
+ merchant_order_id: null,
22
+ status: null,
23
+ captured_at: null,
24
+ amount: null,
25
+ currency: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CheckoutCreated
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **checkout_uuid** | **String** | | |
8
+ | **status** | **String** | | |
9
+ | **checkout_url** | **String** | | |
10
+ | **expires_at** | **Time** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CheckoutCreated.new(
18
+ checkout_uuid: null,
19
+ status: null,
20
+ checkout_url: null,
21
+ expires_at: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,30 @@
1
+ # MaytesApiClient::CheckoutDiscount
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **description** | **String** | | [optional] |
9
+ | **scope** | **String** | | |
10
+ | **amount** | **Integer** | | |
11
+ | **currency** | **String** | | |
12
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
13
+ | **applies_to** | **Array&lt;String&gt;** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'maytes_api_client'
19
+
20
+ instance = MaytesApiClient::CheckoutDiscount.new(
21
+ name: null,
22
+ description: null,
23
+ scope: null,
24
+ amount: null,
25
+ currency: null,
26
+ metadata: null,
27
+ applies_to: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,32 @@
1
+ # MaytesApiClient::CheckoutFee
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **description** | **String** | | [optional] |
9
+ | **fee_type** | **String** | | [optional] |
10
+ | **scope** | **String** | | |
11
+ | **amount** | **Integer** | | |
12
+ | **currency** | **String** | | |
13
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
14
+ | **applies_to** | **Array&lt;String&gt;** | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'maytes_api_client'
20
+
21
+ instance = MaytesApiClient::CheckoutFee.new(
22
+ name: null,
23
+ description: null,
24
+ fee_type: null,
25
+ scope: null,
26
+ amount: null,
27
+ currency: null,
28
+ metadata: null,
29
+ applies_to: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CreateCheckout401Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CreateCheckout401Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CreateCheckout409Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CreateCheckout409Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # MaytesApiClient::CreateCheckout422Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+ | **error** | **String** | | |
9
+ | **code** | **String** | | |
10
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'maytes_api_client'
16
+
17
+ instance = MaytesApiClient::CreateCheckout422Response.new(
18
+ message: null,
19
+ error: null,
20
+ code: null,
21
+ metadata: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,44 @@
1
+ # MaytesApiClient::CreateCheckoutRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **merchant_order_id** | **String** | | [optional] |
8
+ | **merchant_expires_at** | **Time** | | [optional] |
9
+ | **total_amount** | **Integer** | | |
10
+ | **currency** | **String** | | |
11
+ | **return_url** | **String** | | |
12
+ | **cancel_url** | **String** | | |
13
+ | **items** | [**Array&lt;LineItem&gt;**](LineItem.md) | | |
14
+ | **fees** | [**Array&lt;CheckoutFee&gt;**](CheckoutFee.md) | | [optional] |
15
+ | **discounts** | [**Array&lt;CheckoutDiscount&gt;**](CheckoutDiscount.md) | | [optional] |
16
+ | **tax** | [**Tax**](Tax.md) | | [optional] |
17
+ | **shipping_amount** | **Integer** | | [optional] |
18
+ | **customer_data** | [**CustomerData**](CustomerData.md) | | [optional] |
19
+ | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
20
+ | **allocation_model** | **String** | | [optional] |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'maytes_api_client'
26
+
27
+ instance = MaytesApiClient::CreateCheckoutRequest.new(
28
+ merchant_order_id: null,
29
+ merchant_expires_at: null,
30
+ total_amount: null,
31
+ currency: null,
32
+ return_url: null,
33
+ cancel_url: null,
34
+ items: null,
35
+ fees: null,
36
+ discounts: null,
37
+ tax: null,
38
+ shipping_amount: null,
39
+ customer_data: null,
40
+ metadata: null,
41
+ allocation_model: null
42
+ )
43
+ ```
44
+
@@ -0,0 +1,18 @@
1
+ # MaytesApiClient::CreateCheckoutResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**CheckoutCreated**](CheckoutCreated.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'maytes_api_client'
13
+
14
+ instance = MaytesApiClient::CreateCheckoutResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # MaytesApiClient::CreateRefundRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **reason** | **String** | Free-text reason; forwarded to Stripe as refund metadata. | [optional] |
8
+ | **merchant_refund_ref** | **String** | Idempotency key scoped to the merchant. Repeating the same value returns the existing refund. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'maytes_api_client'
14
+
15
+ instance = MaytesApiClient::CreateRefundRequest.new(
16
+ reason: null,
17
+ merchant_refund_ref: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # MaytesApiClient::CustomerData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **mobile** | **String** | | [optional] |
9
+ | **email** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'maytes_api_client'
15
+
16
+ instance = MaytesApiClient::CustomerData.new(
17
+ name: null,
18
+ mobile: null,
19
+ email: null
20
+ )
21
+ ```
22
+