sezzle_client 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +611 -0
- data/Rakefile +8 -0
- data/docs/Address.md +14 -0
- data/docs/AllOfSessionCustomer.md +13 -0
- data/docs/AllOfSessionOrder.md +18 -0
- data/docs/Authorization.md +14 -0
- data/docs/BearerAuthenticationApi.md +52 -0
- data/docs/Body.md +8 -0
- data/docs/Body1.md +7 -0
- data/docs/Body2.md +6 -0
- data/docs/Body3.md +8 -0
- data/docs/Body4.md +8 -0
- data/docs/Capture.md +8 -0
- data/docs/Customer.md +13 -0
- data/docs/CustomerApi.md +269 -0
- data/docs/Discount.md +8 -0
- data/docs/Error.md +6 -0
- data/docs/ErrorInner.md +10 -0
- data/docs/InlineResponse200.md +10 -0
- data/docs/InlineResponse2001.md +15 -0
- data/docs/InlineResponse2002.md +9 -0
- data/docs/InlineResponse2003.md +15 -0
- data/docs/InlineResponse2004.md +8 -0
- data/docs/InlineResponse2005.md +12 -0
- data/docs/InlineResponse2006.md +7 -0
- data/docs/InlineResponse2007.md +14 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2009.md +7 -0
- data/docs/InlineResponse200Order.md +10 -0
- data/docs/InlineResponse201.md +9 -0
- data/docs/InlineResponse2011.md +10 -0
- data/docs/InlineResponse2011Order.md +9 -0
- data/docs/InlineResponse2011Tokenize.md +10 -0
- data/docs/InstallmentPlan.md +6 -0
- data/docs/Intent.md +6 -0
- data/docs/LineItem.md +10 -0
- data/docs/Link.md +9 -0
- data/docs/Notification.md +9 -0
- data/docs/Order.md +15 -0
- data/docs/OrderApi.md +391 -0
- data/docs/OrderAuthorization.md +12 -0
- data/docs/Payout.md +6 -0
- data/docs/PayoutInner.md +12 -0
- data/docs/Price.md +8 -0
- data/docs/Refund.md +8 -0
- data/docs/ReportsApi.md +230 -0
- data/docs/Session.md +10 -0
- data/docs/SessionApi.md +113 -0
- data/docs/SessionCancelUrl.md +8 -0
- data/docs/SessionStatus.md +8 -0
- data/docs/Token.md +10 -0
- data/docs/TokenApi.md +110 -0
- data/docs/Webhook.md +8 -0
- data/docs/WebhooksApi.md +157 -0
- data/git_push.sh +55 -0
- data/lib/sezzle_client.rb +90 -0
- data/lib/sezzle_client/api/bearer_authentication_api.rb +76 -0
- data/lib/sezzle_client/api/customer_api.rb +295 -0
- data/lib/sezzle_client/api/order_api.rb +430 -0
- data/lib/sezzle_client/api/reports_api.rb +253 -0
- data/lib/sezzle_client/api/session_api.rb +132 -0
- data/lib/sezzle_client/api/token_api.rb +126 -0
- data/lib/sezzle_client/api/webhooks_api.rb +178 -0
- data/lib/sezzle_client/api_client.rb +388 -0
- data/lib/sezzle_client/api_error.rb +57 -0
- data/lib/sezzle_client/configuration.rb +205 -0
- data/lib/sezzle_client/models/address.rb +297 -0
- data/lib/sezzle_client/models/all_of_session_customer.rb +260 -0
- data/lib/sezzle_client/models/all_of_session_order.rb +314 -0
- data/lib/sezzle_client/models/authorization.rb +281 -0
- data/lib/sezzle_client/models/body.rb +215 -0
- data/lib/sezzle_client/models/body_1.rb +206 -0
- data/lib/sezzle_client/models/body_2.rb +197 -0
- data/lib/sezzle_client/models/body_3.rb +215 -0
- data/lib/sezzle_client/models/body_4.rb +215 -0
- data/lib/sezzle_client/models/capture.rb +215 -0
- data/lib/sezzle_client/models/customer.rb +260 -0
- data/lib/sezzle_client/models/discount.rb +225 -0
- data/lib/sezzle_client/models/error.rb +201 -0
- data/lib/sezzle_client/models/error_inner.rb +233 -0
- data/lib/sezzle_client/models/inline_response_200.rb +239 -0
- data/lib/sezzle_client/models/inline_response_200_1.rb +286 -0
- data/lib/sezzle_client/models/inline_response_200_2.rb +226 -0
- data/lib/sezzle_client/models/inline_response_200_3.rb +284 -0
- data/lib/sezzle_client/models/inline_response_200_4.rb +215 -0
- data/lib/sezzle_client/models/inline_response_200_5.rb +257 -0
- data/lib/sezzle_client/models/inline_response_200_6.rb +206 -0
- data/lib/sezzle_client/models/inline_response_200_7.rb +277 -0
- data/lib/sezzle_client/models/inline_response_200_8.rb +217 -0
- data/lib/sezzle_client/models/inline_response_200_9.rb +206 -0
- data/lib/sezzle_client/models/inline_response_200_order.rb +235 -0
- data/lib/sezzle_client/models/inline_response_201.rb +224 -0
- data/lib/sezzle_client/models/inline_response_201_1.rb +235 -0
- data/lib/sezzle_client/models/inline_response_201_1_order.rb +226 -0
- data/lib/sezzle_client/models/inline_response_201_1_tokenize.rb +235 -0
- data/lib/sezzle_client/models/installment_plan.rb +28 -0
- data/lib/sezzle_client/models/intent.rb +28 -0
- data/lib/sezzle_client/models/line_item.rb +253 -0
- data/lib/sezzle_client/models/link.rb +224 -0
- data/lib/sezzle_client/models/notification.rb +224 -0
- data/lib/sezzle_client/models/order.rb +284 -0
- data/lib/sezzle_client/models/order_authorization.rb +257 -0
- data/lib/sezzle_client/models/payout.rb +201 -0
- data/lib/sezzle_client/models/payout_inner.rb +251 -0
- data/lib/sezzle_client/models/price.rb +225 -0
- data/lib/sezzle_client/models/refund.rb +215 -0
- data/lib/sezzle_client/models/session.rb +243 -0
- data/lib/sezzle_client/models/session_cancel_url.rb +215 -0
- data/lib/sezzle_client/models/session_status.rb +217 -0
- data/lib/sezzle_client/models/token.rb +235 -0
- data/lib/sezzle_client/models/webhook.rb +222 -0
- data/lib/sezzle_client/version.rb +14 -0
- data/sezzle_client.gemspec +38 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/bearer_authentication_api_spec.rb +45 -0
- data/spec/api/customer_api_spec.rb +91 -0
- data/spec/api/order_api_spec.rb +119 -0
- data/spec/api/reports_api_spec.rb +84 -0
- data/spec/api/session_api_spec.rb +57 -0
- data/spec/api/token_api_spec.rb +56 -0
- data/spec/api/webhooks_api_spec.rb +66 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/address_spec.rb +82 -0
- data/spec/models/all_of_session_customer_spec.rb +76 -0
- data/spec/models/all_of_session_order_spec.rb +106 -0
- data/spec/models/authorization_spec.rb +82 -0
- data/spec/models/body_1_spec.rb +40 -0
- data/spec/models/body_2_spec.rb +34 -0
- data/spec/models/body_3_spec.rb +46 -0
- data/spec/models/body_4_spec.rb +46 -0
- data/spec/models/body_spec.rb +46 -0
- data/spec/models/capture_spec.rb +46 -0
- data/spec/models/customer_spec.rb +76 -0
- data/spec/models/discount_spec.rb +46 -0
- data/spec/models/error_inner_spec.rb +58 -0
- data/spec/models/error_spec.rb +34 -0
- data/spec/models/inline_response_200_1_spec.rb +88 -0
- data/spec/models/inline_response_200_2_spec.rb +52 -0
- data/spec/models/inline_response_200_3_spec.rb +88 -0
- data/spec/models/inline_response_200_4_spec.rb +46 -0
- data/spec/models/inline_response_200_5_spec.rb +70 -0
- data/spec/models/inline_response_200_6_spec.rb +40 -0
- data/spec/models/inline_response_200_7_spec.rb +82 -0
- data/spec/models/inline_response_200_8_spec.rb +46 -0
- data/spec/models/inline_response_200_9_spec.rb +40 -0
- data/spec/models/inline_response_200_order_spec.rb +58 -0
- data/spec/models/inline_response_200_spec.rb +58 -0
- data/spec/models/inline_response_201_1_order_spec.rb +52 -0
- data/spec/models/inline_response_201_1_spec.rb +58 -0
- data/spec/models/inline_response_201_1_tokenize_spec.rb +58 -0
- data/spec/models/inline_response_201_spec.rb +52 -0
- data/spec/models/installment_plan_spec.rb +34 -0
- data/spec/models/intent_spec.rb +34 -0
- data/spec/models/line_item_spec.rb +58 -0
- data/spec/models/link_spec.rb +52 -0
- data/spec/models/notification_spec.rb +52 -0
- data/spec/models/order_authorization_spec.rb +70 -0
- data/spec/models/order_spec.rb +88 -0
- data/spec/models/payout_inner_spec.rb +70 -0
- data/spec/models/payout_spec.rb +34 -0
- data/spec/models/price_spec.rb +46 -0
- data/spec/models/refund_spec.rb +46 -0
- data/spec/models/session_cancel_url_spec.rb +46 -0
- data/spec/models/session_spec.rb +58 -0
- data/spec/models/session_status_spec.rb +46 -0
- data/spec/models/token_spec.rb +58 -0
- data/spec/models/webhook_spec.rb +46 -0
- data/spec/spec_helper.rb +110 -0
- metadata +331 -0
data/docs/Discount.md
ADDED
data/docs/Error.md
ADDED
data/docs/ErrorInner.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::ErrorInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**code** | **String** | | [optional]
|
7
|
+
**location** | **String** | | [optional]
|
8
|
+
**message** | **String** | | [optional]
|
9
|
+
**debug_uuid** | **String** | | [optional]
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::InlineResponse200
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
8
|
+
**order** | [**InlineResponse200Order**](InlineResponse200Order.md) | | [optional]
|
9
|
+
**tokenize** | [**InlineResponse2011Tokenize**](InlineResponse2011Tokenize.md) | | [optional]
|
10
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# SezzleClient::InlineResponse2001
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
8
|
+
**intent** | **String** | | [optional]
|
9
|
+
**reference_id** | **String** | | [optional]
|
10
|
+
**description** | **String** | | [optional]
|
11
|
+
**metadata** | **Hash<String, String>** | | [optional]
|
12
|
+
**order_amount** | [**Price**](Price.md) | | [optional]
|
13
|
+
**customer** | [**Customer**](Customer.md) | | [optional]
|
14
|
+
**authorization** | [**OrderAuthorization**](OrderAuthorization.md) | | [optional]
|
15
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SezzleClient::InlineResponse2002
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**expiration** | **DateTime** | | [optional]
|
8
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
9
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# SezzleClient::InlineResponse2003
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | | [optional]
|
7
|
+
**first_name** | **String** | | [optional]
|
8
|
+
**last_name** | **String** | | [optional]
|
9
|
+
**phone** | **String** | | [optional]
|
10
|
+
**dob** | **String** | | [optional]
|
11
|
+
**billing_address** | [**Address**](Address.md) | | [optional]
|
12
|
+
**shipping_address** | [**Address**](Address.md) | | [optional]
|
13
|
+
**uuid** | **String** | | [optional]
|
14
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
15
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SezzleClient::InlineResponse2005
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
8
|
+
**intent** | **String** | | [optional]
|
9
|
+
**reference_id** | **String** | | [optional]
|
10
|
+
**order_amount** | [**Price**](Price.md) | | [optional]
|
11
|
+
**authorization** | [**OrderAuthorization**](OrderAuthorization.md) | | [optional]
|
12
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# SezzleClient::InlineResponse2007
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
8
|
+
**intent** | **String** | | [optional]
|
9
|
+
**reference_id** | **String** | | [optional]
|
10
|
+
**description** | **String** | | [optional]
|
11
|
+
**metadata** | **Hash<String, String>** | | [optional]
|
12
|
+
**order_amount** | [**Price**](Price.md) | | [optional]
|
13
|
+
**authorization** | [**OrderAuthorization**](OrderAuthorization.md) | | [optional]
|
14
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::InlineResponse200Order
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**intent** | [**Intent**](Intent.md) | | [optional]
|
7
|
+
**uuid** | **String** | | [optional]
|
8
|
+
**checkout_url** | **String** | | [optional]
|
9
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SezzleClient::InlineResponse201
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**expiration_date** | **DateTime** | | [optional]
|
7
|
+
**merchant_uuid** | **String** | | [optional]
|
8
|
+
**token** | **String** | | [optional]
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::InlineResponse2011
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
8
|
+
**order** | [**InlineResponse2011Order**](InlineResponse2011Order.md) | | [optional]
|
9
|
+
**tokenize** | [**InlineResponse2011Tokenize**](InlineResponse2011Tokenize.md) | | [optional]
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SezzleClient::InlineResponse2011Order
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**checkout_url** | **String** | | [optional]
|
8
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::InlineResponse2011Tokenize
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**token** | **String** | | [optional]
|
7
|
+
**expiration** | **DateTime** | | [optional]
|
8
|
+
**approval_url** | **String** | | [optional]
|
9
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
10
|
+
|
data/docs/Intent.md
ADDED
data/docs/LineItem.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::LineItem
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | |
|
7
|
+
**price** | [**Price**](Price.md) | |
|
8
|
+
**quantity** | **Integer** | |
|
9
|
+
**sku** | **String** | |
|
10
|
+
|
data/docs/Link.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# SezzleClient::Notification
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**to_sms_phone** | **String** | | [optional]
|
7
|
+
**to_email** | **String** | | [optional]
|
8
|
+
**language** | **String** | | [optional]
|
9
|
+
|
data/docs/Order.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# SezzleClient::Order
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**reference_id** | **String** | | [optional]
|
7
|
+
**description** | **String** | | [optional]
|
8
|
+
**requires_shipping_info** | **BOOLEAN** | | [optional]
|
9
|
+
**items** | [**Array<LineItem>**](LineItem.md) | | [optional]
|
10
|
+
**discounts** | [**Array<Discount>**](Discount.md) | | [optional]
|
11
|
+
**metadata** | **Hash<String, String>** | | [optional]
|
12
|
+
**shipping_amount** | [**Price**](Price.md) | | [optional]
|
13
|
+
**tax_amount** | [**Price**](Price.md) | | [optional]
|
14
|
+
**checkout_expiration** | **DateTime** | | [optional]
|
15
|
+
|
data/docs/OrderApi.md
ADDED
@@ -0,0 +1,391 @@
|
|
1
|
+
# SezzleClient::OrderApi
|
2
|
+
|
3
|
+
All URIs are relative to *//sandbox.gateway.sezzle.com/v2/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_v2_order**](OrderApi.md#get_v2_order) | **GET** /order/{order_uuid} | Get order details
|
8
|
+
[**patch_v2_checkout**](OrderApi.md#patch_v2_checkout) | **PATCH** /order/{order_uuid} | Update order
|
9
|
+
[**post_v2_capture_by_order**](OrderApi.md#post_v2_capture_by_order) | **POST** /order/{order_uuid}/capture | Capture amount by order
|
10
|
+
[**post_v2_reauthorize_by_order**](OrderApi.md#post_v2_reauthorize_by_order) | **POST** /order/{order_uuid}/reauthorize | Reauthorize amount by order
|
11
|
+
[**post_v2_refund_by_order**](OrderApi.md#post_v2_refund_by_order) | **POST** /order/{order_uuid}/refund | Refund amount by order
|
12
|
+
[**post_v2_release_by_order**](OrderApi.md#post_v2_release_by_order) | **POST** /order/{order_uuid}/release | Release amount by order
|
13
|
+
[**post_v2_upcharge_by_order**](OrderApi.md#post_v2_upcharge_by_order) | **POST** /order/{order_uuid}/upcharge | Upcharge amount by order
|
14
|
+
|
15
|
+
# **get_v2_order**
|
16
|
+
> InlineResponse2001 get_v2_order(order_uuid)
|
17
|
+
|
18
|
+
Get order details
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'sezzle_client'
|
24
|
+
# setup authorization
|
25
|
+
SezzleClient.configure do |config|
|
26
|
+
# Configure API key authorization: Bearer
|
27
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = SezzleClient::OrderApi.new
|
33
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Get order details
|
38
|
+
result = api_instance.get_v2_order(order_uuid)
|
39
|
+
p result
|
40
|
+
rescue SezzleClient::ApiError => e
|
41
|
+
puts "Exception when calling OrderApi->get_v2_order: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**order_uuid** | **String**| Order UUID |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[Bearer](../README.md#Bearer)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: Not defined
|
62
|
+
- **Accept**: application/json
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
# **patch_v2_checkout**
|
67
|
+
> patch_v2_checkout(bodyorder_uuid)
|
68
|
+
|
69
|
+
Update order
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'sezzle_client'
|
75
|
+
# setup authorization
|
76
|
+
SezzleClient.configure do |config|
|
77
|
+
# Configure API key authorization: Bearer
|
78
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
79
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
80
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
81
|
+
end
|
82
|
+
|
83
|
+
api_instance = SezzleClient::OrderApi.new
|
84
|
+
body = SezzleClient::Body1.new # Body1 | Session request
|
85
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
86
|
+
|
87
|
+
|
88
|
+
begin
|
89
|
+
#Update order
|
90
|
+
api_instance.patch_v2_checkout(bodyorder_uuid)
|
91
|
+
rescue SezzleClient::ApiError => e
|
92
|
+
puts "Exception when calling OrderApi->patch_v2_checkout: #{e}"
|
93
|
+
end
|
94
|
+
```
|
95
|
+
|
96
|
+
### Parameters
|
97
|
+
|
98
|
+
Name | Type | Description | Notes
|
99
|
+
------------- | ------------- | ------------- | -------------
|
100
|
+
**body** | [**Body1**](Body1.md)| Session request |
|
101
|
+
**order_uuid** | **String**| Order UUID |
|
102
|
+
|
103
|
+
### Return type
|
104
|
+
|
105
|
+
nil (empty response body)
|
106
|
+
|
107
|
+
### Authorization
|
108
|
+
|
109
|
+
[Bearer](../README.md#Bearer)
|
110
|
+
|
111
|
+
### HTTP request headers
|
112
|
+
|
113
|
+
- **Content-Type**: application/json
|
114
|
+
- **Accept**: application/json
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
# **post_v2_capture_by_order**
|
119
|
+
> InlineResponse2006 post_v2_capture_by_order(order_uuid, opts)
|
120
|
+
|
121
|
+
Capture amount by order
|
122
|
+
|
123
|
+
### Example
|
124
|
+
```ruby
|
125
|
+
# load the gem
|
126
|
+
require 'sezzle_client'
|
127
|
+
# setup authorization
|
128
|
+
SezzleClient.configure do |config|
|
129
|
+
# Configure API key authorization: Bearer
|
130
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
131
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
132
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
133
|
+
end
|
134
|
+
|
135
|
+
api_instance = SezzleClient::OrderApi.new
|
136
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
137
|
+
opts = {
|
138
|
+
body: SezzleClient::Body3.new # Body3 | Capture request
|
139
|
+
}
|
140
|
+
|
141
|
+
begin
|
142
|
+
#Capture amount by order
|
143
|
+
result = api_instance.post_v2_capture_by_order(order_uuid, opts)
|
144
|
+
p result
|
145
|
+
rescue SezzleClient::ApiError => e
|
146
|
+
puts "Exception when calling OrderApi->post_v2_capture_by_order: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
Name | Type | Description | Notes
|
153
|
+
------------- | ------------- | ------------- | -------------
|
154
|
+
**order_uuid** | **String**| Order UUID |
|
155
|
+
**body** | [**Body3**](Body3.md)| Capture request | [optional]
|
156
|
+
|
157
|
+
### Return type
|
158
|
+
|
159
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
160
|
+
|
161
|
+
### Authorization
|
162
|
+
|
163
|
+
[Bearer](../README.md#Bearer)
|
164
|
+
|
165
|
+
### HTTP request headers
|
166
|
+
|
167
|
+
- **Content-Type**: application/json
|
168
|
+
- **Accept**: application/json
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
# **post_v2_reauthorize_by_order**
|
173
|
+
> InlineResponse2007 post_v2_reauthorize_by_order(order_uuid, opts)
|
174
|
+
|
175
|
+
Reauthorize amount by order
|
176
|
+
|
177
|
+
### DEVELOPER PREVIEW *This API is subject to change and limited to select merchants. Bug fixes and new features will be released based on feedback throughout the preview period.* - Requires customer object on Create Session with at minimum `{ tokenize: true }` - Response will be a new order and its `uuid` can be used on the Order API endpoints
|
178
|
+
|
179
|
+
### Example
|
180
|
+
```ruby
|
181
|
+
# load the gem
|
182
|
+
require 'sezzle_client'
|
183
|
+
# setup authorization
|
184
|
+
SezzleClient.configure do |config|
|
185
|
+
# Configure API key authorization: Bearer
|
186
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
187
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
188
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
189
|
+
end
|
190
|
+
|
191
|
+
api_instance = SezzleClient::OrderApi.new
|
192
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
193
|
+
opts = {
|
194
|
+
body: SezzleClient::Price.new # Price | Reauthorize request
|
195
|
+
}
|
196
|
+
|
197
|
+
begin
|
198
|
+
#Reauthorize amount by order
|
199
|
+
result = api_instance.post_v2_reauthorize_by_order(order_uuid, opts)
|
200
|
+
p result
|
201
|
+
rescue SezzleClient::ApiError => e
|
202
|
+
puts "Exception when calling OrderApi->post_v2_reauthorize_by_order: #{e}"
|
203
|
+
end
|
204
|
+
```
|
205
|
+
|
206
|
+
### Parameters
|
207
|
+
|
208
|
+
Name | Type | Description | Notes
|
209
|
+
------------- | ------------- | ------------- | -------------
|
210
|
+
**order_uuid** | **String**| Order UUID |
|
211
|
+
**body** | [**Price**](Price.md)| Reauthorize request | [optional]
|
212
|
+
|
213
|
+
### Return type
|
214
|
+
|
215
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
216
|
+
|
217
|
+
### Authorization
|
218
|
+
|
219
|
+
[Bearer](../README.md#Bearer)
|
220
|
+
|
221
|
+
### HTTP request headers
|
222
|
+
|
223
|
+
- **Content-Type**: application/json
|
224
|
+
- **Accept**: application/json
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
# **post_v2_refund_by_order**
|
229
|
+
> InlineResponse2006 post_v2_refund_by_order(order_uuid, opts)
|
230
|
+
|
231
|
+
Refund amount by order
|
232
|
+
|
233
|
+
### Example
|
234
|
+
```ruby
|
235
|
+
# load the gem
|
236
|
+
require 'sezzle_client'
|
237
|
+
# setup authorization
|
238
|
+
SezzleClient.configure do |config|
|
239
|
+
# Configure API key authorization: Bearer
|
240
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
241
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
242
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
243
|
+
end
|
244
|
+
|
245
|
+
api_instance = SezzleClient::OrderApi.new
|
246
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
247
|
+
opts = {
|
248
|
+
body: SezzleClient::Price.new # Price | Refund request
|
249
|
+
}
|
250
|
+
|
251
|
+
begin
|
252
|
+
#Refund amount by order
|
253
|
+
result = api_instance.post_v2_refund_by_order(order_uuid, opts)
|
254
|
+
p result
|
255
|
+
rescue SezzleClient::ApiError => e
|
256
|
+
puts "Exception when calling OrderApi->post_v2_refund_by_order: #{e}"
|
257
|
+
end
|
258
|
+
```
|
259
|
+
|
260
|
+
### Parameters
|
261
|
+
|
262
|
+
Name | Type | Description | Notes
|
263
|
+
------------- | ------------- | ------------- | -------------
|
264
|
+
**order_uuid** | **String**| Order UUID |
|
265
|
+
**body** | [**Price**](Price.md)| Refund request | [optional]
|
266
|
+
|
267
|
+
### Return type
|
268
|
+
|
269
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
270
|
+
|
271
|
+
### Authorization
|
272
|
+
|
273
|
+
[Bearer](../README.md#Bearer)
|
274
|
+
|
275
|
+
### HTTP request headers
|
276
|
+
|
277
|
+
- **Content-Type**: application/json
|
278
|
+
- **Accept**: application/json
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
# **post_v2_release_by_order**
|
283
|
+
> InlineResponse2006 post_v2_release_by_order(order_uuid, opts)
|
284
|
+
|
285
|
+
Release amount by order
|
286
|
+
|
287
|
+
### Example
|
288
|
+
```ruby
|
289
|
+
# load the gem
|
290
|
+
require 'sezzle_client'
|
291
|
+
# setup authorization
|
292
|
+
SezzleClient.configure do |config|
|
293
|
+
# Configure API key authorization: Bearer
|
294
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
295
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
296
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
297
|
+
end
|
298
|
+
|
299
|
+
api_instance = SezzleClient::OrderApi.new
|
300
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
301
|
+
opts = {
|
302
|
+
body: SezzleClient::Price.new # Price | Release request
|
303
|
+
}
|
304
|
+
|
305
|
+
begin
|
306
|
+
#Release amount by order
|
307
|
+
result = api_instance.post_v2_release_by_order(order_uuid, opts)
|
308
|
+
p result
|
309
|
+
rescue SezzleClient::ApiError => e
|
310
|
+
puts "Exception when calling OrderApi->post_v2_release_by_order: #{e}"
|
311
|
+
end
|
312
|
+
```
|
313
|
+
|
314
|
+
### Parameters
|
315
|
+
|
316
|
+
Name | Type | Description | Notes
|
317
|
+
------------- | ------------- | ------------- | -------------
|
318
|
+
**order_uuid** | **String**| Order UUID |
|
319
|
+
**body** | [**Price**](Price.md)| Release request | [optional]
|
320
|
+
|
321
|
+
### Return type
|
322
|
+
|
323
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
324
|
+
|
325
|
+
### Authorization
|
326
|
+
|
327
|
+
[Bearer](../README.md#Bearer)
|
328
|
+
|
329
|
+
### HTTP request headers
|
330
|
+
|
331
|
+
- **Content-Type**: application/json
|
332
|
+
- **Accept**: application/json
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
# **post_v2_upcharge_by_order**
|
337
|
+
> InlineResponse2007 post_v2_upcharge_by_order(order_uuid, opts)
|
338
|
+
|
339
|
+
Upcharge amount by order
|
340
|
+
|
341
|
+
### DEVELOPER PREVIEW *This API is subject to change and limited to select merchants. Bug fixes and new features will be released based on feedback throughout the preview period.* - This endpoint is not live and will return a `501 Not Implemented`
|
342
|
+
|
343
|
+
### Example
|
344
|
+
```ruby
|
345
|
+
# load the gem
|
346
|
+
require 'sezzle_client'
|
347
|
+
# setup authorization
|
348
|
+
SezzleClient.configure do |config|
|
349
|
+
# Configure API key authorization: Bearer
|
350
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
351
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
352
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
353
|
+
end
|
354
|
+
|
355
|
+
api_instance = SezzleClient::OrderApi.new
|
356
|
+
order_uuid = 'order_uuid_example' # String | Order UUID
|
357
|
+
opts = {
|
358
|
+
body: SezzleClient::Body4.new # Body4 | Upcharge request
|
359
|
+
}
|
360
|
+
|
361
|
+
begin
|
362
|
+
#Upcharge amount by order
|
363
|
+
result = api_instance.post_v2_upcharge_by_order(order_uuid, opts)
|
364
|
+
p result
|
365
|
+
rescue SezzleClient::ApiError => e
|
366
|
+
puts "Exception when calling OrderApi->post_v2_upcharge_by_order: #{e}"
|
367
|
+
end
|
368
|
+
```
|
369
|
+
|
370
|
+
### Parameters
|
371
|
+
|
372
|
+
Name | Type | Description | Notes
|
373
|
+
------------- | ------------- | ------------- | -------------
|
374
|
+
**order_uuid** | **String**| Order UUID |
|
375
|
+
**body** | [**Body4**](Body4.md)| Upcharge request | [optional]
|
376
|
+
|
377
|
+
### Return type
|
378
|
+
|
379
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
380
|
+
|
381
|
+
### Authorization
|
382
|
+
|
383
|
+
[Bearer](../README.md#Bearer)
|
384
|
+
|
385
|
+
### HTTP request headers
|
386
|
+
|
387
|
+
- **Content-Type**: application/json
|
388
|
+
- **Accept**: application/json
|
389
|
+
|
390
|
+
|
391
|
+
|