ultracart_api 3.9.6 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -4
  3. data/docs/AdjustInternalCertificateRequest.md +13 -0
  4. data/docs/AdjustInternalCertificateResponse.md +13 -0
  5. data/docs/CartSettingsShippingEstimate.md +1 -0
  6. data/docs/ChannelPartnerApi.md +212 -0
  7. data/docs/ChannelPartnerCancelResponse.md +12 -0
  8. data/docs/ChannelPartnerEstimateShippingResponse.md +12 -0
  9. data/docs/ChannelPartnerImportResponse.md +13 -0
  10. data/docs/ChannelPartnerOrder.md +87 -0
  11. data/docs/ChannelPartnerOrderItem.md +14 -0
  12. data/docs/ChannelPartnerOrderItemOption.md +9 -0
  13. data/docs/ChannelPartnerOrderTransaction.md +9 -0
  14. data/docs/ChannelPartnerOrderTransactionDetail.md +9 -0
  15. data/docs/ChannelPartnerShippingEstimate.md +9 -0
  16. data/docs/CustomerApi.md +54 -0
  17. data/docs/CustomerLoyalty.md +2 -1
  18. data/docs/IntegrationLogApi.md +57 -0
  19. data/docs/OrderApi.md +55 -0
  20. data/lib/ultracart_api/api/channel_partner_api.rb +256 -0
  21. data/lib/ultracart_api/api/customer_api.rb +61 -0
  22. data/lib/ultracart_api/api/integration_log_api.rb +67 -0
  23. data/lib/ultracart_api/api/order_api.rb +58 -0
  24. data/lib/ultracart_api/models/adjust_internal_certificate_request.rb +235 -0
  25. data/lib/ultracart_api/models/adjust_internal_certificate_response.rb +232 -0
  26. data/lib/ultracart_api/models/cart_settings_shipping_estimate.rb +11 -1
  27. data/lib/ultracart_api/models/channel_partner_cancel_response.rb +224 -0
  28. data/lib/ultracart_api/models/channel_partner_estimate_shipping_response.rb +224 -0
  29. data/lib/ultracart_api/models/channel_partner_import_response.rb +236 -0
  30. data/lib/ultracart_api/models/channel_partner_order.rb +1569 -0
  31. data/lib/ultracart_api/models/channel_partner_order_item.rb +296 -0
  32. data/lib/ultracart_api/models/channel_partner_order_item_option.rb +195 -0
  33. data/lib/ultracart_api/models/channel_partner_order_transaction.rb +197 -0
  34. data/lib/ultracart_api/models/channel_partner_order_transaction_detail.rb +195 -0
  35. data/lib/ultracart_api/models/channel_partner_shipping_estimate.rb +195 -0
  36. data/lib/ultracart_api/models/customer_loyalty.rb +11 -2
  37. data/lib/ultracart_api/version.rb +1 -1
  38. data/lib/ultracart_api.rb +12 -0
  39. metadata +26 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b24e98917ef5f54fb712aead6d1f544fe121294afac179e2181e0ef18148612
4
- data.tar.gz: 01beb929c534c20da76a204106e9f5b3bd65d24576fc22be521d497356b6e8b6
3
+ metadata.gz: bba144b6bf988abc407bbad2e036c1100b0ea91197a8a8743e10ab7bcde5cfa9
4
+ data.tar.gz: 495765a6bcb4c56a0e17803557a32cc8f149fbfab7dff8dc4ca156db3f2e0bb6
5
5
  SHA512:
6
- metadata.gz: 15849669dc4c8acd98804036dcdd1f29b657b42aae7ba3986c0671d91e30c1c53d148791ad074e8a6d074d87bc198cefb2d5c38014ff9f97d3ab12cf5529f47e
7
- data.tar.gz: 118a3d786da54a1d1954c28c14f4eb2765fdfb65f2d15d7ff18ac7c966fc108bd9467d9dedf46a0cc01c7866e7d60a58f8dd6a6bf2031c38d6206298430b6e9d
6
+ metadata.gz: 6333115b29fac5c877bb018a3f634542398337ce2809ca2c752b38e430e6ff6d90c00b340028b27326f8179d446bbd6d699f86cfae1d202d18428454472f3fc8
7
+ data.tar.gz: c87fe3721ea2b8a2e08effd1f204e48c2f4ea32d864847de8845afcd2c60538d120721fa24123bb98ce21b7ffc24464bfa4104ee13865144999f91d275fead84
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.9.6
10
+ - Package version: 3.10.0
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.9.6.gem
27
+ gem install ./ultracart_api-3.10.0.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.9.6.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.0.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.9.6'
35
+ gem 'ultracart_api', '~> 3.10.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -96,6 +96,10 @@ Class | Method | HTTP request | Description
96
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
+ *UltracartClient::ChannelPartnerApi* | [**cancel_order_by_channel_partner_order_id**](docs/ChannelPartnerApi.md#cancel_order_by_channel_partner_order_id) | **DELETE** /channel_partner/cancel/by_channel_partner_order_id/{order_id} | Cancel channel partner order by channel partner order id
100
+ *UltracartClient::ChannelPartnerApi* | [**cancel_order_by_channel_ultra_cart_order_id**](docs/ChannelPartnerApi.md#cancel_order_by_channel_ultra_cart_order_id) | **DELETE** /channel_partner/cancel/by_ultracart_order_id/{order_id} | Cancel channel partner order by UltraCart order id
101
+ *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
102
+ *UltracartClient::ChannelPartnerApi* | [**import_channel_partner_order**](docs/ChannelPartnerApi.md#import_channel_partner_order) | **POST** /channel_partner/import | Insert channel partner order
99
103
  *UltracartClient::ChargebackApi* | [**delete_chargeback**](docs/ChargebackApi.md#delete_chargeback) | **DELETE** /chargeback/chargebacks/{chargeback_dispute_oid} | Delete a chargeback
100
104
  *UltracartClient::ChargebackApi* | [**get_chargeback_dispute**](docs/ChargebackApi.md#get_chargeback_dispute) | **GET** /chargeback/chargebacks/{chargeback_dispute_oid} | Retrieve a chargeback
101
105
  *UltracartClient::ChargebackApi* | [**get_chargeback_disputes**](docs/ChargebackApi.md#get_chargeback_disputes) | **GET** /chargeback/chargebacks | Retrieve chargebacks
@@ -154,6 +158,7 @@ Class | Method | HTTP request | Description
154
158
  *UltracartClient::CouponApi* | [**update_coupon**](docs/CouponApi.md#update_coupon) | **PUT** /coupon/coupons/{coupon_oid} | Update a coupon
155
159
  *UltracartClient::CouponApi* | [**update_coupons**](docs/CouponApi.md#update_coupons) | **PUT** /coupon/coupons/batch | Update multiple coupons
156
160
  *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
161
+ *UltracartClient::CustomerApi* | [**adjust_internal_certificate**](docs/CustomerApi.md#adjust_internal_certificate) | **POST** /customer/customers/{customer_profile_oid}/adjust_cashback_balance | Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
157
162
  *UltracartClient::CustomerApi* | [**delete_customer**](docs/CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer
158
163
  *UltracartClient::CustomerApi* | [**get_customer**](docs/CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer
159
164
  *UltracartClient::CustomerApi* | [**get_customer_by_email**](docs/CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email
@@ -183,6 +188,7 @@ Class | Method | HTTP request | Description
183
188
  *UltracartClient::GiftCertificateApi* | [**update_gift_certificate**](docs/GiftCertificateApi.md#update_gift_certificate) | **PUT** /gift_certificate/gift_certificates/{gift_certificate_oid} | Update a gift certificate
184
189
  *UltracartClient::IntegrationLogApi* | [**get_integration_log**](docs/IntegrationLogApi.md#get_integration_log) | **GET** /integration_log/query/{pk}/{sk} | Retrieve an integration log
185
190
  *UltracartClient::IntegrationLogApi* | [**get_integration_log_file**](docs/IntegrationLogApi.md#get_integration_log_file) | **GET** /integration_log/query/{pk}/{sk}/{uuid} | Retrieve an integration log file
191
+ *UltracartClient::IntegrationLogApi* | [**get_integration_log_file_pdf**](docs/IntegrationLogApi.md#get_integration_log_file_pdf) | **GET** /integration_log/query/{pk}/{sk}/{uuid}/pdf | Retrieve an integration log file converted to PDF
186
192
  *UltracartClient::IntegrationLogApi* | [**get_integration_log_summaries_query**](docs/IntegrationLogApi.md#get_integration_log_summaries_query) | **POST** /integration_log/summary/query | Retrieve integration log summaries
187
193
  *UltracartClient::IntegrationLogApi* | [**get_integration_logs_query**](docs/IntegrationLogApi.md#get_integration_logs_query) | **POST** /integration_log/query | Retrieve integration logs
188
194
  *UltracartClient::ItemApi* | [**delete_item**](docs/ItemApi.md#delete_item) | **DELETE** /item/items/{merchant_item_oid} | Delete an item
@@ -199,6 +205,7 @@ Class | Method | HTTP request | Description
199
205
  *UltracartClient::OrderApi* | [**adjust_order_total**](docs/OrderApi.md#adjust_order_total) | **POST** /order/orders/{order_id}/adjust_order_total/{desired_total} | Adjusts an order total
200
206
  *UltracartClient::OrderApi* | [**cancel_order**](docs/OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order
201
207
  *UltracartClient::OrderApi* | [**delete_order**](docs/OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
208
+ *UltracartClient::OrderApi* | [**duplicate_order**](docs/OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order
202
209
  *UltracartClient::OrderApi* | [**format**](docs/OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order
203
210
  *UltracartClient::OrderApi* | [**generate_order_token**](docs/OrderApi.md#generate_order_token) | **GET** /order/orders/token/{order_id} | Generate an order token for a given order id
204
211
  *UltracartClient::OrderApi* | [**generate_packing_slip_all_dc**](docs/OrderApi.md#generate_packing_slip_all_dc) | **GET** /order/orders/{order_id}/packing_slip | Generate a packing slip for this order across all distribution centers.
@@ -442,6 +449,8 @@ Class | Method | HTTP request | Description
442
449
  - [UltracartClient::AccountsReceivableRetryStatsResponse](docs/AccountsReceivableRetryStatsResponse.md)
443
450
  - [UltracartClient::Activity](docs/Activity.md)
444
451
  - [UltracartClient::AddLibraryItemRequest](docs/AddLibraryItemRequest.md)
452
+ - [UltracartClient::AdjustInternalCertificateRequest](docs/AdjustInternalCertificateRequest.md)
453
+ - [UltracartClient::AdjustInternalCertificateResponse](docs/AdjustInternalCertificateResponse.md)
445
454
  - [UltracartClient::AffiliateClick](docs/AffiliateClick.md)
446
455
  - [UltracartClient::AffiliateClickQuery](docs/AffiliateClickQuery.md)
447
456
  - [UltracartClient::AffiliateClicksResponse](docs/AffiliateClicksResponse.md)
@@ -527,6 +536,15 @@ Class | Method | HTTP request | Description
527
536
  - [UltracartClient::CartUpsellAfter](docs/CartUpsellAfter.md)
528
537
  - [UltracartClient::CartValidationRequest](docs/CartValidationRequest.md)
529
538
  - [UltracartClient::CartValidationResponse](docs/CartValidationResponse.md)
539
+ - [UltracartClient::ChannelPartnerCancelResponse](docs/ChannelPartnerCancelResponse.md)
540
+ - [UltracartClient::ChannelPartnerEstimateShippingResponse](docs/ChannelPartnerEstimateShippingResponse.md)
541
+ - [UltracartClient::ChannelPartnerImportResponse](docs/ChannelPartnerImportResponse.md)
542
+ - [UltracartClient::ChannelPartnerOrder](docs/ChannelPartnerOrder.md)
543
+ - [UltracartClient::ChannelPartnerOrderItem](docs/ChannelPartnerOrderItem.md)
544
+ - [UltracartClient::ChannelPartnerOrderItemOption](docs/ChannelPartnerOrderItemOption.md)
545
+ - [UltracartClient::ChannelPartnerOrderTransaction](docs/ChannelPartnerOrderTransaction.md)
546
+ - [UltracartClient::ChannelPartnerOrderTransactionDetail](docs/ChannelPartnerOrderTransactionDetail.md)
547
+ - [UltracartClient::ChannelPartnerShippingEstimate](docs/ChannelPartnerShippingEstimate.md)
530
548
  - [UltracartClient::ChargebackDispute](docs/ChargebackDispute.md)
531
549
  - [UltracartClient::ChargebackDisputeResponse](docs/ChargebackDisputeResponse.md)
532
550
  - [UltracartClient::ChargebackDisputesResponse](docs/ChargebackDisputesResponse.md)
@@ -1108,6 +1126,8 @@ Class | Method | HTTP request | Description
1108
1126
  - auto_order_write: Allows you to write auto order information.
1109
1127
  - chargeback_read: Allows you to read chargeback information.
1110
1128
  - chargeback_write: Allows you to write chargeback information.
1129
+ - channel_partner_read: Allows you to read channel partner information.
1130
+ - channel_partner_write: Allows you to write channel partner information.
1111
1131
  - checkout_read: Allows you to read checkout information.
1112
1132
  - checkout_write: Allows you to write checkout information.
1113
1133
  - configuration_read: Allows you to read configuration information.
@@ -1151,6 +1171,9 @@ Not every change is committed to every SDK.
1151
1171
 
1152
1172
  | Version | Date | Comments |
1153
1173
  | --: | :-: | --- |
1174
+ | 3.10.0 | 05/10/2022 | beta release of ChannelPartnerApi |
1175
+ | 3.9.8 | 04/26/2022 | OrderApi.duplicateOrder |
1176
+ | 3.9.7 | 04/25/2022 | integration logs method for zpl to pdf conversion |
1154
1177
  | 3.9.6 | 04/25/2022 | storefront communications email magic link setting |
1155
1178
  | 3.9.5 | 04/14/2022 | postcard screenshot bug fixes |
1156
1179
  | 3.9.4 | 04/13/2022 | Added spf DNS record to the sending domain object |
@@ -0,0 +1,13 @@
1
+ # UltracartClient::AdjustInternalCertificateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **adjustment_amount** | **Float** | The adjustment amount | [optional]
7
+ **description** | **String** | Description of this adjustment, 50 characters max | [optional]
8
+ **entry_dts** | **String** | Optional timestamp for the adjustment, defaults to current time | [optional]
9
+ **expiration_days** | **Integer** | Optional expiration days from the entry_dts when these adjustment becomes worthless | [optional]
10
+ **order_id** | **String** | Optional order id if this adjustment is related to a particular order | [optional]
11
+ **vesting_days** | **Integer** | Optional days required for this adjustment to vest | [optional]
12
+
13
+
@@ -0,0 +1,13 @@
1
+ # UltracartClient::AdjustInternalCertificateResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **adjustment_amount** | **Float** | The adjustment amount | [optional]
7
+ **balance_amount** | **Float** | The balance amount after the adjustment was made | [optional]
8
+ **error** | [**Error**](Error.md) | | [optional]
9
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
10
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
11
+ **warning** | [**Warning**](Warning.md) | | [optional]
12
+
13
+
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **estimated_delivery** | **String** | Date of the estimated delivery (or range) | [optional]
15
15
  **lift_gate_option** | **BOOLEAN** | True if a lift gate option for this method should be offered to the customer | [optional]
16
16
  **name** | **String** | Shipping method name | [optional]
17
+ **pickup** | **BOOLEAN** | True if this shipping method requires customers to physically pickup product themselves | [optional]
17
18
  **tax** | [**Currency**](Currency.md) | | [optional]
18
19
  **total_tax** | [**Currency**](Currency.md) | | [optional]
19
20
 
@@ -0,0 +1,212 @@
1
+ # UltracartClient::ChannelPartnerApi
2
+
3
+ All URIs are relative to *https://secure.ultracart.com/rest/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_order_by_channel_partner_order_id**](ChannelPartnerApi.md#cancel_order_by_channel_partner_order_id) | **DELETE** /channel_partner/cancel/by_channel_partner_order_id/{order_id} | Cancel channel partner order by channel partner order id
8
+ [**cancel_order_by_channel_ultra_cart_order_id**](ChannelPartnerApi.md#cancel_order_by_channel_ultra_cart_order_id) | **DELETE** /channel_partner/cancel/by_ultracart_order_id/{order_id} | Cancel channel partner order by UltraCart order id
9
+ [**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
10
+ [**import_channel_partner_order**](ChannelPartnerApi.md#import_channel_partner_order) | **POST** /channel_partner/import | Insert channel partner order
11
+
12
+
13
+ # **cancel_order_by_channel_partner_order_id**
14
+ > ChannelPartnerCancelResponse cancel_order_by_channel_partner_order_id(order_id)
15
+
16
+ Cancel channel partner order by channel partner order id
17
+
18
+ Cancel channel partner order by channel partner order id
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'ultracart_api'
24
+
25
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
26
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
27
+ api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
28
+
29
+
30
+ order_id = 'order_id_example' # String | The channel partner order id to delete.
31
+
32
+
33
+ begin
34
+ #Cancel channel partner order by channel partner order id
35
+ result = api_instance.cancel_order_by_channel_partner_order_id(order_id)
36
+ p result
37
+ rescue UltracartClient::ApiError => e
38
+ puts "Exception when calling ChannelPartnerApi->cancel_order_by_channel_partner_order_id: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **order_id** | **String**| The channel partner order id to delete. |
47
+
48
+ ### Return type
49
+
50
+ [**ChannelPartnerCancelResponse**](ChannelPartnerCancelResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json; charset=UTF-8
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **cancel_order_by_channel_ultra_cart_order_id**
64
+ > ChannelPartnerCancelResponse cancel_order_by_channel_ultra_cart_order_id(order_id)
65
+
66
+ Cancel channel partner order by UltraCart order id
67
+
68
+ Cancel channel partner order by UltraCart order id
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'ultracart_api'
74
+
75
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
76
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
77
+ api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
78
+
79
+
80
+ order_id = 'order_id_example' # String | The UltraCart order id to delete.
81
+
82
+
83
+ begin
84
+ #Cancel channel partner order by UltraCart order id
85
+ result = api_instance.cancel_order_by_channel_ultra_cart_order_id(order_id)
86
+ p result
87
+ rescue UltracartClient::ApiError => e
88
+ puts "Exception when calling ChannelPartnerApi->cancel_order_by_channel_ultra_cart_order_id: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ Name | Type | Description | Notes
95
+ ------------- | ------------- | ------------- | -------------
96
+ **order_id** | **String**| The UltraCart order id to delete. |
97
+
98
+ ### Return type
99
+
100
+ [**ChannelPartnerCancelResponse**](ChannelPartnerCancelResponse.md)
101
+
102
+ ### Authorization
103
+
104
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: application/json; charset=UTF-8
109
+ - **Accept**: application/json
110
+
111
+
112
+
113
+ # **estimate_shipping_for_channel_partner_order**
114
+ > ChannelPartnerEstimateShippingResponse estimate_shipping_for_channel_partner_order(channel_partner_order)
115
+
116
+ Estimate shipping for channel partner order
117
+
118
+ Estimate shipping for order from a channel partner.
119
+
120
+ ### Example
121
+ ```ruby
122
+ # load the gem
123
+ require 'ultracart_api'
124
+
125
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
126
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
127
+ api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
128
+
129
+
130
+ channel_partner_order = UltracartClient::ChannelPartnerOrder.new # ChannelPartnerOrder | Order needing shipping estimate
131
+
132
+
133
+ begin
134
+ #Estimate shipping for channel partner order
135
+ result = api_instance.estimate_shipping_for_channel_partner_order(channel_partner_order)
136
+ p result
137
+ rescue UltracartClient::ApiError => e
138
+ puts "Exception when calling ChannelPartnerApi->estimate_shipping_for_channel_partner_order: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **channel_partner_order** | [**ChannelPartnerOrder**](ChannelPartnerOrder.md)| Order needing shipping estimate |
147
+
148
+ ### Return type
149
+
150
+ [**ChannelPartnerEstimateShippingResponse**](ChannelPartnerEstimateShippingResponse.md)
151
+
152
+ ### Authorization
153
+
154
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json; charset=UTF-8
159
+ - **Accept**: application/json
160
+
161
+
162
+
163
+ # **import_channel_partner_order**
164
+ > ChannelPartnerImportResponse import_channel_partner_order(channel_partner_order)
165
+
166
+ Insert channel partner order
167
+
168
+ Insert order from a channel partner.
169
+
170
+ ### Example
171
+ ```ruby
172
+ # load the gem
173
+ require 'ultracart_api'
174
+
175
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
176
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
177
+ api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false)
178
+
179
+
180
+ channel_partner_order = UltracartClient::ChannelPartnerOrder.new # ChannelPartnerOrder | Order to insert
181
+
182
+
183
+ begin
184
+ #Insert channel partner order
185
+ result = api_instance.import_channel_partner_order(channel_partner_order)
186
+ p result
187
+ rescue UltracartClient::ApiError => e
188
+ puts "Exception when calling ChannelPartnerApi->import_channel_partner_order: #{e}"
189
+ end
190
+ ```
191
+
192
+ ### Parameters
193
+
194
+ Name | Type | Description | Notes
195
+ ------------- | ------------- | ------------- | -------------
196
+ **channel_partner_order** | [**ChannelPartnerOrder**](ChannelPartnerOrder.md)| Order to insert |
197
+
198
+ ### Return type
199
+
200
+ [**ChannelPartnerImportResponse**](ChannelPartnerImportResponse.md)
201
+
202
+ ### Authorization
203
+
204
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: application/json; charset=UTF-8
209
+ - **Accept**: application/json
210
+
211
+
212
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ChannelPartnerCancelResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cancel_errors** | **Array<String>** | Array of errors if errors occurred | [optional]
7
+ **error** | [**Error**](Error.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ChannelPartnerEstimateShippingResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **estimates** | [**Array<ChannelPartnerShippingEstimate>**](ChannelPartnerShippingEstimate.md) | An array of shipping methods and their costs | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -0,0 +1,13 @@
1
+ # UltracartClient::ChannelPartnerImportResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **import_errors** | **Array<String>** | Array of errors if errors occurred | [optional]
8
+ **import_warnings** | **Array<String>** | Array of warnings if warnings occurred | [optional]
9
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
10
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
11
+ **warning** | [**Warning**](Warning.md) | | [optional]
12
+
13
+
@@ -0,0 +1,87 @@
1
+ # UltracartClient::ChannelPartnerOrder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **advertising_source** | **String** | advertising_source | [optional]
7
+ **affiliate_id** | **String** | Affiliate Id | [optional]
8
+ **affiliate_sub_id** | **String** | Affiliate Sub Id | [optional]
9
+ **arbitrary_shipping_handling_total** | **Float** | Arbitrary shipping handling total | [optional]
10
+ **arbitrary_tax** | **Float** | Arbitrary tax for overriding calculated taxes | [optional]
11
+ **arbitrary_tax_rate** | **Float** | Arbitrary tax rate | [optional]
12
+ **arbitrary_taxable_subtotal** | **Float** | Arbitrary taxable subtotal | [optional]
13
+ **associate_with_customer_profile_if_present** | **BOOLEAN** | If true any matching customer profile based on email is associated with this order | [optional]
14
+ **auto_approve_purchase_order** | **BOOLEAN** | If true any purchase orders are automatically approved | [optional]
15
+ **billto_address1** | **String** | Billing Address line 1 | [optional]
16
+ **billto_address2** | **String** | Billing Address line 2 | [optional]
17
+ **billto_city** | **String** | Billing City | [optional]
18
+ **billto_company** | **String** | Billing Company | [optional]
19
+ **billto_country_code** | **String** | Billing ISO-3166 two letter country code | [optional]
20
+ **billto_day_phone** | **String** | Billing Day phone | [optional]
21
+ **billto_evening_phone** | **String** | Billing Evening phone | [optional]
22
+ **billto_first_name** | **String** | Billing First name | [optional]
23
+ **billto_last_name** | **String** | Billing Last name | [optional]
24
+ **billto_postal_code** | **String** | Billing Postal code | [optional]
25
+ **billto_state_region** | **String** | Billing State for United States otherwise region or province for other countries | [optional]
26
+ **billto_title** | **String** | Billing Title | [optional]
27
+ **cc_email** | **String** | CC email. | [optional]
28
+ **channel_partner_order_id** | **String** | The id for this order within the channel partner system. | [optional]
29
+ **consider_recurring** | **BOOLEAN** | If true this order is marked as an auto order (recurring) | [optional]
30
+ **coupons** | **Array<String>** | Array of coupon codes | [optional]
31
+ **credit_card_authorization_amount** | **Float** | The amount authorized externally | [optional]
32
+ **credit_card_authorization_dts** | **String** | Date/Time of credit card authorization in ISO8601 format | [optional]
33
+ **credit_card_authorization_number** | **String** | The reference number provided by an externally processed transaction | [optional]
34
+ **credit_card_expiration_month** | **Integer** | Credit card expiration month | [optional]
35
+ **credit_card_expiration_year** | **Integer** | Credit card expiration year | [optional]
36
+ **credit_card_type** | **String** | Credit card type | [optional]
37
+ **custom_field1** | **String** | Custom field 1 | [optional]
38
+ **custom_field2** | **String** | Custom field 2 | [optional]
39
+ **custom_field3** | **String** | Custom field 3 | [optional]
40
+ **custom_field4** | **String** | Custom field 4 | [optional]
41
+ **custom_field5** | **String** | Custom field 5 | [optional]
42
+ **custom_field6** | **String** | Custom field 6 | [optional]
43
+ **custom_field7** | **String** | Custom field 7 | [optional]
44
+ **delivery_date** | **String** | Date the customer is requesting delivery on. Typically used for perishable product delivery. | [optional]
45
+ **email** | **String** | Email | [optional]
46
+ **gift** | **BOOLEAN** | True if this order is a gift | [optional]
47
+ **gift_email** | **String** | Email address of the gift recipient | [optional]
48
+ **gift_message** | **String** | Message to the gift recipient | [optional]
49
+ **hosted_fields_card_token** | **String** | The token provided by UltraCart hosted fields when a credit card number is uploaded into the system. This is the only way to provide a credit card number. | [optional]
50
+ **hosted_fields_cvv_token** | **String** | The token provided by UltraCart hosted fields when a credit card cvv is uploaded into the system. This is the only way to provide a cvv number. | [optional]
51
+ **insurance_application_id** | **String** | Insurance application id | [optional]
52
+ **insurance_claim_id** | **String** | Insurance claim id | [optional]
53
+ **ip_address** | **String** | IP Address of the customer | [optional]
54
+ **items** | [**Array<ChannelPartnerOrderItem>**](ChannelPartnerOrderItem.md) | Items | [optional]
55
+ **least_cost_route** | **BOOLEAN** | If true the least expensive shipping method is automatically chosen during the order import | [optional]
56
+ **least_cost_route_shipping_methods** | **Array<String>** | An optional array of shipping methods to restict choices if least_cost_route is true | [optional]
57
+ **mailing_list_opt_in** | **BOOLEAN** | If true the customer is subscribed to any configured mailing lists | [optional]
58
+ **no_realtime_payment_processing** | **BOOLEAN** | If true no payment processing is done and the order is placed into Accounts Receivable | [optional]
59
+ **payment_method** | **String** | Payment method | [optional]
60
+ **purchase_order_number** | **String** | Purchase order number | [optional]
61
+ **rotating_transaction_gateway_code** | **String** | The rotating transaction gateway code for the gateway used to charge this order | [optional]
62
+ **screen_branding_theme_code** | **String** | Screen branding theme code | [optional]
63
+ **ship_on_date** | **String** | Date the customer is requesting that the order ship on. Typically used for perishable product delivery. | [optional]
64
+ **ship_to_residential** | **BOOLEAN** | True if the shipping adress is residential. Effects the methods that are available to the customer as well as the price of the shipping method. | [optional]
65
+ **shipping_method** | **String** | Shipping method | [optional]
66
+ **shipto_address1** | **String** | Shipping Address line 1 | [optional]
67
+ **shipto_address2** | **String** | Shipping Address line 2 | [optional]
68
+ **shipto_city** | **String** | Shipping City | [optional]
69
+ **shipto_company** | **String** | Shipping Company | [optional]
70
+ **shipto_country_code** | **String** | Shipping ISO-3166 two letter country code | [optional]
71
+ **shipto_day_phone** | **String** | Shipping Day phone | [optional]
72
+ **shipto_evening_phone** | **String** | Shipping Evening phone | [optional]
73
+ **shipto_first_name** | **String** | Shipping First name | [optional]
74
+ **shipto_last_name** | **String** | Shipping Last name | [optional]
75
+ **shipto_postal_code** | **String** | Shipping Postal code | [optional]
76
+ **shipto_state_region** | **String** | Shipping State for United States otherwise region or province for other countries | [optional]
77
+ **shipto_title** | **String** | Shipping Title | [optional]
78
+ **skip_payment_processing** | **BOOLEAN** | If true the order is placed directly into the shipping department | [optional]
79
+ **special_instructions** | **String** | Special instructions from the customer regarding shipping | [optional]
80
+ **store_completed** | **BOOLEAN** | If true the order bypasses shipping and is marked completed | [optional]
81
+ **store_if_payment_declines** | **BOOLEAN** | If true any failed payments are placed into Accounts Receivable. If false any failed payments result in a rejected order resulting in errors thrown during the insert routine | [optional]
82
+ **tax_county** | **String** | The optional shipping county used to determine exact taxes | [optional]
83
+ **tax_exempt** | **BOOLEAN** | If true this order is marked as being tax exempt | [optional]
84
+ **transaction** | [**ChannelPartnerOrderTransaction**](ChannelPartnerOrderTransaction.md) | | [optional]
85
+ **treat_warnings_as_errors** | **BOOLEAN** | If true all warnings are considered errors, this is true by default | [optional]
86
+
87
+
@@ -0,0 +1,14 @@
1
+ # UltracartClient::ChannelPartnerOrderItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **arbitrary_unit_cost** | **Float** | Arbitrary unit cost for this item that differs from the listed price | [optional]
7
+ **auto_order_last_rebill_dts** | **String** | Optional date/time of the last rebill if this item is part of an auto (recurring) order | [optional]
8
+ **auto_order_schedule** | **String** | The frequency schedule for this item if this item is part of an auto (recurring) order | [optional]
9
+ **merchant_item_id** | **String** | Item ID | [optional]
10
+ **options** | [**Array<ChannelPartnerOrderItemOption>**](ChannelPartnerOrderItemOption.md) | Item options | [optional]
11
+ **quantity** | **Float** | Quantity | [optional]
12
+ **upsell** | **BOOLEAN** | True if this item was an upsell item. | [optional]
13
+
14
+
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ChannelPartnerOrderItemOption
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of the item option. | [optional]
7
+ **value** | **String** | The value of the item option. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ChannelPartnerOrderTransaction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **details** | [**Array<ChannelPartnerOrderTransactionDetail>**](ChannelPartnerOrderTransactionDetail.md) | Transaction gateway details | [optional]
7
+ **successful** | **BOOLEAN** | True if the transaction was successfully charged | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ChannelPartnerOrderTransactionDetail
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of the item option. | [optional]
7
+ **value** | **String** | The value of the item option. | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ChannelPartnerShippingEstimate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **shipping_handling_total** | **Float** | The total estimate for this shipping method based on the provided order. | [optional]
7
+ **shipping_method** | **String** | The name of the shipping method | [optional]
8
+
9
+
data/docs/CustomerApi.md CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**adjust_internal_certificate**](CustomerApi.md#adjust_internal_certificate) | **POST** /customer/customers/{customer_profile_oid}/adjust_cashback_balance | Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
7
8
  [**delete_customer**](CustomerApi.md#delete_customer) | **DELETE** /customer/customers/{customer_profile_oid} | Delete a customer
8
9
  [**get_customer**](CustomerApi.md#get_customer) | **GET** /customer/customers/{customer_profile_oid} | Retrieve a customer
9
10
  [**get_customer_by_email**](CustomerApi.md#get_customer_by_email) | **GET** /customer/customers/by_email/{email} | Retrieve a customer by Email
@@ -19,6 +20,59 @@ Method | HTTP request | Description
19
20
  [**validate_email_verification_token**](CustomerApi.md#validate_email_verification_token) | **POST** /customer/customers/email_verify/validate_token | Validate a token that can be used to verify a customer email address
20
21
 
21
22
 
23
+ # **adjust_internal_certificate**
24
+ > AdjustInternalCertificateResponse adjust_internal_certificate(customer_profile_oid, adjust_internal_certificate_request)
25
+
26
+ Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
27
+
28
+ Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
29
+
30
+ ### Example
31
+ ```ruby
32
+ # load the gem
33
+ require 'ultracart_api'
34
+
35
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
36
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
37
+ api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
38
+
39
+
40
+ customer_profile_oid = 56 # Integer | The customer profile oid
41
+
42
+ adjust_internal_certificate_request = UltracartClient::AdjustInternalCertificateRequest.new # AdjustInternalCertificateRequest | adjustInternalCertificateRequest
43
+
44
+
45
+ begin
46
+ #Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
47
+ result = api_instance.adjust_internal_certificate(customer_profile_oid, adjust_internal_certificate_request)
48
+ p result
49
+ rescue UltracartClient::ApiError => e
50
+ puts "Exception when calling CustomerApi->adjust_internal_certificate: #{e}"
51
+ end
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **customer_profile_oid** | **Integer**| The customer profile oid |
59
+ **adjust_internal_certificate_request** | [**AdjustInternalCertificateRequest**](AdjustInternalCertificateRequest.md)| adjustInternalCertificateRequest |
60
+
61
+ ### Return type
62
+
63
+ [**AdjustInternalCertificateResponse**](AdjustInternalCertificateResponse.md)
64
+
65
+ ### Authorization
66
+
67
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: application/json; charset=UTF-8
72
+ - **Accept**: application/json
73
+
74
+
75
+
22
76
  # **delete_customer**
23
77
  > delete_customer(customer_profile_oid)
24
78
 
@@ -3,7 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **current_points** | **Integer** | Current Points | [optional]
6
+ **current_points** | **Integer** | Current points | [optional]
7
+ **internal_gift_certificate** | [**GiftCertificate**](GiftCertificate.md) | | [optional]
7
8
  **internal_gift_certificate_balance** | **String** | Loyalty Cashback / Store credit balance (internal gift certificate balance) | [optional]
8
9
  **internal_gift_certificate_oid** | **Integer** | Internal gift certificate oid used to tracking loyalty cashback / store credit. | [optional]
9
10
  **ledger_entries** | [**Array<CustomerLoyaltyLedger>**](CustomerLoyaltyLedger.md) | Ledger entries | [optional]