ultracart_api 3.10.221 → 3.10.222
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 +4 -4
- data/README.md +8 -4
- data/docs/ChannelPartnerApi.md +182 -0
- data/docs/CustomerApi.md +2 -0
- data/docs/CustomerQuery.md +1 -0
- data/lib/ultracart_api/api/channel_partner_api.rb +201 -0
- data/lib/ultracart_api/api/customer_api.rb +3 -0
- data/lib/ultracart_api/models/customer_query.rb +13 -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: 92ec2b8db03e8c43a775434125047cf0f2320a366c5c48ab6bcb43f4cbabf7ab
|
4
|
+
data.tar.gz: a2d56acc2d2ab230891c0fe5d761e1b4b6a916919265ce28b34f53a6669d9d2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a67bacab4ad13720cfb1d58c8b90a78575d20c73b198024371214e8f8800488e308bde6c870f3b8802a4bb799e665ec85d8b6536199e5e7b5b28a7f081ea4c07
|
7
|
+
data.tar.gz: 60430a9e793ad4a8202e96fcedb88ade229c0a0765d60ab449507ca640957f093a3a99eb5984a1191e3d6c71738db4cc7a45de153660ce5835a8c99db9af1707
|
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.10.
|
10
|
+
- Package version: 3.10.222
|
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.10.
|
27
|
+
gem install ./ultracart_api-3.10.222.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.222.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.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.222'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -103,11 +103,14 @@ Class | Method | HTTP request | Description
|
|
103
103
|
*UltracartClient::ChannelPartnerApi* | [**delete_channel_partner_ship_to_preference**](docs/ChannelPartnerApi.md#delete_channel_partner_ship_to_preference) | **DELETE** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Delete a ship to preference record for the channel partner.
|
104
104
|
*UltracartClient::ChannelPartnerApi* | [**estimate_shipping_for_channel_partner_order**](docs/ChannelPartnerApi.md#estimate_shipping_for_channel_partner_order) | **POST** /channel_partner/estimate_shipping | Estimate shipping for channel partner order
|
105
105
|
*UltracartClient::ChannelPartnerApi* | [**estimate_tax_for_channel_partner_order**](docs/ChannelPartnerApi.md#estimate_tax_for_channel_partner_order) | **POST** /channel_partner/estimate_tax | Estimate tax for channel partner order
|
106
|
+
*UltracartClient::ChannelPartnerApi* | [**get_channel_partner_order**](docs/ChannelPartnerApi.md#get_channel_partner_order) | **GET** /channel_partner/orders/{order_id} | Retrieve a channel partner order
|
107
|
+
*UltracartClient::ChannelPartnerApi* | [**get_channel_partner_order_by_channel_partner_order_id**](docs/ChannelPartnerApi.md#get_channel_partner_order_by_channel_partner_order_id) | **GET** /channel_partner/orders/by_channel_partner_order_id/{order_id} | Retrieve a channel partner order by the channel partner order id
|
106
108
|
*UltracartClient::ChannelPartnerApi* | [**get_channel_partner_ship_to_preference**](docs/ChannelPartnerApi.md#get_channel_partner_ship_to_preference) | **GET** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Retrieve the ship to preference associated with the channel partner and the specific id.
|
107
109
|
*UltracartClient::ChannelPartnerApi* | [**get_channel_partner_ship_to_preferences**](docs/ChannelPartnerApi.md#get_channel_partner_ship_to_preferences) | **GET** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences | Retrieve the ship to preferences associated with the channel partner.
|
108
110
|
*UltracartClient::ChannelPartnerApi* | [**get_channel_partners**](docs/ChannelPartnerApi.md#get_channel_partners) | **GET** /channel_partner/channel_partners | Retrieve the channel partners configured on the account.
|
109
111
|
*UltracartClient::ChannelPartnerApi* | [**import_channel_partner_order**](docs/ChannelPartnerApi.md#import_channel_partner_order) | **POST** /channel_partner/import | Insert channel partner order
|
110
112
|
*UltracartClient::ChannelPartnerApi* | [**insert_channel_partner_ship_to_preference**](docs/ChannelPartnerApi.md#insert_channel_partner_ship_to_preference) | **POST** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences | Insert a ship to preference record for the channel partner.
|
113
|
+
*UltracartClient::ChannelPartnerApi* | [**refund_channel_partner_order**](docs/ChannelPartnerApi.md#refund_channel_partner_order) | **PUT** /channel_partner/orders/{order_id}/refund | Refund a channel partner order
|
111
114
|
*UltracartClient::ChannelPartnerApi* | [**update_channel_partner_ship_to_preference**](docs/ChannelPartnerApi.md#update_channel_partner_ship_to_preference) | **PUT** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Update a ship to preference record for the channel partner.
|
112
115
|
*UltracartClient::ChargebackApi* | [**delete_chargeback**](docs/ChargebackApi.md#delete_chargeback) | **DELETE** /chargeback/chargebacks/{chargeback_dispute_oid} | Delete a chargeback
|
113
116
|
*UltracartClient::ChargebackApi* | [**get_chargeback_dispute**](docs/ChargebackApi.md#get_chargeback_dispute) | **GET** /chargeback/chargebacks/{chargeback_dispute_oid} | Retrieve a chargeback
|
@@ -1512,6 +1515,7 @@ Not every change is committed to every SDK.
|
|
1512
1515
|
|
1513
1516
|
| Version | Date | Comments |
|
1514
1517
|
| --: | :-: | --- |
|
1518
|
+
| 3.10.222 | 01/09/2025 | added emails parameter to customer queries, refundOrder added to Channel partner |
|
1515
1519
|
| 3.10.221 | 12/13/2024 | added user and group ids to conversation agent auth object |
|
1516
1520
|
| 3.10.220 | 11/11/2024 | added seo properties to item.content object |
|
1517
1521
|
| 3.10.219 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
data/docs/ChannelPartnerApi.md
CHANGED
@@ -9,11 +9,14 @@ Method | HTTP request | Description
|
|
9
9
|
[**delete_channel_partner_ship_to_preference**](ChannelPartnerApi.md#delete_channel_partner_ship_to_preference) | **DELETE** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Delete a ship to preference record for the channel partner.
|
10
10
|
[**estimate_shipping_for_channel_partner_order**](ChannelPartnerApi.md#estimate_shipping_for_channel_partner_order) | **POST** /channel_partner/estimate_shipping | Estimate shipping for channel partner order
|
11
11
|
[**estimate_tax_for_channel_partner_order**](ChannelPartnerApi.md#estimate_tax_for_channel_partner_order) | **POST** /channel_partner/estimate_tax | Estimate tax for channel partner order
|
12
|
+
[**get_channel_partner_order**](ChannelPartnerApi.md#get_channel_partner_order) | **GET** /channel_partner/orders/{order_id} | Retrieve a channel partner order
|
13
|
+
[**get_channel_partner_order_by_channel_partner_order_id**](ChannelPartnerApi.md#get_channel_partner_order_by_channel_partner_order_id) | **GET** /channel_partner/orders/by_channel_partner_order_id/{order_id} | Retrieve a channel partner order by the channel partner order id
|
12
14
|
[**get_channel_partner_ship_to_preference**](ChannelPartnerApi.md#get_channel_partner_ship_to_preference) | **GET** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Retrieve the ship to preference associated with the channel partner and the specific id.
|
13
15
|
[**get_channel_partner_ship_to_preferences**](ChannelPartnerApi.md#get_channel_partner_ship_to_preferences) | **GET** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences | Retrieve the ship to preferences associated with the channel partner.
|
14
16
|
[**get_channel_partners**](ChannelPartnerApi.md#get_channel_partners) | **GET** /channel_partner/channel_partners | Retrieve the channel partners configured on the account.
|
15
17
|
[**import_channel_partner_order**](ChannelPartnerApi.md#import_channel_partner_order) | **POST** /channel_partner/import | Insert channel partner order
|
16
18
|
[**insert_channel_partner_ship_to_preference**](ChannelPartnerApi.md#insert_channel_partner_ship_to_preference) | **POST** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences | Insert a ship to preference record for the channel partner.
|
19
|
+
[**refund_channel_partner_order**](ChannelPartnerApi.md#refund_channel_partner_order) | **PUT** /channel_partner/orders/{order_id}/refund | Refund a channel partner order
|
17
20
|
[**update_channel_partner_ship_to_preference**](ChannelPartnerApi.md#update_channel_partner_ship_to_preference) | **PUT** /channel_partner/channel_partners/{channel_partner_oid}/ship_to_preferences/{channel_partner_ship_to_preference_oid} | Update a ship to preference record for the channel partner.
|
18
21
|
|
19
22
|
|
@@ -269,6 +272,114 @@ Name | Type | Description | Notes
|
|
269
272
|
|
270
273
|
|
271
274
|
|
275
|
+
# **get_channel_partner_order**
|
276
|
+
> OrderResponse get_channel_partner_order(order_id, opts)
|
277
|
+
|
278
|
+
Retrieve a channel partner order
|
279
|
+
|
280
|
+
Retrieves a single order using the specified order id. Only orders belonging to this channel partner may be retrieved.
|
281
|
+
|
282
|
+
### Example
|
283
|
+
```ruby
|
284
|
+
# load the gem
|
285
|
+
require 'ultracart_api'
|
286
|
+
|
287
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
288
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
289
|
+
api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
|
290
|
+
|
291
|
+
|
292
|
+
order_id = 'order_id_example' # String | The order id to retrieve.
|
293
|
+
|
294
|
+
opts = {
|
295
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
296
|
+
}
|
297
|
+
|
298
|
+
begin
|
299
|
+
#Retrieve a channel partner order
|
300
|
+
result = api_instance.get_channel_partner_order(order_id, opts)
|
301
|
+
p result
|
302
|
+
rescue UltracartClient::ApiError => e
|
303
|
+
puts "Exception when calling ChannelPartnerApi->get_channel_partner_order: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
### Parameters
|
308
|
+
|
309
|
+
Name | Type | Description | Notes
|
310
|
+
------------- | ------------- | ------------- | -------------
|
311
|
+
**order_id** | **String**| The order id to retrieve. |
|
312
|
+
**_expand** | **String**| The object expansion to perform on the result. See OrderApi.getOrder documentation for examples | [optional]
|
313
|
+
|
314
|
+
### Return type
|
315
|
+
|
316
|
+
[**OrderResponse**](OrderResponse.md)
|
317
|
+
|
318
|
+
### Authorization
|
319
|
+
|
320
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
321
|
+
|
322
|
+
### HTTP request headers
|
323
|
+
|
324
|
+
- **Content-Type**: application/json
|
325
|
+
- **Accept**: application/json
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
# **get_channel_partner_order_by_channel_partner_order_id**
|
330
|
+
> OrderResponse get_channel_partner_order_by_channel_partner_order_id(order_id, opts)
|
331
|
+
|
332
|
+
Retrieve a channel partner order by the channel partner order id
|
333
|
+
|
334
|
+
Retrieves a single order using the channel partner order id, not the ultracart order id. Only orders belonging to this channel partner may be retrieved.
|
335
|
+
|
336
|
+
### Example
|
337
|
+
```ruby
|
338
|
+
# load the gem
|
339
|
+
require 'ultracart_api'
|
340
|
+
|
341
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
342
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
343
|
+
api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
|
344
|
+
|
345
|
+
|
346
|
+
order_id = 'order_id_example' # String | The channel partner order id to retrieve.
|
347
|
+
|
348
|
+
opts = {
|
349
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
350
|
+
}
|
351
|
+
|
352
|
+
begin
|
353
|
+
#Retrieve a channel partner order by the channel partner order id
|
354
|
+
result = api_instance.get_channel_partner_order_by_channel_partner_order_id(order_id, opts)
|
355
|
+
p result
|
356
|
+
rescue UltracartClient::ApiError => e
|
357
|
+
puts "Exception when calling ChannelPartnerApi->get_channel_partner_order_by_channel_partner_order_id: #{e}"
|
358
|
+
end
|
359
|
+
```
|
360
|
+
|
361
|
+
### Parameters
|
362
|
+
|
363
|
+
Name | Type | Description | Notes
|
364
|
+
------------- | ------------- | ------------- | -------------
|
365
|
+
**order_id** | **String**| The channel partner order id to retrieve. |
|
366
|
+
**_expand** | **String**| The object expansion to perform on the result. See OrderApi.getOrder documentation for examples | [optional]
|
367
|
+
|
368
|
+
### Return type
|
369
|
+
|
370
|
+
[**OrderResponse**](OrderResponse.md)
|
371
|
+
|
372
|
+
### Authorization
|
373
|
+
|
374
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
375
|
+
|
376
|
+
### HTTP request headers
|
377
|
+
|
378
|
+
- **Content-Type**: application/json
|
379
|
+
- **Accept**: application/json
|
380
|
+
|
381
|
+
|
382
|
+
|
272
383
|
# **get_channel_partner_ship_to_preference**
|
273
384
|
> ChannelPartnerShipToPreferenceResponse get_channel_partner_ship_to_preference(channel_partner_oid, channel_partner_ship_to_preference_oid)
|
274
385
|
|
@@ -520,6 +631,77 @@ Name | Type | Description | Notes
|
|
520
631
|
|
521
632
|
|
522
633
|
|
634
|
+
# **refund_channel_partner_order**
|
635
|
+
> OrderResponse refund_channel_partner_order(order, order_id, opts)
|
636
|
+
|
637
|
+
Refund a channel partner order
|
638
|
+
|
639
|
+
Perform a refund operation on a channel partner order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
640
|
+
|
641
|
+
### Example
|
642
|
+
```ruby
|
643
|
+
# load the gem
|
644
|
+
require 'ultracart_api'
|
645
|
+
|
646
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
647
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
648
|
+
api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
|
649
|
+
|
650
|
+
|
651
|
+
order = UltracartClient::Order.new # Order | Order to refund
|
652
|
+
|
653
|
+
order_id = 'order_id_example' # String | The order id to refund.
|
654
|
+
|
655
|
+
opts = {
|
656
|
+
reject_after_refund: false, # BOOLEAN | Reject order after refund
|
657
|
+
skip_customer_notification: false, # BOOLEAN | Skip customer email notification
|
658
|
+
auto_order_cancel: false, # BOOLEAN | Cancel associated auto orders
|
659
|
+
manual_refund: false, # BOOLEAN | Consider a manual refund done externally
|
660
|
+
reverse_affiliate_transactions: true, # BOOLEAN | Reverse affiliate transactions
|
661
|
+
issue_store_credit: false, # BOOLEAN | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
662
|
+
auto_order_cancel_reason: 'auto_order_cancel_reason_example', # String | Reason for auto orders cancellation
|
663
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See OrderApi.refundOrder documentation for examples
|
664
|
+
}
|
665
|
+
|
666
|
+
begin
|
667
|
+
#Refund a channel partner order
|
668
|
+
result = api_instance.refund_channel_partner_order(order, order_id, opts)
|
669
|
+
p result
|
670
|
+
rescue UltracartClient::ApiError => e
|
671
|
+
puts "Exception when calling ChannelPartnerApi->refund_channel_partner_order: #{e}"
|
672
|
+
end
|
673
|
+
```
|
674
|
+
|
675
|
+
### Parameters
|
676
|
+
|
677
|
+
Name | Type | Description | Notes
|
678
|
+
------------- | ------------- | ------------- | -------------
|
679
|
+
**order** | [**Order**](Order.md)| Order to refund |
|
680
|
+
**order_id** | **String**| The order id to refund. |
|
681
|
+
**reject_after_refund** | **BOOLEAN**| Reject order after refund | [optional] [default to false]
|
682
|
+
**skip_customer_notification** | **BOOLEAN**| Skip customer email notification | [optional] [default to false]
|
683
|
+
**auto_order_cancel** | **BOOLEAN**| Cancel associated auto orders | [optional] [default to false]
|
684
|
+
**manual_refund** | **BOOLEAN**| Consider a manual refund done externally | [optional] [default to false]
|
685
|
+
**reverse_affiliate_transactions** | **BOOLEAN**| Reverse affiliate transactions | [optional] [default to true]
|
686
|
+
**issue_store_credit** | **BOOLEAN**| Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account | [optional] [default to false]
|
687
|
+
**auto_order_cancel_reason** | **String**| Reason for auto orders cancellation | [optional]
|
688
|
+
**_expand** | **String**| The object expansion to perform on the result. See OrderApi.refundOrder documentation for examples | [optional]
|
689
|
+
|
690
|
+
### Return type
|
691
|
+
|
692
|
+
[**OrderResponse**](OrderResponse.md)
|
693
|
+
|
694
|
+
### Authorization
|
695
|
+
|
696
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
697
|
+
|
698
|
+
### HTTP request headers
|
699
|
+
|
700
|
+
- **Content-Type**: application/json; charset=UTF-8
|
701
|
+
- **Accept**: application/json
|
702
|
+
|
703
|
+
|
704
|
+
|
523
705
|
# **update_channel_partner_ship_to_preference**
|
524
706
|
> ChannelPartnerShipToPreferenceResponse update_channel_partner_ship_to_preference(channel_partner_oid, channel_partner_ship_to_preference_oid, ship_to_preference)
|
525
707
|
|
data/docs/CustomerApi.md
CHANGED
@@ -634,6 +634,7 @@ opts = {
|
|
634
634
|
shipping_evening_phone: 'shipping_evening_phone_example', # String | Shipping evening phone
|
635
635
|
pricing_tier_oid: 56, # Integer | Pricing tier oid
|
636
636
|
pricing_tier_name: 'pricing_tier_name_example', # String | Pricing tier name
|
637
|
+
emails: nil, # Object | Emails
|
637
638
|
_limit: 100, # Integer | The maximum number of records to return on this one API call. (Max 200)
|
638
639
|
_offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
|
639
640
|
_since: '_since_example', # String | Fetch customers that have been created/modified since this date/time.
|
@@ -681,6 +682,7 @@ Name | Type | Description | Notes
|
|
681
682
|
**shipping_evening_phone** | **String**| Shipping evening phone | [optional]
|
682
683
|
**pricing_tier_oid** | **Integer**| Pricing tier oid | [optional]
|
683
684
|
**pricing_tier_name** | **String**| Pricing tier name | [optional]
|
685
|
+
**emails** | [**Object**](.md)| Emails | [optional]
|
684
686
|
**_limit** | **Integer**| The maximum number of records to return on this one API call. (Max 200) | [optional] [default to 100]
|
685
687
|
**_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
|
686
688
|
**_since** | **String**| Fetch customers that have been created/modified since this date/time. | [optional]
|
data/docs/CustomerQuery.md
CHANGED
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
15
15
|
**billing_postal_code** | **String** | Billing postal code | [optional]
|
16
16
|
**billing_state** | **String** | Billing state | [optional]
|
17
17
|
**email** | **String** | Email address of this customer profile | [optional]
|
18
|
+
**emails** | **Array<String>** | Emails allows for searching on multiple email addresses and work with our without the single email variable. You may specify a single email address here or use the email property. | [optional]
|
18
19
|
**last_modified_dts_end** | **String** | Last modified date end | [optional]
|
19
20
|
**last_modified_dts_start** | **String** | Last modified date start | [optional]
|
20
21
|
**pricing_tier_name** | **String** | Pricing tier name | [optional]
|
@@ -312,6 +312,122 @@ module UltracartClient
|
|
312
312
|
end
|
313
313
|
return data, status_code, headers
|
314
314
|
end
|
315
|
+
# Retrieve a channel partner order
|
316
|
+
# Retrieves a single order using the specified order id. Only orders belonging to this channel partner may be retrieved.
|
317
|
+
# @param order_id The order id to retrieve.
|
318
|
+
# @param [Hash] opts the optional parameters
|
319
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
320
|
+
# @return [OrderResponse]
|
321
|
+
def get_channel_partner_order(order_id, opts = {})
|
322
|
+
data, _status_code, _headers = get_channel_partner_order_with_http_info(order_id, opts)
|
323
|
+
data
|
324
|
+
end
|
325
|
+
|
326
|
+
# Retrieve a channel partner order
|
327
|
+
# Retrieves a single order using the specified order id. Only orders belonging to this channel partner may be retrieved.
|
328
|
+
# @param order_id The order id to retrieve.
|
329
|
+
# @param [Hash] opts the optional parameters
|
330
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
331
|
+
# @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
|
332
|
+
def get_channel_partner_order_with_http_info(order_id, opts = {})
|
333
|
+
if @api_client.config.debugging
|
334
|
+
@api_client.config.logger.debug 'Calling API: ChannelPartnerApi.get_channel_partner_order ...'
|
335
|
+
end
|
336
|
+
# verify the required parameter 'order_id' is set
|
337
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
338
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling ChannelPartnerApi.get_channel_partner_order"
|
339
|
+
end
|
340
|
+
# resource path
|
341
|
+
local_var_path = '/channel_partner/orders/{order_id}'.sub('{' + 'order_id' + '}', order_id.to_s)
|
342
|
+
|
343
|
+
# query parameters
|
344
|
+
query_params = {}
|
345
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
346
|
+
|
347
|
+
# header parameters
|
348
|
+
header_params = {}
|
349
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
350
|
+
# HTTP header 'Accept' (if needed)
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
352
|
+
# HTTP header 'Content-Type'
|
353
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = {}
|
357
|
+
|
358
|
+
# http body (model)
|
359
|
+
post_body = nil
|
360
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
362
|
+
:header_params => header_params,
|
363
|
+
:query_params => query_params,
|
364
|
+
:form_params => form_params,
|
365
|
+
:body => post_body,
|
366
|
+
:auth_names => auth_names,
|
367
|
+
:return_type => 'OrderResponse')
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug "API called: ChannelPartnerApi#get_channel_partner_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
370
|
+
end
|
371
|
+
return data, status_code, headers
|
372
|
+
end
|
373
|
+
# Retrieve a channel partner order by the channel partner order id
|
374
|
+
# Retrieves a single order using the channel partner order id, not the ultracart order id. Only orders belonging to this channel partner may be retrieved.
|
375
|
+
# @param order_id The channel partner order id to retrieve.
|
376
|
+
# @param [Hash] opts the optional parameters
|
377
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
378
|
+
# @return [OrderResponse]
|
379
|
+
def get_channel_partner_order_by_channel_partner_order_id(order_id, opts = {})
|
380
|
+
data, _status_code, _headers = get_channel_partner_order_by_channel_partner_order_id_with_http_info(order_id, opts)
|
381
|
+
data
|
382
|
+
end
|
383
|
+
|
384
|
+
# Retrieve a channel partner order by the channel partner order id
|
385
|
+
# Retrieves a single order using the channel partner order id, not the ultracart order id. Only orders belonging to this channel partner may be retrieved.
|
386
|
+
# @param order_id The channel partner order id to retrieve.
|
387
|
+
# @param [Hash] opts the optional parameters
|
388
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.getOrder documentation for examples
|
389
|
+
# @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
|
390
|
+
def get_channel_partner_order_by_channel_partner_order_id_with_http_info(order_id, opts = {})
|
391
|
+
if @api_client.config.debugging
|
392
|
+
@api_client.config.logger.debug 'Calling API: ChannelPartnerApi.get_channel_partner_order_by_channel_partner_order_id ...'
|
393
|
+
end
|
394
|
+
# verify the required parameter 'order_id' is set
|
395
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling ChannelPartnerApi.get_channel_partner_order_by_channel_partner_order_id"
|
397
|
+
end
|
398
|
+
# resource path
|
399
|
+
local_var_path = '/channel_partner/orders/by_channel_partner_order_id/{order_id}'.sub('{' + 'order_id' + '}', order_id.to_s)
|
400
|
+
|
401
|
+
# query parameters
|
402
|
+
query_params = {}
|
403
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
404
|
+
|
405
|
+
# header parameters
|
406
|
+
header_params = {}
|
407
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
408
|
+
# HTTP header 'Accept' (if needed)
|
409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
410
|
+
# HTTP header 'Content-Type'
|
411
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
412
|
+
|
413
|
+
# form parameters
|
414
|
+
form_params = {}
|
415
|
+
|
416
|
+
# http body (model)
|
417
|
+
post_body = nil
|
418
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
419
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
420
|
+
:header_params => header_params,
|
421
|
+
:query_params => query_params,
|
422
|
+
:form_params => form_params,
|
423
|
+
:body => post_body,
|
424
|
+
:auth_names => auth_names,
|
425
|
+
:return_type => 'OrderResponse')
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug "API called: ChannelPartnerApi#get_channel_partner_order_by_channel_partner_order_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
+
end
|
429
|
+
return data, status_code, headers
|
430
|
+
end
|
315
431
|
# Retrieve the ship to preference associated with the channel partner and the specific id.
|
316
432
|
# Retrieve the ship to preference associated with the channel partner and the specific id.
|
317
433
|
# @param channel_partner_oid
|
@@ -593,6 +709,91 @@ module UltracartClient
|
|
593
709
|
end
|
594
710
|
return data, status_code, headers
|
595
711
|
end
|
712
|
+
# Refund a channel partner order
|
713
|
+
# Perform a refund operation on a channel partner order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
714
|
+
# @param order Order to refund
|
715
|
+
# @param order_id The order id to refund.
|
716
|
+
# @param [Hash] opts the optional parameters
|
717
|
+
# @option opts [BOOLEAN] :reject_after_refund Reject order after refund (default to false)
|
718
|
+
# @option opts [BOOLEAN] :skip_customer_notification Skip customer email notification (default to false)
|
719
|
+
# @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders (default to false)
|
720
|
+
# @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally (default to false)
|
721
|
+
# @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
|
722
|
+
# @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account (default to false)
|
723
|
+
# @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
|
724
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.refundOrder documentation for examples
|
725
|
+
# @return [OrderResponse]
|
726
|
+
def refund_channel_partner_order(order, order_id, opts = {})
|
727
|
+
data, _status_code, _headers = refund_channel_partner_order_with_http_info(order, order_id, opts)
|
728
|
+
data
|
729
|
+
end
|
730
|
+
|
731
|
+
# Refund a channel partner order
|
732
|
+
# Perform a refund operation on a channel partner order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
|
733
|
+
# @param order Order to refund
|
734
|
+
# @param order_id The order id to refund.
|
735
|
+
# @param [Hash] opts the optional parameters
|
736
|
+
# @option opts [BOOLEAN] :reject_after_refund Reject order after refund
|
737
|
+
# @option opts [BOOLEAN] :skip_customer_notification Skip customer email notification
|
738
|
+
# @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders
|
739
|
+
# @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally
|
740
|
+
# @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions
|
741
|
+
# @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
742
|
+
# @option opts [String] :auto_order_cancel_reason Reason for auto orders cancellation
|
743
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See OrderApi.refundOrder documentation for examples
|
744
|
+
# @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
|
745
|
+
def refund_channel_partner_order_with_http_info(order, order_id, opts = {})
|
746
|
+
if @api_client.config.debugging
|
747
|
+
@api_client.config.logger.debug 'Calling API: ChannelPartnerApi.refund_channel_partner_order ...'
|
748
|
+
end
|
749
|
+
# verify the required parameter 'order' is set
|
750
|
+
if @api_client.config.client_side_validation && order.nil?
|
751
|
+
fail ArgumentError, "Missing the required parameter 'order' when calling ChannelPartnerApi.refund_channel_partner_order"
|
752
|
+
end
|
753
|
+
# verify the required parameter 'order_id' is set
|
754
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
755
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling ChannelPartnerApi.refund_channel_partner_order"
|
756
|
+
end
|
757
|
+
# resource path
|
758
|
+
local_var_path = '/channel_partner/orders/{order_id}/refund'.sub('{' + 'order_id' + '}', order_id.to_s)
|
759
|
+
|
760
|
+
# query parameters
|
761
|
+
query_params = {}
|
762
|
+
query_params[:'reject_after_refund'] = opts[:'reject_after_refund'] if !opts[:'reject_after_refund'].nil?
|
763
|
+
query_params[:'skip_customer_notification'] = opts[:'skip_customer_notification'] if !opts[:'skip_customer_notification'].nil?
|
764
|
+
query_params[:'auto_order_cancel'] = opts[:'auto_order_cancel'] if !opts[:'auto_order_cancel'].nil?
|
765
|
+
query_params[:'manual_refund'] = opts[:'manual_refund'] if !opts[:'manual_refund'].nil?
|
766
|
+
query_params[:'reverse_affiliate_transactions'] = opts[:'reverse_affiliate_transactions'] if !opts[:'reverse_affiliate_transactions'].nil?
|
767
|
+
query_params[:'issue_store_credit'] = opts[:'issue_store_credit'] if !opts[:'issue_store_credit'].nil?
|
768
|
+
query_params[:'auto_order_cancel_reason'] = opts[:'auto_order_cancel_reason'] if !opts[:'auto_order_cancel_reason'].nil?
|
769
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
770
|
+
|
771
|
+
# header parameters
|
772
|
+
header_params = {}
|
773
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
774
|
+
# HTTP header 'Accept' (if needed)
|
775
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
776
|
+
# HTTP header 'Content-Type'
|
777
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
778
|
+
|
779
|
+
# form parameters
|
780
|
+
form_params = {}
|
781
|
+
|
782
|
+
# http body (model)
|
783
|
+
post_body = @api_client.object_to_http_body(order)
|
784
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
785
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
786
|
+
:header_params => header_params,
|
787
|
+
:query_params => query_params,
|
788
|
+
:form_params => form_params,
|
789
|
+
:body => post_body,
|
790
|
+
:auth_names => auth_names,
|
791
|
+
:return_type => 'OrderResponse')
|
792
|
+
if @api_client.config.debugging
|
793
|
+
@api_client.config.logger.debug "API called: ChannelPartnerApi#refund_channel_partner_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
794
|
+
end
|
795
|
+
return data, status_code, headers
|
796
|
+
end
|
596
797
|
# Update a ship to preference record for the channel partner.
|
597
798
|
# Update a ship to preference record for the channel partner.
|
598
799
|
# @param channel_partner_oid
|
@@ -684,6 +684,7 @@ module UltracartClient
|
|
684
684
|
# @option opts [String] :shipping_evening_phone Shipping evening phone
|
685
685
|
# @option opts [Integer] :pricing_tier_oid Pricing tier oid
|
686
686
|
# @option opts [String] :pricing_tier_name Pricing tier name
|
687
|
+
# @option opts [Object] :emails Emails
|
687
688
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
688
689
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
689
690
|
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
@@ -725,6 +726,7 @@ module UltracartClient
|
|
725
726
|
# @option opts [String] :shipping_evening_phone Shipping evening phone
|
726
727
|
# @option opts [Integer] :pricing_tier_oid Pricing tier oid
|
727
728
|
# @option opts [String] :pricing_tier_name Pricing tier name
|
729
|
+
# @option opts [Object] :emails Emails
|
728
730
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
|
729
731
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
730
732
|
# @option opts [String] :_since Fetch customers that have been created/modified since this date/time.
|
@@ -767,6 +769,7 @@ module UltracartClient
|
|
767
769
|
query_params[:'shipping_evening_phone'] = opts[:'shipping_evening_phone'] if !opts[:'shipping_evening_phone'].nil?
|
768
770
|
query_params[:'pricing_tier_oid'] = opts[:'pricing_tier_oid'] if !opts[:'pricing_tier_oid'].nil?
|
769
771
|
query_params[:'pricing_tier_name'] = opts[:'pricing_tier_name'] if !opts[:'pricing_tier_name'].nil?
|
772
|
+
query_params[:'emails'] = opts[:'emails'] if !opts[:'emails'].nil?
|
770
773
|
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
771
774
|
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
772
775
|
query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
|
@@ -50,6 +50,9 @@ module UltracartClient
|
|
50
50
|
# Email address of this customer profile
|
51
51
|
attr_accessor :email
|
52
52
|
|
53
|
+
# Emails allows for searching on multiple email addresses and work with our without the single email variable. You may specify a single email address here or use the email property.
|
54
|
+
attr_accessor :emails
|
55
|
+
|
53
56
|
# Last modified date end
|
54
57
|
attr_accessor :last_modified_dts_end
|
55
58
|
|
@@ -116,6 +119,7 @@ module UltracartClient
|
|
116
119
|
:'billing_postal_code' => :'billing_postal_code',
|
117
120
|
:'billing_state' => :'billing_state',
|
118
121
|
:'email' => :'email',
|
122
|
+
:'emails' => :'emails',
|
119
123
|
:'last_modified_dts_end' => :'last_modified_dts_end',
|
120
124
|
:'last_modified_dts_start' => :'last_modified_dts_start',
|
121
125
|
:'pricing_tier_name' => :'pricing_tier_name',
|
@@ -151,6 +155,7 @@ module UltracartClient
|
|
151
155
|
:'billing_postal_code' => :'String',
|
152
156
|
:'billing_state' => :'String',
|
153
157
|
:'email' => :'String',
|
158
|
+
:'emails' => :'Array<String>',
|
154
159
|
:'last_modified_dts_end' => :'String',
|
155
160
|
:'last_modified_dts_start' => :'String',
|
156
161
|
:'pricing_tier_name' => :'String',
|
@@ -231,6 +236,12 @@ module UltracartClient
|
|
231
236
|
self.email = attributes[:'email']
|
232
237
|
end
|
233
238
|
|
239
|
+
if attributes.has_key?(:'emails')
|
240
|
+
if (value = attributes[:'emails']).is_a?(Array)
|
241
|
+
self.emails = value
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
234
245
|
if attributes.has_key?(:'last_modified_dts_end')
|
235
246
|
self.last_modified_dts_end = attributes[:'last_modified_dts_end']
|
236
247
|
end
|
@@ -615,6 +626,7 @@ module UltracartClient
|
|
615
626
|
billing_postal_code == o.billing_postal_code &&
|
616
627
|
billing_state == o.billing_state &&
|
617
628
|
email == o.email &&
|
629
|
+
emails == o.emails &&
|
618
630
|
last_modified_dts_end == o.last_modified_dts_end &&
|
619
631
|
last_modified_dts_start == o.last_modified_dts_start &&
|
620
632
|
pricing_tier_name == o.pricing_tier_name &&
|
@@ -643,7 +655,7 @@ module UltracartClient
|
|
643
655
|
# Calculates hash code according to all attributes.
|
644
656
|
# @return [Fixnum] Hash code
|
645
657
|
def hash
|
646
|
-
[all_tags, any_tags, billing_city, billing_company, billing_country_code, billing_day_phone, billing_evening_phone, billing_first_name, billing_last_name, billing_postal_code, billing_state, email, last_modified_dts_end, last_modified_dts_start, pricing_tier_name, pricing_tier_oid, qb_class, quickbooks_code, shipping_city, shipping_company, shipping_country_code, shipping_day_phone, shipping_evening_phone, shipping_first_name, shipping_last_name, shipping_postal_code, shipping_state, signup_dts_end, signup_dts_start].hash
|
658
|
+
[all_tags, any_tags, billing_city, billing_company, billing_country_code, billing_day_phone, billing_evening_phone, billing_first_name, billing_last_name, billing_postal_code, billing_state, email, emails, last_modified_dts_end, last_modified_dts_start, pricing_tier_name, pricing_tier_oid, qb_class, quickbooks_code, shipping_city, shipping_company, shipping_country_code, shipping_day_phone, shipping_evening_phone, shipping_first_name, shipping_last_name, shipping_postal_code, shipping_state, signup_dts_end, signup_dts_start].hash
|
647
659
|
end
|
648
660
|
|
649
661
|
# 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.10.
|
4
|
+
version: 3.10.222
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|