sezzle_client 1.0.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.
- 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
@@ -0,0 +1,12 @@
|
|
1
|
+
# SezzleClient::OrderAuthorization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authorization_amount** | [**Price**](Price.md) | | [optional]
|
7
|
+
**approved** | **BOOLEAN** | | [optional]
|
8
|
+
**expiration** | **DateTime** | | [optional]
|
9
|
+
**releases** | [**Array<Capture>**](Capture.md) | | [optional]
|
10
|
+
**captures** | [**Array<Capture>**](Capture.md) | | [optional]
|
11
|
+
**refunds** | [**Array<Refund>**](Refund.md) | | [optional]
|
12
|
+
|
data/docs/Payout.md
ADDED
data/docs/PayoutInner.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# SezzleClient::PayoutInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**uuid** | **String** | | [optional]
|
7
|
+
**payout_currency** | **String** | | [optional]
|
8
|
+
**payout_date** | **DateTime** | | [optional]
|
9
|
+
**net_settlement_amount** | [**BigDecimal**](BigDecimal.md) | | [optional]
|
10
|
+
**forex_fees** | **Integer** | | [optional]
|
11
|
+
**status** | **String** | | [optional]
|
12
|
+
|
data/docs/Price.md
ADDED
data/docs/Refund.md
ADDED
data/docs/ReportsApi.md
ADDED
@@ -0,0 +1,230 @@
|
|
1
|
+
# SezzleClient::ReportsApi
|
2
|
+
|
3
|
+
All URIs are relative to *//sandbox.gateway.sezzle.com/v2/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_interest_account_activity**](ReportsApi.md#get_interest_account_activity) | **GET** /interest/activity | Interest Account Activity
|
8
|
+
[**get_interest_account_balance**](ReportsApi.md#get_interest_account_balance) | **GET** /interest/balance | Interest Account Balance
|
9
|
+
[**get_settlement_details**](ReportsApi.md#get_settlement_details) | **GET** /settlements/details/{payout_uuid} | Settlement Details
|
10
|
+
[**get_settlement_summaries**](ReportsApi.md#get_settlement_summaries) | **GET** /settlements/summaries | Settlement Summaries
|
11
|
+
|
12
|
+
# **get_interest_account_activity**
|
13
|
+
> String get_interest_account_activity(start_date, opts)
|
14
|
+
|
15
|
+
Interest Account Activity
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'sezzle_client'
|
21
|
+
# setup authorization
|
22
|
+
SezzleClient.configure do |config|
|
23
|
+
# Configure API key authorization: Bearer
|
24
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = SezzleClient::ReportsApi.new
|
30
|
+
start_date = 'start_date_example' # String | Start Date
|
31
|
+
opts = {
|
32
|
+
end_date: 'end_date_example', # String | End Date
|
33
|
+
offset: 'offset_example', # String | Pagination Offset (Limit 20)
|
34
|
+
currency_code: 'currency_code_example' # String | ISO-4217 Currency Code
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Interest Account Activity
|
39
|
+
result = api_instance.get_interest_account_activity(start_date, opts)
|
40
|
+
p result
|
41
|
+
rescue SezzleClient::ApiError => e
|
42
|
+
puts "Exception when calling ReportsApi->get_interest_account_activity: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**start_date** | **String**| Start Date |
|
51
|
+
**end_date** | **String**| End Date | [optional]
|
52
|
+
**offset** | **String**| Pagination Offset (Limit 20) | [optional]
|
53
|
+
**currency_code** | **String**| ISO-4217 Currency Code | [optional]
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
**String**
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[Bearer](../README.md#Bearer)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: Not defined
|
66
|
+
- **Accept**: text/csv, application/json
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
# **get_interest_account_balance**
|
71
|
+
> InlineResponse2009 get_interest_account_balance(opts)
|
72
|
+
|
73
|
+
Interest Account Balance
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'sezzle_client'
|
79
|
+
# setup authorization
|
80
|
+
SezzleClient.configure do |config|
|
81
|
+
# Configure API key authorization: Bearer
|
82
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
83
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
84
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = SezzleClient::ReportsApi.new
|
88
|
+
opts = {
|
89
|
+
currency_code: 'currency_code_example' # String | ISO-4217 Currency Code
|
90
|
+
}
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Interest Account Balance
|
94
|
+
result = api_instance.get_interest_account_balance(opts)
|
95
|
+
p result
|
96
|
+
rescue SezzleClient::ApiError => e
|
97
|
+
puts "Exception when calling ReportsApi->get_interest_account_balance: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**currency_code** | **String**| ISO-4217 Currency Code | [optional]
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
[**InlineResponse2009**](InlineResponse2009.md)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Bearer](../README.md#Bearer)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
# **get_settlement_details**
|
123
|
+
> String get_settlement_details(payout_uuid)
|
124
|
+
|
125
|
+
Settlement Details
|
126
|
+
|
127
|
+
### Example
|
128
|
+
```ruby
|
129
|
+
# load the gem
|
130
|
+
require 'sezzle_client'
|
131
|
+
# setup authorization
|
132
|
+
SezzleClient.configure do |config|
|
133
|
+
# Configure API key authorization: Bearer
|
134
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
135
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
136
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = SezzleClient::ReportsApi.new
|
140
|
+
payout_uuid = 'payout_uuid_example' # String | Payout UUID
|
141
|
+
|
142
|
+
|
143
|
+
begin
|
144
|
+
#Settlement Details
|
145
|
+
result = api_instance.get_settlement_details(payout_uuid)
|
146
|
+
p result
|
147
|
+
rescue SezzleClient::ApiError => e
|
148
|
+
puts "Exception when calling ReportsApi->get_settlement_details: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
Name | Type | Description | Notes
|
155
|
+
------------- | ------------- | ------------- | -------------
|
156
|
+
**payout_uuid** | **String**| Payout UUID |
|
157
|
+
|
158
|
+
### Return type
|
159
|
+
|
160
|
+
**String**
|
161
|
+
|
162
|
+
### Authorization
|
163
|
+
|
164
|
+
[Bearer](../README.md#Bearer)
|
165
|
+
|
166
|
+
### HTTP request headers
|
167
|
+
|
168
|
+
- **Content-Type**: Not defined
|
169
|
+
- **Accept**: text/csv, application/json
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
# **get_settlement_summaries**
|
174
|
+
> Payout get_settlement_summaries(start_date, opts)
|
175
|
+
|
176
|
+
Settlement Summaries
|
177
|
+
|
178
|
+
### Example
|
179
|
+
```ruby
|
180
|
+
# load the gem
|
181
|
+
require 'sezzle_client'
|
182
|
+
# setup authorization
|
183
|
+
SezzleClient.configure do |config|
|
184
|
+
# Configure API key authorization: Bearer
|
185
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
186
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
187
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = SezzleClient::ReportsApi.new
|
191
|
+
start_date = 'start_date_example' # String | Start Date
|
192
|
+
opts = {
|
193
|
+
end_date: 'end_date_example', # String | End Date
|
194
|
+
offset: 'offset_example', # String | Pagination Offset (Limit 20)
|
195
|
+
currency_code: 'currency_code_example' # String | ISO-4217 Currency Code
|
196
|
+
}
|
197
|
+
|
198
|
+
begin
|
199
|
+
#Settlement Summaries
|
200
|
+
result = api_instance.get_settlement_summaries(start_date, opts)
|
201
|
+
p result
|
202
|
+
rescue SezzleClient::ApiError => e
|
203
|
+
puts "Exception when calling ReportsApi->get_settlement_summaries: #{e}"
|
204
|
+
end
|
205
|
+
```
|
206
|
+
|
207
|
+
### Parameters
|
208
|
+
|
209
|
+
Name | Type | Description | Notes
|
210
|
+
------------- | ------------- | ------------- | -------------
|
211
|
+
**start_date** | **String**| Start Date |
|
212
|
+
**end_date** | **String**| End Date | [optional]
|
213
|
+
**offset** | **String**| Pagination Offset (Limit 20) | [optional]
|
214
|
+
**currency_code** | **String**| ISO-4217 Currency Code | [optional]
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
[**Payout**](Payout.md)
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
[Bearer](../README.md#Bearer)
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: Not defined
|
227
|
+
- **Accept**: application/json
|
228
|
+
|
229
|
+
|
230
|
+
|
data/docs/Session.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::Session
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**cancel_url** | [**SessionCancelUrl**](SessionCancelUrl.md) | |
|
7
|
+
**complete_url** | [**SessionCancelUrl**](SessionCancelUrl.md) | |
|
8
|
+
**customer** | [**AllOfSessionCustomer**](AllOfSessionCustomer.md) | | [optional]
|
9
|
+
**order** | [**AllOfSessionOrder**](AllOfSessionOrder.md) | | [optional]
|
10
|
+
|
data/docs/SessionApi.md
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
# SezzleClient::SessionApi
|
2
|
+
|
3
|
+
All URIs are relative to *//sandbox.gateway.sezzle.com/v2/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_v2_session**](SessionApi.md#get_v2_session) | **GET** /session/{session_uuid} | Get session status
|
8
|
+
[**post_v2_session**](SessionApi.md#post_v2_session) | **POST** /session | Create a new session
|
9
|
+
|
10
|
+
# **get_v2_session**
|
11
|
+
> InlineResponse200 get_v2_session(session_uuid)
|
12
|
+
|
13
|
+
Get session status
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'sezzle_client'
|
19
|
+
# setup authorization
|
20
|
+
SezzleClient.configure do |config|
|
21
|
+
# Configure API key authorization: Bearer
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = SezzleClient::SessionApi.new
|
28
|
+
session_uuid = 'session_uuid_example' # String | Session UUID
|
29
|
+
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Get session status
|
33
|
+
result = api_instance.get_v2_session(session_uuid)
|
34
|
+
p result
|
35
|
+
rescue SezzleClient::ApiError => e
|
36
|
+
puts "Exception when calling SessionApi->get_v2_session: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**session_uuid** | **String**| Session UUID |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**InlineResponse200**](InlineResponse200.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[Bearer](../README.md#Bearer)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
# **post_v2_session**
|
62
|
+
> InlineResponse2011 post_v2_session(body)
|
63
|
+
|
64
|
+
Create a new session
|
65
|
+
|
66
|
+
Create new customer checkout and/or tokenize customer
|
67
|
+
|
68
|
+
### Example
|
69
|
+
```ruby
|
70
|
+
# load the gem
|
71
|
+
require 'sezzle_client'
|
72
|
+
# setup authorization
|
73
|
+
SezzleClient.configure do |config|
|
74
|
+
# Configure API key authorization: Bearer
|
75
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
76
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
77
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
78
|
+
end
|
79
|
+
|
80
|
+
api_instance = SezzleClient::SessionApi.new
|
81
|
+
body = SezzleClient::Session.new # Session | Session request
|
82
|
+
|
83
|
+
|
84
|
+
begin
|
85
|
+
#Create a new session
|
86
|
+
result = api_instance.post_v2_session(body)
|
87
|
+
p result
|
88
|
+
rescue SezzleClient::ApiError => e
|
89
|
+
puts "Exception when calling SessionApi->post_v2_session: #{e}"
|
90
|
+
end
|
91
|
+
```
|
92
|
+
|
93
|
+
### Parameters
|
94
|
+
|
95
|
+
Name | Type | Description | Notes
|
96
|
+
------------- | ------------- | ------------- | -------------
|
97
|
+
**body** | [**Session**](Session.md)| Session request |
|
98
|
+
|
99
|
+
### Return type
|
100
|
+
|
101
|
+
[**InlineResponse2011**](InlineResponse2011.md)
|
102
|
+
|
103
|
+
### Authorization
|
104
|
+
|
105
|
+
[Bearer](../README.md#Bearer)
|
106
|
+
|
107
|
+
### HTTP request headers
|
108
|
+
|
109
|
+
- **Content-Type**: application/json
|
110
|
+
- **Accept**: application/json
|
111
|
+
|
112
|
+
|
113
|
+
|
data/docs/Token.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SezzleClient::Token
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**token** | **String** | | [optional]
|
7
|
+
**expiration** | **DateTime** | | [optional]
|
8
|
+
**links** | [**Array<Link>**](Link.md) | | [optional]
|
9
|
+
**customer** | [**InlineResponse2002**](InlineResponse2002.md) | | [optional]
|
10
|
+
|
data/docs/TokenApi.md
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
# SezzleClient::TokenApi
|
2
|
+
|
3
|
+
All URIs are relative to *//sandbox.gateway.sezzle.com/v2/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_v2_customer_token**](TokenApi.md#get_v2_customer_token) | **GET** /token/{token}/customer | Get customer token
|
8
|
+
[**get_v2_session_token**](TokenApi.md#get_v2_session_token) | **GET** /token/{token}/session | Get session token
|
9
|
+
|
10
|
+
# **get_v2_customer_token**
|
11
|
+
> get_v2_customer_token(token)
|
12
|
+
|
13
|
+
Get customer token
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'sezzle_client'
|
19
|
+
# setup authorization
|
20
|
+
SezzleClient.configure do |config|
|
21
|
+
# Configure API key authorization: Bearer
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = SezzleClient::TokenApi.new
|
28
|
+
token = 'token_example' # String | Customer initiated token, e.g. generated in mobile app
|
29
|
+
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Get customer token
|
33
|
+
api_instance.get_v2_customer_token(token)
|
34
|
+
rescue SezzleClient::ApiError => e
|
35
|
+
puts "Exception when calling TokenApi->get_v2_customer_token: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
|
41
|
+
Name | Type | Description | Notes
|
42
|
+
------------- | ------------- | ------------- | -------------
|
43
|
+
**token** | **String**| Customer initiated token, e.g. generated in mobile app |
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
nil (empty response body)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
[Bearer](../README.md#Bearer)
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: Not defined
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
# **get_v2_session_token**
|
61
|
+
> Token get_v2_session_token(token)
|
62
|
+
|
63
|
+
Get session token
|
64
|
+
|
65
|
+
### Example
|
66
|
+
```ruby
|
67
|
+
# load the gem
|
68
|
+
require 'sezzle_client'
|
69
|
+
# setup authorization
|
70
|
+
SezzleClient.configure do |config|
|
71
|
+
# Configure API key authorization: Bearer
|
72
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
73
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
74
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
75
|
+
end
|
76
|
+
|
77
|
+
api_instance = SezzleClient::TokenApi.new
|
78
|
+
token = 'token_example' # String | Merchant initiated token
|
79
|
+
|
80
|
+
|
81
|
+
begin
|
82
|
+
#Get session token
|
83
|
+
result = api_instance.get_v2_session_token(token)
|
84
|
+
p result
|
85
|
+
rescue SezzleClient::ApiError => e
|
86
|
+
puts "Exception when calling TokenApi->get_v2_session_token: #{e}"
|
87
|
+
end
|
88
|
+
```
|
89
|
+
|
90
|
+
### Parameters
|
91
|
+
|
92
|
+
Name | Type | Description | Notes
|
93
|
+
------------- | ------------- | ------------- | -------------
|
94
|
+
**token** | **String**| Merchant initiated token |
|
95
|
+
|
96
|
+
### Return type
|
97
|
+
|
98
|
+
[**Token**](Token.md)
|
99
|
+
|
100
|
+
### Authorization
|
101
|
+
|
102
|
+
[Bearer](../README.md#Bearer)
|
103
|
+
|
104
|
+
### HTTP request headers
|
105
|
+
|
106
|
+
- **Content-Type**: Not defined
|
107
|
+
- **Accept**: application/json
|
108
|
+
|
109
|
+
|
110
|
+
|