ultracart_api 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/docs/AutoOrderApi.md +12 -12
- data/docs/CheckoutApi.md +1 -1
- data/docs/CouponTieredAmountOffItem.md +1 -1
- data/docs/CouponTieredPercentOffItems.md +1 -1
- data/docs/CustomerApi.md +55 -0
- data/docs/EmailPlanAdditional.md +1 -0
- data/docs/OrderApi.md +3 -3
- data/lib/ultracart_api/api/auto_order_api.rb +8 -8
- data/lib/ultracart_api/api/checkout_api.rb +2 -2
- data/lib/ultracart_api/api/customer_api.rb +58 -0
- data/lib/ultracart_api/api/order_api.rb +2 -2
- data/lib/ultracart_api/models/coupon_tiered_amount_off_item.rb +1 -1
- data/lib/ultracart_api/models/coupon_tiered_percent_off_items.rb +1 -1
- data/lib/ultracart_api/models/email_plan_additional.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da904755712348aef88524f42be74fff7f1aebdb44f77f22363b69d437e26ef9
|
4
|
+
data.tar.gz: 5c06284a9d8a449d7e05d78183991c7b1f74c2c5f171e3160896b5a78b85df2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e497b1114baa530a20a297d5e50eb66abb9ef27221e281adc87ab1d0afb6cd7a5fdfd6fb0646747cabb53053bd5eeda9d9e287bbf13abcc9b6083aabf5788b0
|
7
|
+
data.tar.gz: 8262dca0a773add49b58c84fc091c3036b0997e77a34b5b0d687c634bab4894da37618bd743b57e3e9ea3604e5716b4ac7e36c452c6605a6d8d0329427e85205
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.1.
|
10
|
+
- Package version: 3.1.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.1.
|
27
|
+
gem install ./ultracart_api-3.1.1.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.1.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.1.1.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.1.
|
35
|
+
gem 'ultracart_api', '~> 3.1.1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -88,12 +88,12 @@ Class | Method | HTTP request | Description
|
|
88
88
|
------------ | ------------- | ------------- | -------------
|
89
89
|
*UltracartClient::AffiliateApi* | [**get_clicks_by_query**](docs/AffiliateApi.md#get_clicks_by_query) | **POST** /affiliate/clicks/query | Retrieve clicks
|
90
90
|
*UltracartClient::AffiliateApi* | [**get_ledgers_by_query**](docs/AffiliateApi.md#get_ledgers_by_query) | **POST** /affiliate/ledgers/query | Retrieve ledger entries
|
91
|
-
*UltracartClient::AutoOrderApi* | [**get_auto_order**](docs/AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order
|
92
|
-
*UltracartClient::AutoOrderApi* | [**get_auto_order_by_code**](docs/AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order
|
93
|
-
*UltracartClient::AutoOrderApi* | [**get_auto_order_by_reference_order_id**](docs/AutoOrderApi.md#get_auto_order_by_reference_order_id) | **GET** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Retrieve an auto order
|
91
|
+
*UltracartClient::AutoOrderApi* | [**get_auto_order**](docs/AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order by oid
|
92
|
+
*UltracartClient::AutoOrderApi* | [**get_auto_order_by_code**](docs/AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order by code
|
93
|
+
*UltracartClient::AutoOrderApi* | [**get_auto_order_by_reference_order_id**](docs/AutoOrderApi.md#get_auto_order_by_reference_order_id) | **GET** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Retrieve an auto order by order id
|
94
94
|
*UltracartClient::AutoOrderApi* | [**get_auto_orders**](docs/AutoOrderApi.md#get_auto_orders) | **GET** /auto_order/auto_orders | Retrieve auto orders
|
95
95
|
*UltracartClient::AutoOrderApi* | [**get_auto_orders_batch**](docs/AutoOrderApi.md#get_auto_orders_batch) | **POST** /auto_order/auto_orders/batch | Retrieve auto order batch
|
96
|
-
*UltracartClient::AutoOrderApi* | [**get_auto_orders_by_query**](docs/AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders
|
96
|
+
*UltracartClient::AutoOrderApi* | [**get_auto_orders_by_query**](docs/AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders by query
|
97
97
|
*UltracartClient::AutoOrderApi* | [**update_auto_order**](docs/AutoOrderApi.md#update_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid} | Update an auto order
|
98
98
|
*UltracartClient::AutoOrderApi* | [**update_auto_orders_batch**](docs/AutoOrderApi.md#update_auto_orders_batch) | **PUT** /auto_order/auto_orders/batch | Update multiple auto orders
|
99
99
|
*UltracartClient::ChargebackApi* | [**delete_chargeback**](docs/ChargebackApi.md#delete_chargeback) | **DELETE** /chargeback/chargebacks/{chargeback_dispute_oid} | Delete a chargeback
|
@@ -141,6 +141,7 @@ Class | Method | HTTP request | Description
|
|
141
141
|
*UltracartClient::CouponApi* | [**upload_coupon_codes**](docs/CouponApi.md#upload_coupon_codes) | **POST** /coupon/coupons/{coupon_oid}/upload_codes | Upload one-time codes for a coupon
|
142
142
|
*UltracartClient::CustomerApi* | [**delete_customer**](docs/CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer
|
143
143
|
*UltracartClient::CustomerApi* | [**get_customer**](docs/CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer
|
144
|
+
*UltracartClient::CustomerApi* | [**get_customer_by_email**](docs/CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email
|
144
145
|
*UltracartClient::CustomerApi* | [**get_customers**](docs/CustomerApi.md#get_customers) | **GET** /customer/customers | Retrieve customers
|
145
146
|
*UltracartClient::CustomerApi* | [**get_customers_by_query**](docs/CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query
|
146
147
|
*UltracartClient::CustomerApi* | [**get_customers_for_data_tables**](docs/CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
|
@@ -176,7 +177,7 @@ Class | Method | HTTP request | Description
|
|
176
177
|
*UltracartClient::OrderApi* | [**get_order_by_token**](docs/OrderApi.md#get_order_by_token) | **POST** /order/orders/token | Retrieve an order using a token
|
177
178
|
*UltracartClient::OrderApi* | [**get_orders**](docs/OrderApi.md#get_orders) | **GET** /order/orders | Retrieve orders
|
178
179
|
*UltracartClient::OrderApi* | [**get_orders_batch**](docs/OrderApi.md#get_orders_batch) | **POST** /order/orders/batch | Retrieve order batch
|
179
|
-
*UltracartClient::OrderApi* | [**get_orders_by_query**](docs/OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders
|
180
|
+
*UltracartClient::OrderApi* | [**get_orders_by_query**](docs/OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders by query
|
180
181
|
*UltracartClient::OrderApi* | [**insert_order**](docs/OrderApi.md#insert_order) | **POST** /order/orders | Insert an order
|
181
182
|
*UltracartClient::OrderApi* | [**process_payment**](docs/OrderApi.md#process_payment) | **POST** /order/orders/{order_id}/process_payment | Process payment
|
182
183
|
*UltracartClient::OrderApi* | [**refund_order**](docs/OrderApi.md#refund_order) | **PUT** /order/orders/{order_id}/refund | Refund an order
|
data/docs/AutoOrderApi.md
CHANGED
@@ -4,12 +4,12 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**get_auto_order**](AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order
|
8
|
-
[**get_auto_order_by_code**](AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order
|
9
|
-
[**get_auto_order_by_reference_order_id**](AutoOrderApi.md#get_auto_order_by_reference_order_id) | **GET** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Retrieve an auto order
|
7
|
+
[**get_auto_order**](AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order by oid
|
8
|
+
[**get_auto_order_by_code**](AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order by code
|
9
|
+
[**get_auto_order_by_reference_order_id**](AutoOrderApi.md#get_auto_order_by_reference_order_id) | **GET** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Retrieve an auto order by order id
|
10
10
|
[**get_auto_orders**](AutoOrderApi.md#get_auto_orders) | **GET** /auto_order/auto_orders | Retrieve auto orders
|
11
11
|
[**get_auto_orders_batch**](AutoOrderApi.md#get_auto_orders_batch) | **POST** /auto_order/auto_orders/batch | Retrieve auto order batch
|
12
|
-
[**get_auto_orders_by_query**](AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders
|
12
|
+
[**get_auto_orders_by_query**](AutoOrderApi.md#get_auto_orders_by_query) | **POST** /auto_order/auto_orders/query | Retrieve auto orders by query
|
13
13
|
[**update_auto_order**](AutoOrderApi.md#update_auto_order) | **PUT** /auto_order/auto_orders/{auto_order_oid} | Update an auto order
|
14
14
|
[**update_auto_orders_batch**](AutoOrderApi.md#update_auto_orders_batch) | **PUT** /auto_order/auto_orders/batch | Update multiple auto orders
|
15
15
|
|
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
# **get_auto_order**
|
18
18
|
> AutoOrderResponse get_auto_order(auto_order_oid, opts)
|
19
19
|
|
20
|
-
Retrieve an auto order
|
20
|
+
Retrieve an auto order by oid
|
21
21
|
|
22
22
|
Retrieves a single auto order using the specified auto order oid.
|
23
23
|
|
@@ -38,7 +38,7 @@ opts = {
|
|
38
38
|
}
|
39
39
|
|
40
40
|
begin
|
41
|
-
#Retrieve an auto order
|
41
|
+
#Retrieve an auto order by oid
|
42
42
|
result = api_instance.get_auto_order(auto_order_oid, opts)
|
43
43
|
p result
|
44
44
|
rescue UltracartClient::ApiError => e
|
@@ -71,7 +71,7 @@ Name | Type | Description | Notes
|
|
71
71
|
# **get_auto_order_by_code**
|
72
72
|
> AutoOrderResponse get_auto_order_by_code(auto_order_code, opts)
|
73
73
|
|
74
|
-
Retrieve an auto order
|
74
|
+
Retrieve an auto order by code
|
75
75
|
|
76
76
|
Retrieves a single auto order using the specified reference (original) order id.
|
77
77
|
|
@@ -92,7 +92,7 @@ opts = {
|
|
92
92
|
}
|
93
93
|
|
94
94
|
begin
|
95
|
-
#Retrieve an auto order
|
95
|
+
#Retrieve an auto order by code
|
96
96
|
result = api_instance.get_auto_order_by_code(auto_order_code, opts)
|
97
97
|
p result
|
98
98
|
rescue UltracartClient::ApiError => e
|
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
|
|
125
125
|
# **get_auto_order_by_reference_order_id**
|
126
126
|
> AutoOrderResponse get_auto_order_by_reference_order_id(reference_order_id, opts)
|
127
127
|
|
128
|
-
Retrieve an auto order
|
128
|
+
Retrieve an auto order by order id
|
129
129
|
|
130
130
|
Retrieves a single auto order using the specified reference (original) order id.
|
131
131
|
|
@@ -146,7 +146,7 @@ opts = {
|
|
146
146
|
}
|
147
147
|
|
148
148
|
begin
|
149
|
-
#Retrieve an auto order
|
149
|
+
#Retrieve an auto order by order id
|
150
150
|
result = api_instance.get_auto_order_by_reference_order_id(reference_order_id, opts)
|
151
151
|
p result
|
152
152
|
rescue UltracartClient::ApiError => e
|
@@ -328,7 +328,7 @@ Name | Type | Description | Notes
|
|
328
328
|
# **get_auto_orders_by_query**
|
329
329
|
> AutoOrdersResponse get_auto_orders_by_query(auto_order_query, opts)
|
330
330
|
|
331
|
-
Retrieve auto orders
|
331
|
+
Retrieve auto orders by query
|
332
332
|
|
333
333
|
Retrieves a group of auto orders from the account based on a query object. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
334
334
|
|
@@ -352,7 +352,7 @@ opts = {
|
|
352
352
|
}
|
353
353
|
|
354
354
|
begin
|
355
|
-
#Retrieve auto orders
|
355
|
+
#Retrieve auto orders by query
|
356
356
|
result = api_instance.get_auto_orders_by_query(auto_order_query, opts)
|
357
357
|
p result
|
358
358
|
rescue UltracartClient::ApiError => e
|
data/docs/CheckoutApi.md
CHANGED
@@ -868,7 +868,7 @@ Name | Type | Description | Notes
|
|
868
868
|
|
869
869
|
Setup Browser Application
|
870
870
|
|
871
|
-
Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth
|
871
|
+
Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth application, such as the Wordpress plugin, to setup the proper browser based authentication for the REST checkout API to use.
|
872
872
|
|
873
873
|
### Example
|
874
874
|
```ruby
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**item** | **String** | The item being discounted by this coupon. | [optional]
|
7
|
-
**limit** | **Float** | The maximum
|
7
|
+
**limit** | **Float** | The maximum number of discounted items. | [optional]
|
8
8
|
**tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional]
|
9
9
|
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**items** | **Array<String>** | A list of items of which at least one must be purchased for coupon to be valid. | [optional]
|
7
|
-
**limit** | **Float** | The maximum
|
7
|
+
**limit** | **Float** | The (optional) maximum quantity of discounted items. | [optional]
|
8
8
|
**tiers** | [**Array<CouponTierQuantityPercent>**](CouponTierQuantityPercent.md) | A list of discount tiers. | [optional]
|
9
9
|
|
10
10
|
|
data/docs/CustomerApi.md
CHANGED
@@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete_customer**](CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer
|
8
8
|
[**get_customer**](CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer
|
9
|
+
[**get_customer_by_email**](CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email
|
9
10
|
[**get_customers**](CustomerApi.md#get_customers) | **GET** /customer/customers | Retrieve customers
|
10
11
|
[**get_customers_by_query**](CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query
|
11
12
|
[**get_customers_for_data_tables**](CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
|
@@ -120,6 +121,60 @@ Name | Type | Description | Notes
|
|
120
121
|
|
121
122
|
|
122
123
|
|
124
|
+
# **get_customer_by_email**
|
125
|
+
> CustomerResponse get_customer_by_email(email, opts)
|
126
|
+
|
127
|
+
Retrieve a customer by Email
|
128
|
+
|
129
|
+
Retrieves a single customer using the specified customer email address.
|
130
|
+
|
131
|
+
### Example
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'ultracart_api'
|
135
|
+
|
136
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
137
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
138
|
+
api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
|
139
|
+
|
140
|
+
|
141
|
+
email = 'email_example' # String | The email address of the customer to retrieve.
|
142
|
+
|
143
|
+
opts = {
|
144
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
145
|
+
}
|
146
|
+
|
147
|
+
begin
|
148
|
+
#Retrieve a customer by Email
|
149
|
+
result = api_instance.get_customer_by_email(email, opts)
|
150
|
+
p result
|
151
|
+
rescue UltracartClient::ApiError => e
|
152
|
+
puts "Exception when calling CustomerApi->get_customer_by_email: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
Name | Type | Description | Notes
|
159
|
+
------------- | ------------- | ------------- | -------------
|
160
|
+
**email** | **String**| The email address of the customer to retrieve. |
|
161
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
[**CustomerResponse**](CustomerResponse.md)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
123
178
|
# **get_customers**
|
124
179
|
> CustomersResponse get_customers(opts)
|
125
180
|
|
data/docs/EmailPlanAdditional.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**active** | **BOOLEAN** | | [optional]
|
6
7
|
**can_downgrade** | **BOOLEAN** | | [optional]
|
7
8
|
**can_upgrade** | **BOOLEAN** | | [optional]
|
8
9
|
**cost** | **Float** | | [optional]
|
data/docs/OrderApi.md
CHANGED
@@ -15,7 +15,7 @@ Method | HTTP request | Description
|
|
15
15
|
[**get_order_by_token**](OrderApi.md#get_order_by_token) | **POST** /order/orders/token | Retrieve an order using a token
|
16
16
|
[**get_orders**](OrderApi.md#get_orders) | **GET** /order/orders | Retrieve orders
|
17
17
|
[**get_orders_batch**](OrderApi.md#get_orders_batch) | **POST** /order/orders/batch | Retrieve order batch
|
18
|
-
[**get_orders_by_query**](OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders
|
18
|
+
[**get_orders_by_query**](OrderApi.md#get_orders_by_query) | **POST** /order/orders/query | Retrieve orders by query
|
19
19
|
[**insert_order**](OrderApi.md#insert_order) | **POST** /order/orders | Insert an order
|
20
20
|
[**process_payment**](OrderApi.md#process_payment) | **POST** /order/orders/{order_id}/process_payment | Process payment
|
21
21
|
[**refund_order**](OrderApi.md#refund_order) | **PUT** /order/orders/{order_id}/refund | Refund an order
|
@@ -661,7 +661,7 @@ Name | Type | Description | Notes
|
|
661
661
|
# **get_orders_by_query**
|
662
662
|
> OrdersResponse get_orders_by_query(order_query, opts)
|
663
663
|
|
664
|
-
Retrieve orders
|
664
|
+
Retrieve orders by query
|
665
665
|
|
666
666
|
Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
667
667
|
|
@@ -685,7 +685,7 @@ opts = {
|
|
685
685
|
}
|
686
686
|
|
687
687
|
begin
|
688
|
-
#Retrieve orders
|
688
|
+
#Retrieve orders by query
|
689
689
|
result = api_instance.get_orders_by_query(order_query, opts)
|
690
690
|
p result
|
691
691
|
rescue UltracartClient::ApiError => e
|
@@ -32,7 +32,7 @@ module UltracartClient
|
|
32
32
|
UltracartClient::AutoOrderApi.new(api_client)
|
33
33
|
end
|
34
34
|
|
35
|
-
# Retrieve an auto order
|
35
|
+
# Retrieve an auto order by oid
|
36
36
|
# Retrieves a single auto order using the specified auto order oid.
|
37
37
|
# @param auto_order_oid The auto order oid to retrieve.
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -43,7 +43,7 @@ module UltracartClient
|
|
43
43
|
data
|
44
44
|
end
|
45
45
|
|
46
|
-
# Retrieve an auto order
|
46
|
+
# Retrieve an auto order by oid
|
47
47
|
# Retrieves a single auto order using the specified auto order oid.
|
48
48
|
# @param auto_order_oid The auto order oid to retrieve.
|
49
49
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module UltracartClient
|
|
90
90
|
end
|
91
91
|
return data, status_code, headers
|
92
92
|
end
|
93
|
-
# Retrieve an auto order
|
93
|
+
# Retrieve an auto order by code
|
94
94
|
# Retrieves a single auto order using the specified reference (original) order id.
|
95
95
|
# @param auto_order_code The auto order oid to retrieve.
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -101,7 +101,7 @@ module UltracartClient
|
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
|
-
# Retrieve an auto order
|
104
|
+
# Retrieve an auto order by code
|
105
105
|
# Retrieves a single auto order using the specified reference (original) order id.
|
106
106
|
# @param auto_order_code The auto order oid to retrieve.
|
107
107
|
# @param [Hash] opts the optional parameters
|
@@ -148,7 +148,7 @@ module UltracartClient
|
|
148
148
|
end
|
149
149
|
return data, status_code, headers
|
150
150
|
end
|
151
|
-
# Retrieve an auto order
|
151
|
+
# Retrieve an auto order by order id
|
152
152
|
# Retrieves a single auto order using the specified reference (original) order id.
|
153
153
|
# @param reference_order_id The auto order oid to retrieve.
|
154
154
|
# @param [Hash] opts the optional parameters
|
@@ -159,7 +159,7 @@ module UltracartClient
|
|
159
159
|
data
|
160
160
|
end
|
161
161
|
|
162
|
-
# Retrieve an auto order
|
162
|
+
# Retrieve an auto order by order id
|
163
163
|
# Retrieves a single auto order using the specified reference (original) order id.
|
164
164
|
# @param reference_order_id The auto order oid to retrieve.
|
165
165
|
# @param [Hash] opts the optional parameters
|
@@ -382,7 +382,7 @@ module UltracartClient
|
|
382
382
|
end
|
383
383
|
return data, status_code, headers
|
384
384
|
end
|
385
|
-
# Retrieve auto orders
|
385
|
+
# Retrieve auto orders by query
|
386
386
|
# Retrieves a group of auto orders from the account based on a query object. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
387
387
|
# @param auto_order_query Auto order query
|
388
388
|
# @param [Hash] opts the optional parameters
|
@@ -396,7 +396,7 @@ module UltracartClient
|
|
396
396
|
data
|
397
397
|
end
|
398
398
|
|
399
|
-
# Retrieve auto orders
|
399
|
+
# Retrieve auto orders by query
|
400
400
|
# Retrieves a group of auto orders from the account based on a query object. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
401
401
|
# @param auto_order_query Auto order query
|
402
402
|
# @param [Hash] opts the optional parameters
|
@@ -937,7 +937,7 @@ module UltracartClient
|
|
937
937
|
return data, status_code, headers
|
938
938
|
end
|
939
939
|
# Setup Browser Application
|
940
|
-
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth
|
940
|
+
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth application, such as the Wordpress plugin, to setup the proper browser based authentication for the REST checkout API to use.
|
941
941
|
# @param browser_key_request Setup browser key request
|
942
942
|
# @param [Hash] opts the optional parameters
|
943
943
|
# @return [CheckoutSetupBrowserKeyResponse]
|
@@ -947,7 +947,7 @@ module UltracartClient
|
|
947
947
|
end
|
948
948
|
|
949
949
|
# Setup Browser Application
|
950
|
-
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth
|
950
|
+
# Setup a browser key authenticated application with checkout permissions. This REST call must be made with an authentication scheme that is not browser key. The new application will be linked to the application that makes this call. If this application is disabled / deleted, then so will the application setup by this call. The purpose of this call is to allow an OAuth application, such as the Wordpress plugin, to setup the proper browser based authentication for the REST checkout API to use.
|
951
951
|
# @param browser_key_request Setup browser key request
|
952
952
|
# @param [Hash] opts the optional parameters
|
953
953
|
# @return [Array<(CheckoutSetupBrowserKeyResponse, Fixnum, Hash)>] CheckoutSetupBrowserKeyResponse data, response status code and response headers
|
@@ -145,6 +145,64 @@ module UltracartClient
|
|
145
145
|
end
|
146
146
|
return data, status_code, headers
|
147
147
|
end
|
148
|
+
# Retrieve a customer by Email
|
149
|
+
# Retrieves a single customer using the specified customer email address.
|
150
|
+
# @param email The email address of the customer to retrieve.
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
153
|
+
# @return [CustomerResponse]
|
154
|
+
def get_customer_by_email(email, opts = {})
|
155
|
+
data, _status_code, _headers = get_customer_by_email_with_http_info(email, opts)
|
156
|
+
data
|
157
|
+
end
|
158
|
+
|
159
|
+
# Retrieve a customer by Email
|
160
|
+
# Retrieves a single customer using the specified customer email address.
|
161
|
+
# @param email The email address of the customer to retrieve.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
164
|
+
# @return [Array<(CustomerResponse, Fixnum, Hash)>] CustomerResponse data, response status code and response headers
|
165
|
+
def get_customer_by_email_with_http_info(email, opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_by_email ...'
|
168
|
+
end
|
169
|
+
# verify the required parameter 'email' is set
|
170
|
+
if @api_client.config.client_side_validation && email.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling CustomerApi.get_customer_by_email"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '/customer/customers/by_email/{email}'.sub('{' + 'email' + '}', email.to_s)
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = {}
|
178
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
179
|
+
|
180
|
+
# header parameters
|
181
|
+
header_params = {}
|
182
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
183
|
+
# HTTP header 'Accept' (if needed)
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
187
|
+
|
188
|
+
# form parameters
|
189
|
+
form_params = {}
|
190
|
+
|
191
|
+
# http body (model)
|
192
|
+
post_body = nil
|
193
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
194
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
195
|
+
:header_params => header_params,
|
196
|
+
:query_params => query_params,
|
197
|
+
:form_params => form_params,
|
198
|
+
:body => post_body,
|
199
|
+
:auth_names => auth_names,
|
200
|
+
:return_type => 'CustomerResponse')
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_customer_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
148
206
|
# Retrieve customers
|
149
207
|
# Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
150
208
|
# @param [Hash] opts the optional parameters
|
@@ -747,7 +747,7 @@ module UltracartClient
|
|
747
747
|
end
|
748
748
|
return data, status_code, headers
|
749
749
|
end
|
750
|
-
# Retrieve orders
|
750
|
+
# Retrieve orders by query
|
751
751
|
# Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
752
752
|
# @param order_query Order query
|
753
753
|
# @param [Hash] opts the optional parameters
|
@@ -761,7 +761,7 @@ module UltracartClient
|
|
761
761
|
data
|
762
762
|
end
|
763
763
|
|
764
|
-
# Retrieve orders
|
764
|
+
# Retrieve orders by query
|
765
765
|
# Retrieves a group of orders from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
766
766
|
# @param order_query Order query
|
767
767
|
# @param [Hash] opts the optional parameters
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
# A list of items of which at least one must be purchased for coupon to be valid.
|
18
18
|
attr_accessor :items
|
19
19
|
|
20
|
-
# The maximum
|
20
|
+
# The (optional) maximum quantity of discounted items.
|
21
21
|
attr_accessor :limit
|
22
22
|
|
23
23
|
# A list of discount tiers.
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class EmailPlanAdditional
|
17
|
+
attr_accessor :active
|
18
|
+
|
17
19
|
attr_accessor :can_downgrade
|
18
20
|
|
19
21
|
attr_accessor :can_upgrade
|
@@ -33,6 +35,7 @@ module UltracartClient
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
36
|
def self.attribute_map
|
35
37
|
{
|
38
|
+
:'active' => :'active',
|
36
39
|
:'can_downgrade' => :'can_downgrade',
|
37
40
|
:'can_upgrade' => :'can_upgrade',
|
38
41
|
:'cost' => :'cost',
|
@@ -47,6 +50,7 @@ module UltracartClient
|
|
47
50
|
# Attribute type mapping.
|
48
51
|
def self.swagger_types
|
49
52
|
{
|
53
|
+
:'active' => :'BOOLEAN',
|
50
54
|
:'can_downgrade' => :'BOOLEAN',
|
51
55
|
:'can_upgrade' => :'BOOLEAN',
|
52
56
|
:'cost' => :'Float',
|
@@ -66,6 +70,10 @@ module UltracartClient
|
|
66
70
|
# convert string to symbol for hash key
|
67
71
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
72
|
|
73
|
+
if attributes.has_key?(:'active')
|
74
|
+
self.active = attributes[:'active']
|
75
|
+
end
|
76
|
+
|
69
77
|
if attributes.has_key?(:'can_downgrade')
|
70
78
|
self.can_downgrade = attributes[:'can_downgrade']
|
71
79
|
end
|
@@ -117,6 +125,7 @@ module UltracartClient
|
|
117
125
|
def ==(o)
|
118
126
|
return true if self.equal?(o)
|
119
127
|
self.class == o.class &&
|
128
|
+
active == o.active &&
|
120
129
|
can_downgrade == o.can_downgrade &&
|
121
130
|
can_upgrade == o.can_upgrade &&
|
122
131
|
cost == o.cost &&
|
@@ -136,7 +145,7 @@ module UltracartClient
|
|
136
145
|
# Calculates hash code according to all attributes.
|
137
146
|
# @return [Fixnum] Hash code
|
138
147
|
def hash
|
139
|
-
[can_downgrade, can_upgrade, cost, cost_change, cost_change_formatted, cost_formatted, customers, emails].hash
|
148
|
+
[active, can_downgrade, can_upgrade, cost, cost_change, cost_change_formatted, cost_formatted, customers, emails].hash
|
140
149
|
end
|
141
150
|
|
142
151
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|