ultracart_api 4.1.122 → 4.1.125
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 +10 -2
- data/docs/CustomerApi.md +55 -0
- data/docs/CustomerEmailSuppressionRequest.md +26 -0
- data/docs/CustomerEmailSuppressionResponse.md +26 -0
- data/docs/CustomerEmailSuppressionResult.md +40 -0
- data/docs/EmailSuppressionSurfaces.md +22 -0
- data/docs/OrderQuery.md +5 -1
- data/docs/TaxCountry.md +5 -1
- data/docs/TaxState.md +5 -1
- data/lib/ultracart_api/api/customer_api.rb +75 -0
- data/lib/ultracart_api/models/customer_email_suppression_request.rb +294 -0
- data/lib/ultracart_api/models/customer_email_suppression_response.rb +256 -0
- data/lib/ultracart_api/models/customer_email_suppression_result.rb +329 -0
- data/lib/ultracart_api/models/email_suppression_surfaces.rb +240 -0
- data/lib/ultracart_api/models/item_third_party_email_marketing.rb +2 -2
- data/lib/ultracart_api/models/order_query.rb +52 -2
- data/lib/ultracart_api/models/tax_country.rb +24 -4
- data/lib/ultracart_api/models/tax_state.rb +24 -4
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a71acd908c524b94f7e117ea4cec002493901b2171f8292407d536f20f6edd53
|
|
4
|
+
data.tar.gz: 0c466b1d4a0e3595efe0182e6fdc1e620eb370912827a8cded022bbbee3b360c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4743f2e25a72ba9aed40fd369c1c5af781105d792c3ad045495ef802c8d6c505d434bf9aa216e213d104dca464b18681a94b387450e852ee23108e4724ff18c9
|
|
7
|
+
data.tar.gz: a74c0b65fb892c24923dd7301438421198870eebe0ca09924a3055ce98109a183e8077115177821644f2d31817cf45028cb84c763ff7b12878559a2afacc2213
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 4.1.
|
|
10
|
+
- Package version: 4.1.125
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.125'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -337,6 +337,7 @@ Class | Method | HTTP request | Description
|
|
|
337
337
|
*UltracartClient::CustomerApi* | [**search_customers**](docs/CustomerApi.md#search_customers) | **GET** /customer/customers/search | Search for customers
|
|
338
338
|
*UltracartClient::CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
|
|
339
339
|
*UltracartClient::CustomerApi* | [**update_customer_email_lists**](docs/CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
|
|
340
|
+
*UltracartClient::CustomerApi* | [**update_customer_email_suppression**](docs/CustomerApi.md#update_customer_email_suppression) | **POST** /customer/customers/{customer_profile_oid}/email_suppression | Clear email suppression for a customer
|
|
340
341
|
*UltracartClient::CustomerApi* | [**update_wish_list_item**](docs/CustomerApi.md#update_wish_list_item) | **PUT** /customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid} | Update a customer wishlist item
|
|
341
342
|
*UltracartClient::CustomerApi* | [**validate_email_verification_token**](docs/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
|
|
342
343
|
*UltracartClient::DatawarehouseApi* | [**analyze_custom_report**](docs/DatawarehouseApi.md#analyze_custom_report) | **PUT** /datawarehouse/custom_reports/{custom_report_oid}/analysis | Analyze a custom report
|
|
@@ -1157,6 +1158,9 @@ Class | Method | HTTP request | Description
|
|
|
1157
1158
|
- [UltracartClient::CustomerEditorValues](docs/CustomerEditorValues.md)
|
|
1158
1159
|
- [UltracartClient::CustomerEmail](docs/CustomerEmail.md)
|
|
1159
1160
|
- [UltracartClient::CustomerEmailListChanges](docs/CustomerEmailListChanges.md)
|
|
1161
|
+
- [UltracartClient::CustomerEmailSuppressionRequest](docs/CustomerEmailSuppressionRequest.md)
|
|
1162
|
+
- [UltracartClient::CustomerEmailSuppressionResponse](docs/CustomerEmailSuppressionResponse.md)
|
|
1163
|
+
- [UltracartClient::CustomerEmailSuppressionResult](docs/CustomerEmailSuppressionResult.md)
|
|
1160
1164
|
- [UltracartClient::CustomerLoyalty](docs/CustomerLoyalty.md)
|
|
1161
1165
|
- [UltracartClient::CustomerLoyaltyLedger](docs/CustomerLoyaltyLedger.md)
|
|
1162
1166
|
- [UltracartClient::CustomerLoyaltyRedemption](docs/CustomerLoyaltyRedemption.md)
|
|
@@ -1304,6 +1308,7 @@ Class | Method | HTTP request | Description
|
|
|
1304
1308
|
- [UltracartClient::EmailStepStatResponse](docs/EmailStepStatResponse.md)
|
|
1305
1309
|
- [UltracartClient::EmailStepWaitingRequest](docs/EmailStepWaitingRequest.md)
|
|
1306
1310
|
- [UltracartClient::EmailStepWaitingResponse](docs/EmailStepWaitingResponse.md)
|
|
1311
|
+
- [UltracartClient::EmailSuppressionSurfaces](docs/EmailSuppressionSurfaces.md)
|
|
1307
1312
|
- [UltracartClient::EmailTemplate](docs/EmailTemplate.md)
|
|
1308
1313
|
- [UltracartClient::EmailTemplatesResponse](docs/EmailTemplatesResponse.md)
|
|
1309
1314
|
- [UltracartClient::EmailThirdPartyList](docs/EmailThirdPartyList.md)
|
|
@@ -1829,6 +1834,9 @@ Not every change is committed to every SDK.
|
|
|
1829
1834
|
|
|
1830
1835
|
| Version | Date | Comments |
|
|
1831
1836
|
| --: | :-: | --- |
|
|
1837
|
+
| 4.1.125 | 08/06/2026 | order api - ability to query by bin and last 4 in unlimited scenarios for chargeback order association |
|
|
1838
|
+
| 4.1.124 | 08/04/2026 | customer - method to remove customer profile from email suppression |
|
|
1839
|
+
| 4.1.123 | 08/04/2026 | customer - method to remove customer profile from email suppression |
|
|
1832
1840
|
| 4.1.122 | 07/29/2026 | auto order api - new methods for payment information and rebill |
|
|
1833
1841
|
| 4.1.121 | 07/15/2026 | storefront - parameter to include details on dispatch log methods |
|
|
1834
1842
|
| 4.1.120 | 07/15/2026 | storefront - parameter to include details on dispatch log methods |
|
data/docs/CustomerApi.md
CHANGED
|
@@ -28,6 +28,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
28
28
|
| [**search_customers**](CustomerApi.md#search_customers) | **GET** /customer/customers/search | Search for customers |
|
|
29
29
|
| [**update_customer**](CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer |
|
|
30
30
|
| [**update_customer_email_lists**](CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer |
|
|
31
|
+
| [**update_customer_email_suppression**](CustomerApi.md#update_customer_email_suppression) | **POST** /customer/customers/{customer_profile_oid}/email_suppression | Clear email suppression for a customer |
|
|
31
32
|
| [**update_wish_list_item**](CustomerApi.md#update_wish_list_item) | **PUT** /customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid} | Update a customer wishlist item |
|
|
32
33
|
| [**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 |
|
|
33
34
|
|
|
@@ -2445,6 +2446,60 @@ end
|
|
|
2445
2446
|
- **Accept**: application/json
|
|
2446
2447
|
|
|
2447
2448
|
|
|
2449
|
+
## update_customer_email_suppression
|
|
2450
|
+
|
|
2451
|
+
> <CustomerEmailSuppressionResponse> update_customer_email_suppression(customer_profile_oid, suppression_changes)
|
|
2452
|
+
|
|
2453
|
+
Clear email suppression for a customer
|
|
2454
|
+
|
|
2455
|
+
Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer's original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
### Examples
|
|
2459
|
+
|
|
2460
|
+
|
|
2461
|
+
(No example for this operation).
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
#### Using the update_customer_email_suppression_with_http_info variant
|
|
2465
|
+
|
|
2466
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2467
|
+
|
|
2468
|
+
> <Array(<CustomerEmailSuppressionResponse>, Integer, Hash)> update_customer_email_suppression_with_http_info(customer_profile_oid, suppression_changes)
|
|
2469
|
+
|
|
2470
|
+
```ruby
|
|
2471
|
+
begin
|
|
2472
|
+
# Clear email suppression for a customer
|
|
2473
|
+
data, status_code, headers = api_instance.update_customer_email_suppression_with_http_info(customer_profile_oid, suppression_changes)
|
|
2474
|
+
p status_code # => 2xx
|
|
2475
|
+
p headers # => { ... }
|
|
2476
|
+
p data # => <CustomerEmailSuppressionResponse>
|
|
2477
|
+
rescue UltracartClient::ApiError => e
|
|
2478
|
+
puts "Error when calling CustomerApi->update_customer_email_suppression_with_http_info: #{e}"
|
|
2479
|
+
end
|
|
2480
|
+
```
|
|
2481
|
+
|
|
2482
|
+
### Parameters
|
|
2483
|
+
|
|
2484
|
+
| Name | Type | Description | Notes |
|
|
2485
|
+
| ---- | ---- | ----------- | ----- |
|
|
2486
|
+
| **customer_profile_oid** | **Integer** | The customer profile oid | |
|
|
2487
|
+
| **suppression_changes** | [**CustomerEmailSuppressionRequest**](CustomerEmailSuppressionRequest.md) | Suppression changes | |
|
|
2488
|
+
|
|
2489
|
+
### Return type
|
|
2490
|
+
|
|
2491
|
+
[**CustomerEmailSuppressionResponse**](CustomerEmailSuppressionResponse.md)
|
|
2492
|
+
|
|
2493
|
+
### Authorization
|
|
2494
|
+
|
|
2495
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
2496
|
+
|
|
2497
|
+
### HTTP request headers
|
|
2498
|
+
|
|
2499
|
+
- **Content-Type**: application/json; charset=UTF-8
|
|
2500
|
+
- **Accept**: application/json
|
|
2501
|
+
|
|
2502
|
+
|
|
2448
2503
|
## update_wish_list_item
|
|
2449
2504
|
|
|
2450
2505
|
> <CustomerWishListItem> update_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, wishlist_item)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::CustomerEmailSuppressionRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **clear_bounce** | **Boolean** | Clear bounce suppression for this address. Bounce has no per-customer flag; it exists only on the suppression tables. | [optional] |
|
|
8
|
+
| **clear_global_unsubscribe** | **Boolean** | Clear the global unsubscribe flag. No-op if it is already clear. | [optional] |
|
|
9
|
+
| **clear_spam_complaint** | **Boolean** | Clear the spam complaint flag. Requires a reason. No-op if it is already clear. | [optional] |
|
|
10
|
+
| **consent_source** | **String** | How the customer communicated consent. | [optional] |
|
|
11
|
+
| **reason** | **String** | Justification for the clear. Required when clearing a spam complaint. Retained on the audit record. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::CustomerEmailSuppressionRequest.new(
|
|
19
|
+
clear_bounce: null,
|
|
20
|
+
clear_global_unsubscribe: null,
|
|
21
|
+
clear_spam_complaint: null,
|
|
22
|
+
consent_source: null,
|
|
23
|
+
reason: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::CustomerEmailSuppressionResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email_suppression** | [**CustomerEmailSuppressionResult**](CustomerEmailSuppressionResult.md) | | [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
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::CustomerEmailSuppressionResponse.new(
|
|
19
|
+
email_suppression: null,
|
|
20
|
+
error: null,
|
|
21
|
+
metadata: null,
|
|
22
|
+
success: null,
|
|
23
|
+
warning: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UltracartClient::CustomerEmailSuppressionResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **bounce_cleared** | **Boolean** | True only if this call actually removed bounce suppression. Bounce has no per-customer flag, so there is no corresponding state field. | [optional] |
|
|
8
|
+
| **customer_profile_oid** | **Integer** | The customer profile oid that was operated on | [optional] |
|
|
9
|
+
| **email** | **String** | The email address that was operated on | [optional] |
|
|
10
|
+
| **esp_suppression_removed** | **Boolean** | True only if every requested suppression surface was successfully cleared. When false, see esp_warning -- the profile was still modified. | [optional] |
|
|
11
|
+
| **esp_warning** | **String** | Human readable explanation when esp_suppression_removed is false. Suitable for display to a support agent. | [optional] |
|
|
12
|
+
| **global_unsubscribe_cleared** | **Boolean** | True only if this call actually changed the global unsubscribe flag. False if it was already clear. | [optional] |
|
|
13
|
+
| **global_unsubscribed** | **Boolean** | Global unsubscribe state AFTER this call | [optional] |
|
|
14
|
+
| **global_unsubscribed_dts** | **String** | Global unsubscribe timestamp after this call. Nulled when cleared; the prior value is retained on the audit record. | [optional] |
|
|
15
|
+
| **spam_complaint** | **Boolean** | Spam complaint state AFTER this call | [optional] |
|
|
16
|
+
| **spam_complaint_cleared** | **Boolean** | True only if this call actually changed the spam complaint flag. False if it was already clear. | [optional] |
|
|
17
|
+
| **spam_complaint_dts** | **String** | Spam complaint timestamp after this call. Nulled when cleared; the prior value is retained on the audit record. | [optional] |
|
|
18
|
+
| **suppression_surfaces** | [**EmailSuppressionSurfaces**](EmailSuppressionSurfaces.md) | | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'ultracart_api'
|
|
24
|
+
|
|
25
|
+
instance = UltracartClient::CustomerEmailSuppressionResult.new(
|
|
26
|
+
bounce_cleared: null,
|
|
27
|
+
customer_profile_oid: null,
|
|
28
|
+
email: null,
|
|
29
|
+
esp_suppression_removed: null,
|
|
30
|
+
esp_warning: null,
|
|
31
|
+
global_unsubscribe_cleared: null,
|
|
32
|
+
global_unsubscribed: null,
|
|
33
|
+
global_unsubscribed_dts: null,
|
|
34
|
+
spam_complaint: null,
|
|
35
|
+
spam_complaint_cleared: null,
|
|
36
|
+
spam_complaint_dts: null,
|
|
37
|
+
suppression_surfaces: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::EmailSuppressionSurfaces
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **central_ses_suppression** | **String** | Outcome of removing the address from the central cross-account ses_suppression table | [optional] |
|
|
8
|
+
| **esp_customer_flags** | **String** | Outcome of clearing the per-customer send gates on esp_customer | [optional] |
|
|
9
|
+
| **ses_account_suppression** | **String** | Outcome of removing the address from the SES-native account-level suppression list | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::EmailSuppressionSurfaces.new(
|
|
17
|
+
central_ses_suppression: null,
|
|
18
|
+
esp_customer_flags: null,
|
|
19
|
+
ses_account_suppression: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/OrderQuery.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **card_bin** | **String** | First six digits (BIN) of the credit card number. Must be specified together with card_last4 and a payment_date_begin/payment_date_end range. Requires query_target=cache. | [optional] |
|
|
8
|
+
| **card_last4** | **String** | Last four digits of the credit card number. Must be specified together with card_bin and a payment_date_begin/payment_date_end range. Always supply four digits, including for American Express. Requires query_target=cache. | [optional] |
|
|
7
9
|
| **cc_email** | **String** | CC Email | [optional] |
|
|
8
10
|
| **channel_partner_code** | **String** | The code of the channel partner | [optional] |
|
|
9
11
|
| **channel_partner_order_id** | **String** | The order ID assigned by the channel partner for this order | [optional] |
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
| **payment_date_begin** | **String** | Date/time that the order was successfully processed | [optional] |
|
|
33
35
|
| **payment_date_end** | **String** | Date/time that the order was successfully processed | [optional] |
|
|
34
36
|
| **payment_method** | **String** | Payment method | [optional] |
|
|
35
|
-
| **payment_transaction_filters** | [**Array<OrderQueryPaymentTransactionFilter>**](OrderQueryPaymentTransactionFilter.md) | Exact-match filters on the detail name/value pairs of a single payment transaction, AND-ed against the same transaction. Requires query_target=cache
|
|
37
|
+
| **payment_transaction_filters** | [**Array<OrderQueryPaymentTransactionFilter>**](OrderQueryPaymentTransactionFilter.md) | Exact-match filters on the detail name/value pairs of a single payment transaction, AND-ed against the same transaction. Requires query_target=cache. The origin or database path cannot search transaction details. The rotating gateway is just another pair, name equals rotatingTransactionGatewayCode or rotatingTransactionGatewayName. | [optional] |
|
|
36
38
|
| **phone** | **String** | Phone | [optional] |
|
|
37
39
|
| **postal_code** | **String** | Postal code | [optional] |
|
|
38
40
|
| **purchase_order_number** | **String** | Purchase order number | [optional] |
|
|
@@ -55,6 +57,8 @@
|
|
|
55
57
|
require 'ultracart_api'
|
|
56
58
|
|
|
57
59
|
instance = UltracartClient::OrderQuery.new(
|
|
60
|
+
card_bin: null,
|
|
61
|
+
card_last4: null,
|
|
58
62
|
cc_email: null,
|
|
59
63
|
channel_partner_code: null,
|
|
60
64
|
channel_partner_order_id: null,
|
data/docs/TaxCountry.md
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
| **tax_rate** | **Float** | Tax Rate | [optional] |
|
|
14
14
|
| **tax_rate_formatted** | **String** | Tax rate formatted | [optional] |
|
|
15
15
|
| **tax_shipping** | **Boolean** | True if taxation within this jurisdiction should charge tax on shipping | [optional] |
|
|
16
|
+
| **vat_threshold** | **Float** | VAT collection threshold for this country. Blank means no threshold, 0 always collects VAT, a positive value collects at or below that order subtotal. | [optional] |
|
|
17
|
+
| **vat_threshold_currency** | **String** | Currency code the vat_threshold amount is expressed in (USD, EUR or GBP). | [optional] |
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,7 +30,9 @@ instance = UltracartClient::TaxCountry.new(
|
|
|
28
30
|
tax_gift_wrap: null,
|
|
29
31
|
tax_rate: null,
|
|
30
32
|
tax_rate_formatted: null,
|
|
31
|
-
tax_shipping: null
|
|
33
|
+
tax_shipping: null,
|
|
34
|
+
vat_threshold: null,
|
|
35
|
+
vat_threshold_currency: null
|
|
32
36
|
)
|
|
33
37
|
```
|
|
34
38
|
|
data/docs/TaxState.md
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
| **tax_rate_formatted** | **String** | Tax rate formatted | [optional] |
|
|
23
23
|
| **tax_shipping** | **Boolean** | True if taxation within this jurisdiction should charge tax on shipping | [optional] |
|
|
24
24
|
| **use_ultracart_managed_rates** | **Boolean** | If true, use UltraCart managed rates for this state | [optional] |
|
|
25
|
+
| **vat_threshold** | **Float** | VAT collection threshold override for this region. Blank inherits the country threshold, 0 always collects VAT, a positive value collects at or below that order subtotal. | [optional] |
|
|
26
|
+
| **vat_threshold_currency** | **String** | Currency code the vat_threshold amount is expressed in (USD, EUR or GBP). | [optional] |
|
|
25
27
|
|
|
26
28
|
## Example
|
|
27
29
|
|
|
@@ -46,7 +48,9 @@ instance = UltracartClient::TaxState.new(
|
|
|
46
48
|
tax_rate: null,
|
|
47
49
|
tax_rate_formatted: null,
|
|
48
50
|
tax_shipping: null,
|
|
49
|
-
use_ultracart_managed_rates: null
|
|
51
|
+
use_ultracart_managed_rates: null,
|
|
52
|
+
vat_threshold: null,
|
|
53
|
+
vat_threshold_currency: null
|
|
50
54
|
)
|
|
51
55
|
```
|
|
52
56
|
|
|
@@ -1790,6 +1790,81 @@ module UltracartClient
|
|
|
1790
1790
|
return data, status_code, headers
|
|
1791
1791
|
end
|
|
1792
1792
|
|
|
1793
|
+
# Clear email suppression for a customer
|
|
1794
|
+
# Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer's original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
1795
|
+
# @param customer_profile_oid [Integer] The customer profile oid
|
|
1796
|
+
# @param suppression_changes [CustomerEmailSuppressionRequest] Suppression changes
|
|
1797
|
+
# @param [Hash] opts the optional parameters
|
|
1798
|
+
# @return [CustomerEmailSuppressionResponse]
|
|
1799
|
+
def update_customer_email_suppression(customer_profile_oid, suppression_changes, opts = {})
|
|
1800
|
+
data, _status_code, _headers = update_customer_email_suppression_with_http_info(customer_profile_oid, suppression_changes, opts)
|
|
1801
|
+
data
|
|
1802
|
+
end
|
|
1803
|
+
|
|
1804
|
+
# Clear email suppression for a customer
|
|
1805
|
+
# Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer's original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
1806
|
+
# @param customer_profile_oid [Integer] The customer profile oid
|
|
1807
|
+
# @param suppression_changes [CustomerEmailSuppressionRequest] Suppression changes
|
|
1808
|
+
# @param [Hash] opts the optional parameters
|
|
1809
|
+
# @return [Array<(CustomerEmailSuppressionResponse, Integer, Hash)>] CustomerEmailSuppressionResponse data, response status code and response headers
|
|
1810
|
+
def update_customer_email_suppression_with_http_info(customer_profile_oid, suppression_changes, opts = {})
|
|
1811
|
+
if @api_client.config.debugging
|
|
1812
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.update_customer_email_suppression ...'
|
|
1813
|
+
end
|
|
1814
|
+
# verify the required parameter 'customer_profile_oid' is set
|
|
1815
|
+
if @api_client.config.client_side_validation && customer_profile_oid.nil?
|
|
1816
|
+
fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.update_customer_email_suppression"
|
|
1817
|
+
end
|
|
1818
|
+
# verify the required parameter 'suppression_changes' is set
|
|
1819
|
+
if @api_client.config.client_side_validation && suppression_changes.nil?
|
|
1820
|
+
fail ArgumentError, "Missing the required parameter 'suppression_changes' when calling CustomerApi.update_customer_email_suppression"
|
|
1821
|
+
end
|
|
1822
|
+
# resource path
|
|
1823
|
+
local_var_path = '/customer/customers/{customer_profile_oid}/email_suppression'.sub('{' + 'customer_profile_oid' + '}', CGI.escape(customer_profile_oid.to_s))
|
|
1824
|
+
|
|
1825
|
+
# query parameters
|
|
1826
|
+
query_params = opts[:query_params] || {}
|
|
1827
|
+
|
|
1828
|
+
# header parameters
|
|
1829
|
+
header_params = opts[:header_params] || {}
|
|
1830
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1831
|
+
# HTTP header 'Accept' (if needed)
|
|
1832
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1833
|
+
# HTTP header 'Content-Type'
|
|
1834
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
|
1835
|
+
if !content_type.nil?
|
|
1836
|
+
header_params['Content-Type'] = content_type
|
|
1837
|
+
end
|
|
1838
|
+
|
|
1839
|
+
# form parameters
|
|
1840
|
+
form_params = opts[:form_params] || {}
|
|
1841
|
+
|
|
1842
|
+
# http body (model)
|
|
1843
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(suppression_changes)
|
|
1844
|
+
|
|
1845
|
+
# return_type
|
|
1846
|
+
return_type = opts[:debug_return_type] || 'CustomerEmailSuppressionResponse'
|
|
1847
|
+
|
|
1848
|
+
# auth_names
|
|
1849
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1850
|
+
|
|
1851
|
+
new_options = opts.merge(
|
|
1852
|
+
:operation => :"CustomerApi.update_customer_email_suppression",
|
|
1853
|
+
:header_params => header_params,
|
|
1854
|
+
:query_params => query_params,
|
|
1855
|
+
:form_params => form_params,
|
|
1856
|
+
:body => post_body,
|
|
1857
|
+
:auth_names => auth_names,
|
|
1858
|
+
:return_type => return_type
|
|
1859
|
+
)
|
|
1860
|
+
|
|
1861
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1862
|
+
if @api_client.config.debugging
|
|
1863
|
+
@api_client.config.logger.debug "API called: CustomerApi#update_customer_email_suppression\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1864
|
+
end
|
|
1865
|
+
return data, status_code, headers
|
|
1866
|
+
end
|
|
1867
|
+
|
|
1793
1868
|
# Update a customer wishlist item
|
|
1794
1869
|
# Update a customer wishlist item
|
|
1795
1870
|
# @param customer_profile_oid [Integer] The customer oid for this wishlist.
|