ultracart_api 4.1.258 → 4.1.260
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 -2
- data/docs/OrderApi.md +109 -0
- data/docs/OrderCancelRequest.md +22 -0
- data/docs/OrderProcessPaymentRequest.md +3 -1
- data/docs/SfvbApi.md +54 -0
- data/lib/ultracart_api/api/order_api.rb +139 -0
- data/lib/ultracart_api/api/sfvb_api.rb +61 -0
- data/lib/ultracart_api/models/order_cancel_request.rb +240 -0
- data/lib/ultracart_api/models/order_process_payment_request.rb +14 -4
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +2 -2
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0251d817bbd7b85b6810f9b630156ab58ba2a29e6b3f315f69a3a50789e414d1
|
|
4
|
+
data.tar.gz: e008244a0ce531578d3783199541c79acb4921b96c943919c42e714cfa944ceb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 631475c69b97672e33058f81ee965f64797a6beca33299c9324c288f2d87cd2957f793bb76cbdae11cb6af5759e096c6181d5afc25cd3664111945a77d35f106
|
|
7
|
+
data.tar.gz: 79e3b48db6a5f71eb1b1129b2358110580b77f315e97da3d7d882aa3e4c0118cbc5f2ca8cf04d41d7127a61b114c748a47d507a2e8c7b04bccedd0274446cfaa
|
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.260
|
|
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.260'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -439,6 +439,7 @@ Class | Method | HTTP request | Description
|
|
|
439
439
|
*UltracartClient::OrderApi* | [**assign_to_affiliate**](docs/OrderApi.md#assign_to_affiliate) | **POST** /order/orders/{order_id}/assignToAffiliate | Assigns an order to an affiliate
|
|
440
440
|
*UltracartClient::OrderApi* | [**block_refund_on_order**](docs/OrderApi.md#block_refund_on_order) | **GET** /order/orders/{order_id}/refund_block | Set a refund block on an order
|
|
441
441
|
*UltracartClient::OrderApi* | [**cancel_order**](docs/OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order
|
|
442
|
+
*UltracartClient::OrderApi* | [**cancel_order_with_options**](docs/OrderApi.md#cancel_order_with_options) | **POST** /order/orders/{order_id}/cancel_with_options | Cancel an order with options
|
|
442
443
|
*UltracartClient::OrderApi* | [**delete_order**](docs/OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
|
|
443
444
|
*UltracartClient::OrderApi* | [**duplicate_order**](docs/OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order
|
|
444
445
|
*UltracartClient::OrderApi* | [**format**](docs/OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order
|
|
@@ -472,6 +473,7 @@ Class | Method | HTTP request | Description
|
|
|
472
473
|
*UltracartClient::OrderApi* | [**replacement**](docs/OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order
|
|
473
474
|
*UltracartClient::OrderApi* | [**resend_receipt**](docs/OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt
|
|
474
475
|
*UltracartClient::OrderApi* | [**resend_shipment_confirmation**](docs/OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation
|
|
476
|
+
*UltracartClient::OrderApi* | [**send_update_billing_email**](docs/OrderApi.md#send_update_billing_email) | **POST** /order/orders/{order_id}/send_update_billing_email | Send update billing email
|
|
475
477
|
*UltracartClient::OrderApi* | [**unblock_refund_on_order**](docs/OrderApi.md#unblock_refund_on_order) | **GET** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order
|
|
476
478
|
*UltracartClient::OrderApi* | [**update_accounts_receivable_retry_config**](docs/OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration
|
|
477
479
|
*UltracartClient::OrderApi* | [**update_order**](docs/OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order
|
|
@@ -539,6 +541,7 @@ Class | Method | HTTP request | Description
|
|
|
539
541
|
*UltracartClient::SfvbApi* | [**export_sfvb_not_found**](docs/SfvbApi.md#export_sfvb_not_found) | **GET** /sfvb/storefronts/{storefront_oid}/not_found/export | Export the open 404 paths
|
|
540
542
|
*UltracartClient::SfvbApi* | [**favorite_sfvb_library_entry**](docs/SfvbApi.md#favorite_sfvb_library_entry) | **PUT** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/favorite | Favorite a library entry
|
|
541
543
|
*UltracartClient::SfvbApi* | [**fix_sfvb_not_found_entry**](docs/SfvbApi.md#fix_sfvb_not_found_entry) | **POST** /sfvb/storefronts/{storefront_oid}/not_found/{not_found_id}/fixed | Mark a 404 path fixed
|
|
544
|
+
*UltracartClient::SfvbApi* | [**flush_sfvb_store_front_cache**](docs/SfvbApi.md#flush_sfvb_store_front_cache) | **POST** /sfvb/cache/flush | Flush the StoreFront page cache
|
|
542
545
|
*UltracartClient::SfvbApi* | [**get_sfvb_affiliate_network**](docs/SfvbApi.md#get_sfvb_affiliate_network) | **GET** /sfvb/storefronts/{storefront_oid}/tracking/affiliate_networks/{affiliate_network_oid} | Read one affiliate network
|
|
543
546
|
*UltracartClient::SfvbApi* | [**get_sfvb_affiliate_networks**](docs/SfvbApi.md#get_sfvb_affiliate_networks) | **GET** /sfvb/storefronts/{storefront_oid}/tracking/affiliate_networks | List a storefront's affiliate networks
|
|
544
547
|
*UltracartClient::SfvbApi* | [**get_sfvb_approval**](docs/SfvbApi.md#get_sfvb_approval) | **GET** /sfvb/approvals/{approval_id} | Read one approval request
|
|
@@ -1844,6 +1847,7 @@ Class | Method | HTTP request | Description
|
|
|
1844
1847
|
- [UltracartClient::OrderBilling](docs/OrderBilling.md)
|
|
1845
1848
|
- [UltracartClient::OrderBuysafe](docs/OrderBuysafe.md)
|
|
1846
1849
|
- [UltracartClient::OrderByTokenQuery](docs/OrderByTokenQuery.md)
|
|
1850
|
+
- [UltracartClient::OrderCancelRequest](docs/OrderCancelRequest.md)
|
|
1847
1851
|
- [UltracartClient::OrderChannelPartner](docs/OrderChannelPartner.md)
|
|
1848
1852
|
- [UltracartClient::OrderCheckout](docs/OrderCheckout.md)
|
|
1849
1853
|
- [UltracartClient::OrderCoupon](docs/OrderCoupon.md)
|
|
@@ -2608,6 +2612,8 @@ Not every change is committed to every SDK.
|
|
|
2608
2612
|
|
|
2609
2613
|
| Version | Date | Comments |
|
|
2610
2614
|
| --: | :-: | --- |
|
|
2615
|
+
| 4.1.260 | 11/24/2026 | order api - add sendUpdateBillingEmail and cancelOrderWithOptions, add rotating_transaction_gateway to processPayment request |
|
|
2616
|
+
| 4.1.259 | 11/24/2026 | sfvb internal testing |
|
|
2611
2617
|
| 4.1.258 | 11/23/2026 | communications - expose the campaign hourly divisor on the settings |
|
|
2612
2618
|
| 4.1.257 | 11/19/2026 | sfvb internal testing |
|
|
2613
2619
|
| 4.1.256 | 11/17/2026 | sfvb internal testing |
|
data/docs/OrderApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
9
9
|
| [**assign_to_affiliate**](OrderApi.md#assign_to_affiliate) | **POST** /order/orders/{order_id}/assignToAffiliate | Assigns an order to an affiliate |
|
|
10
10
|
| [**block_refund_on_order**](OrderApi.md#block_refund_on_order) | **GET** /order/orders/{order_id}/refund_block | Set a refund block on an order |
|
|
11
11
|
| [**cancel_order**](OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order |
|
|
12
|
+
| [**cancel_order_with_options**](OrderApi.md#cancel_order_with_options) | **POST** /order/orders/{order_id}/cancel_with_options | Cancel an order with options |
|
|
12
13
|
| [**delete_order**](OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order |
|
|
13
14
|
| [**duplicate_order**](OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order |
|
|
14
15
|
| [**format**](OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order |
|
|
@@ -42,6 +43,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
42
43
|
| [**replacement**](OrderApi.md#replacement) | **POST** /order/orders/{order_id}/replacement | Replacement order |
|
|
43
44
|
| [**resend_receipt**](OrderApi.md#resend_receipt) | **POST** /order/orders/{order_id}/resend_receipt | Resend receipt |
|
|
44
45
|
| [**resend_shipment_confirmation**](OrderApi.md#resend_shipment_confirmation) | **POST** /order/orders/{order_id}/resend_shipment_confirmation | Resend shipment confirmation |
|
|
46
|
+
| [**send_update_billing_email**](OrderApi.md#send_update_billing_email) | **POST** /order/orders/{order_id}/send_update_billing_email | Send update billing email |
|
|
45
47
|
| [**unblock_refund_on_order**](OrderApi.md#unblock_refund_on_order) | **GET** /order/orders/{order_id}/refund_unblock | Remove a refund block on an order |
|
|
46
48
|
| [**update_accounts_receivable_retry_config**](OrderApi.md#update_accounts_receivable_retry_config) | **POST** /order/accountsReceivableRetryConfig | Update A/R Retry Configuration |
|
|
47
49
|
| [**update_order**](OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order |
|
|
@@ -425,6 +427,60 @@ end
|
|
|
425
427
|
- **Accept**: application/json
|
|
426
428
|
|
|
427
429
|
|
|
430
|
+
## cancel_order_with_options
|
|
431
|
+
|
|
432
|
+
> <BaseResponse> cancel_order_with_options(order_id, cancel_request)
|
|
433
|
+
|
|
434
|
+
Cancel an order with options
|
|
435
|
+
|
|
436
|
+
Cancel an order on the UltraCart account, with the options in the request body. If the success flag is false, then consult the error message for why it failed. An empty request body behaves the same as cancelOrder.
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### Examples
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
(No example for this operation).
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
#### Using the cancel_order_with_options_with_http_info variant
|
|
446
|
+
|
|
447
|
+
This returns an Array which contains the response data, status code and headers.
|
|
448
|
+
|
|
449
|
+
> <Array(<BaseResponse>, Integer, Hash)> cancel_order_with_options_with_http_info(order_id, cancel_request)
|
|
450
|
+
|
|
451
|
+
```ruby
|
|
452
|
+
begin
|
|
453
|
+
# Cancel an order with options
|
|
454
|
+
data, status_code, headers = api_instance.cancel_order_with_options_with_http_info(order_id, cancel_request)
|
|
455
|
+
p status_code # => 2xx
|
|
456
|
+
p headers # => { ... }
|
|
457
|
+
p data # => <BaseResponse>
|
|
458
|
+
rescue UltracartClient::ApiError => e
|
|
459
|
+
puts "Error when calling OrderApi->cancel_order_with_options_with_http_info: #{e}"
|
|
460
|
+
end
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
### Parameters
|
|
464
|
+
|
|
465
|
+
| Name | Type | Description | Notes |
|
|
466
|
+
| ---- | ---- | ----------- | ----- |
|
|
467
|
+
| **order_id** | **String** | The order id to cancel. | |
|
|
468
|
+
| **cancel_request** | [**OrderCancelRequest**](OrderCancelRequest.md) | Cancel order options | |
|
|
469
|
+
|
|
470
|
+
### Return type
|
|
471
|
+
|
|
472
|
+
[**BaseResponse**](BaseResponse.md)
|
|
473
|
+
|
|
474
|
+
### Authorization
|
|
475
|
+
|
|
476
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
477
|
+
|
|
478
|
+
### HTTP request headers
|
|
479
|
+
|
|
480
|
+
- **Content-Type**: application/json
|
|
481
|
+
- **Accept**: application/json
|
|
482
|
+
|
|
483
|
+
|
|
428
484
|
## delete_order
|
|
429
485
|
|
|
430
486
|
> delete_order(order_id)
|
|
@@ -3475,6 +3531,59 @@ end
|
|
|
3475
3531
|
- **Accept**: application/json
|
|
3476
3532
|
|
|
3477
3533
|
|
|
3534
|
+
## send_update_billing_email
|
|
3535
|
+
|
|
3536
|
+
> <BaseResponse> send_update_billing_email(order_id)
|
|
3537
|
+
|
|
3538
|
+
Send update billing email
|
|
3539
|
+
|
|
3540
|
+
Queues the update billing email to the customer on an order in Accounts Receivable, the same as the Send Billing Update button. The email is sent within a minute. The request is refused if the merchant has turned off the update billing notification, if a StoreFront communication flow handles unprocessed payments for the order, or if this method already sent the email for the order in the last 24 hours. While the order is less than 7 days old, a reminder is sent every 2 days.
|
|
3541
|
+
|
|
3542
|
+
|
|
3543
|
+
### Examples
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
(No example for this operation).
|
|
3547
|
+
|
|
3548
|
+
|
|
3549
|
+
#### Using the send_update_billing_email_with_http_info variant
|
|
3550
|
+
|
|
3551
|
+
This returns an Array which contains the response data, status code and headers.
|
|
3552
|
+
|
|
3553
|
+
> <Array(<BaseResponse>, Integer, Hash)> send_update_billing_email_with_http_info(order_id)
|
|
3554
|
+
|
|
3555
|
+
```ruby
|
|
3556
|
+
begin
|
|
3557
|
+
# Send update billing email
|
|
3558
|
+
data, status_code, headers = api_instance.send_update_billing_email_with_http_info(order_id)
|
|
3559
|
+
p status_code # => 2xx
|
|
3560
|
+
p headers # => { ... }
|
|
3561
|
+
p data # => <BaseResponse>
|
|
3562
|
+
rescue UltracartClient::ApiError => e
|
|
3563
|
+
puts "Error when calling OrderApi->send_update_billing_email_with_http_info: #{e}"
|
|
3564
|
+
end
|
|
3565
|
+
```
|
|
3566
|
+
|
|
3567
|
+
### Parameters
|
|
3568
|
+
|
|
3569
|
+
| Name | Type | Description | Notes |
|
|
3570
|
+
| ---- | ---- | ----------- | ----- |
|
|
3571
|
+
| **order_id** | **String** | The order id to send the update billing email for. | |
|
|
3572
|
+
|
|
3573
|
+
### Return type
|
|
3574
|
+
|
|
3575
|
+
[**BaseResponse**](BaseResponse.md)
|
|
3576
|
+
|
|
3577
|
+
### Authorization
|
|
3578
|
+
|
|
3579
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
3580
|
+
|
|
3581
|
+
### HTTP request headers
|
|
3582
|
+
|
|
3583
|
+
- **Content-Type**: Not defined
|
|
3584
|
+
- **Accept**: application/json
|
|
3585
|
+
|
|
3586
|
+
|
|
3478
3587
|
## unblock_refund_on_order
|
|
3479
3588
|
|
|
3480
3589
|
> unblock_refund_on_order(order_id)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::OrderCancelRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **lock_self_ship_orders** | **Boolean** | Flag to prevent a order shipping during a refund process | [optional] |
|
|
8
|
+
| **reject_reason** | **String** | Reason stored on the order when it is rejected without a refund (Accounts Receivable, Pre-order, Quote or Hold), the same as the reject reason in the UI. | [optional] |
|
|
9
|
+
| **skip_refund_and_hold** | **Boolean** | Skip refund and move order to Held Orders department | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::OrderCancelRequest.new(
|
|
17
|
+
lock_self_ship_orders: null,
|
|
18
|
+
reject_reason: null,
|
|
19
|
+
skip_refund_and_hold: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **amount** | **Float** | Specific amount to bill (optional). If not specified the total of the order is billed. | [optional] |
|
|
8
8
|
| **card_verification_number_token** | **String** | Card verification number token from hosted fields used during credit card transaction processing (optional) | [optional] |
|
|
9
|
+
| **rotating_transaction_gateway_code** | **String** | Rotating transaction gateway code to process the payment through (optional). Must be an active rotating transaction gateway on the account. The charge is attempted on that gateway only, without cascading to other gateways, the same as choosing a gateway on the Accounts Receivable Process Payment screen. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'ultracart_api'
|
|
|
14
15
|
|
|
15
16
|
instance = UltracartClient::OrderProcessPaymentRequest.new(
|
|
16
17
|
amount: null,
|
|
17
|
-
card_verification_number_token: null
|
|
18
|
+
card_verification_number_token: null,
|
|
19
|
+
rotating_transaction_gateway_code: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
data/docs/SfvbApi.md
CHANGED
|
@@ -67,6 +67,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
67
67
|
| [**export_sfvb_not_found**](SfvbApi.md#export_sfvb_not_found) | **GET** /sfvb/storefronts/{storefront_oid}/not_found/export | Export the open 404 paths |
|
|
68
68
|
| [**favorite_sfvb_library_entry**](SfvbApi.md#favorite_sfvb_library_entry) | **PUT** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/favorite | Favorite a library entry |
|
|
69
69
|
| [**fix_sfvb_not_found_entry**](SfvbApi.md#fix_sfvb_not_found_entry) | **POST** /sfvb/storefronts/{storefront_oid}/not_found/{not_found_id}/fixed | Mark a 404 path fixed |
|
|
70
|
+
| [**flush_sfvb_store_front_cache**](SfvbApi.md#flush_sfvb_store_front_cache) | **POST** /sfvb/cache/flush | Flush the StoreFront page cache |
|
|
70
71
|
| [**get_sfvb_affiliate_network**](SfvbApi.md#get_sfvb_affiliate_network) | **GET** /sfvb/storefronts/{storefront_oid}/tracking/affiliate_networks/{affiliate_network_oid} | Read one affiliate network |
|
|
71
72
|
| [**get_sfvb_affiliate_networks**](SfvbApi.md#get_sfvb_affiliate_networks) | **GET** /sfvb/storefronts/{storefront_oid}/tracking/affiliate_networks | List a storefront's affiliate networks |
|
|
72
73
|
| [**get_sfvb_approval**](SfvbApi.md#get_sfvb_approval) | **GET** /sfvb/approvals/{approval_id} | Read one approval request |
|
|
@@ -3763,6 +3764,59 @@ end
|
|
|
3763
3764
|
- **Accept**: application/json
|
|
3764
3765
|
|
|
3765
3766
|
|
|
3767
|
+
## flush_sfvb_store_front_cache
|
|
3768
|
+
|
|
3769
|
+
> flush_sfvb_store_front_cache(opts)
|
|
3770
|
+
|
|
3771
|
+
Flush the StoreFront page cache
|
|
3772
|
+
|
|
3773
|
+
Marks every cached page on every storefront of the account out of date, so each re-renders on its next visit. Templates, settings and files are not changed. Allowed once per account every 15 minutes; an earlier call answers 429. Needs an approved storefront_cache.flush request (POST approvals with no storefront_oid and empty params), and every request needs a fresh code.
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
### Examples
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
(No example for this operation).
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
#### Using the flush_sfvb_store_front_cache_with_http_info variant
|
|
3783
|
+
|
|
3784
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
3785
|
+
|
|
3786
|
+
> <Array(nil, Integer, Hash)> flush_sfvb_store_front_cache_with_http_info(opts)
|
|
3787
|
+
|
|
3788
|
+
```ruby
|
|
3789
|
+
begin
|
|
3790
|
+
# Flush the StoreFront page cache
|
|
3791
|
+
data, status_code, headers = api_instance.flush_sfvb_store_front_cache_with_http_info(opts)
|
|
3792
|
+
p status_code # => 2xx
|
|
3793
|
+
p headers # => { ... }
|
|
3794
|
+
p data # => nil
|
|
3795
|
+
rescue UltracartClient::ApiError => e
|
|
3796
|
+
puts "Error when calling SfvbApi->flush_sfvb_store_front_cache_with_http_info: #{e}"
|
|
3797
|
+
end
|
|
3798
|
+
```
|
|
3799
|
+
|
|
3800
|
+
### Parameters
|
|
3801
|
+
|
|
3802
|
+
| Name | Type | Description | Notes |
|
|
3803
|
+
| ---- | ---- | ----------- | ----- |
|
|
3804
|
+
| **approval_id** | **String** | The approval_id of an approved storefront_cache.flush request for this account. See POST /sfvb/approvals. | [optional] |
|
|
3805
|
+
|
|
3806
|
+
### Return type
|
|
3807
|
+
|
|
3808
|
+
nil (empty response body)
|
|
3809
|
+
|
|
3810
|
+
### Authorization
|
|
3811
|
+
|
|
3812
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
3813
|
+
|
|
3814
|
+
### HTTP request headers
|
|
3815
|
+
|
|
3816
|
+
- **Content-Type**: Not defined
|
|
3817
|
+
- **Accept**: application/json
|
|
3818
|
+
|
|
3819
|
+
|
|
3766
3820
|
## get_sfvb_affiliate_network
|
|
3767
3821
|
|
|
3768
3822
|
> <SfvbAffiliateNetwork> get_sfvb_affiliate_network(storefront_oid, affiliate_network_oid)
|
|
@@ -395,6 +395,81 @@ module UltracartClient
|
|
|
395
395
|
return data, status_code, headers
|
|
396
396
|
end
|
|
397
397
|
|
|
398
|
+
# Cancel an order with options
|
|
399
|
+
# Cancel an order on the UltraCart account, with the options in the request body. If the success flag is false, then consult the error message for why it failed. An empty request body behaves the same as cancelOrder.
|
|
400
|
+
# @param order_id [String] The order id to cancel.
|
|
401
|
+
# @param cancel_request [OrderCancelRequest] Cancel order options
|
|
402
|
+
# @param [Hash] opts the optional parameters
|
|
403
|
+
# @return [BaseResponse]
|
|
404
|
+
def cancel_order_with_options(order_id, cancel_request, opts = {})
|
|
405
|
+
data, _status_code, _headers = cancel_order_with_options_with_http_info(order_id, cancel_request, opts)
|
|
406
|
+
data
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Cancel an order with options
|
|
410
|
+
# Cancel an order on the UltraCart account, with the options in the request body. If the success flag is false, then consult the error message for why it failed. An empty request body behaves the same as cancelOrder.
|
|
411
|
+
# @param order_id [String] The order id to cancel.
|
|
412
|
+
# @param cancel_request [OrderCancelRequest] Cancel order options
|
|
413
|
+
# @param [Hash] opts the optional parameters
|
|
414
|
+
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
|
415
|
+
def cancel_order_with_options_with_http_info(order_id, cancel_request, opts = {})
|
|
416
|
+
if @api_client.config.debugging
|
|
417
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.cancel_order_with_options ...'
|
|
418
|
+
end
|
|
419
|
+
# verify the required parameter 'order_id' is set
|
|
420
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
421
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.cancel_order_with_options"
|
|
422
|
+
end
|
|
423
|
+
# verify the required parameter 'cancel_request' is set
|
|
424
|
+
if @api_client.config.client_side_validation && cancel_request.nil?
|
|
425
|
+
fail ArgumentError, "Missing the required parameter 'cancel_request' when calling OrderApi.cancel_order_with_options"
|
|
426
|
+
end
|
|
427
|
+
# resource path
|
|
428
|
+
local_var_path = '/order/orders/{order_id}/cancel_with_options'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s))
|
|
429
|
+
|
|
430
|
+
# query parameters
|
|
431
|
+
query_params = opts[:query_params] || {}
|
|
432
|
+
|
|
433
|
+
# header parameters
|
|
434
|
+
header_params = opts[:header_params] || {}
|
|
435
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
436
|
+
# HTTP header 'Accept' (if needed)
|
|
437
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
438
|
+
# HTTP header 'Content-Type'
|
|
439
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
440
|
+
if !content_type.nil?
|
|
441
|
+
header_params['Content-Type'] = content_type
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# form parameters
|
|
445
|
+
form_params = opts[:form_params] || {}
|
|
446
|
+
|
|
447
|
+
# http body (model)
|
|
448
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(cancel_request)
|
|
449
|
+
|
|
450
|
+
# return_type
|
|
451
|
+
return_type = opts[:debug_return_type] || 'BaseResponse'
|
|
452
|
+
|
|
453
|
+
# auth_names
|
|
454
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
455
|
+
|
|
456
|
+
new_options = opts.merge(
|
|
457
|
+
:operation => :"OrderApi.cancel_order_with_options",
|
|
458
|
+
:header_params => header_params,
|
|
459
|
+
:query_params => query_params,
|
|
460
|
+
:form_params => form_params,
|
|
461
|
+
:body => post_body,
|
|
462
|
+
:auth_names => auth_names,
|
|
463
|
+
:return_type => return_type
|
|
464
|
+
)
|
|
465
|
+
|
|
466
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
467
|
+
if @api_client.config.debugging
|
|
468
|
+
@api_client.config.logger.debug "API called: OrderApi#cancel_order_with_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
469
|
+
end
|
|
470
|
+
return data, status_code, headers
|
|
471
|
+
end
|
|
472
|
+
|
|
398
473
|
# Delete an order
|
|
399
474
|
# Delete an order on the UltraCart account.
|
|
400
475
|
# @param order_id [String] The order id to delete.
|
|
@@ -2755,6 +2830,70 @@ module UltracartClient
|
|
|
2755
2830
|
return data, status_code, headers
|
|
2756
2831
|
end
|
|
2757
2832
|
|
|
2833
|
+
# Send update billing email
|
|
2834
|
+
# Queues the update billing email to the customer on an order in Accounts Receivable, the same as the Send Billing Update button. The email is sent within a minute. The request is refused if the merchant has turned off the update billing notification, if a StoreFront communication flow handles unprocessed payments for the order, or if this method already sent the email for the order in the last 24 hours. While the order is less than 7 days old, a reminder is sent every 2 days.
|
|
2835
|
+
# @param order_id [String] The order id to send the update billing email for.
|
|
2836
|
+
# @param [Hash] opts the optional parameters
|
|
2837
|
+
# @return [BaseResponse]
|
|
2838
|
+
def send_update_billing_email(order_id, opts = {})
|
|
2839
|
+
data, _status_code, _headers = send_update_billing_email_with_http_info(order_id, opts)
|
|
2840
|
+
data
|
|
2841
|
+
end
|
|
2842
|
+
|
|
2843
|
+
# Send update billing email
|
|
2844
|
+
# Queues the update billing email to the customer on an order in Accounts Receivable, the same as the Send Billing Update button. The email is sent within a minute. The request is refused if the merchant has turned off the update billing notification, if a StoreFront communication flow handles unprocessed payments for the order, or if this method already sent the email for the order in the last 24 hours. While the order is less than 7 days old, a reminder is sent every 2 days.
|
|
2845
|
+
# @param order_id [String] The order id to send the update billing email for.
|
|
2846
|
+
# @param [Hash] opts the optional parameters
|
|
2847
|
+
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
|
2848
|
+
def send_update_billing_email_with_http_info(order_id, opts = {})
|
|
2849
|
+
if @api_client.config.debugging
|
|
2850
|
+
@api_client.config.logger.debug 'Calling API: OrderApi.send_update_billing_email ...'
|
|
2851
|
+
end
|
|
2852
|
+
# verify the required parameter 'order_id' is set
|
|
2853
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
2854
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.send_update_billing_email"
|
|
2855
|
+
end
|
|
2856
|
+
# resource path
|
|
2857
|
+
local_var_path = '/order/orders/{order_id}/send_update_billing_email'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s))
|
|
2858
|
+
|
|
2859
|
+
# query parameters
|
|
2860
|
+
query_params = opts[:query_params] || {}
|
|
2861
|
+
|
|
2862
|
+
# header parameters
|
|
2863
|
+
header_params = opts[:header_params] || {}
|
|
2864
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
2865
|
+
# HTTP header 'Accept' (if needed)
|
|
2866
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2867
|
+
|
|
2868
|
+
# form parameters
|
|
2869
|
+
form_params = opts[:form_params] || {}
|
|
2870
|
+
|
|
2871
|
+
# http body (model)
|
|
2872
|
+
post_body = opts[:debug_body]
|
|
2873
|
+
|
|
2874
|
+
# return_type
|
|
2875
|
+
return_type = opts[:debug_return_type] || 'BaseResponse'
|
|
2876
|
+
|
|
2877
|
+
# auth_names
|
|
2878
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2879
|
+
|
|
2880
|
+
new_options = opts.merge(
|
|
2881
|
+
:operation => :"OrderApi.send_update_billing_email",
|
|
2882
|
+
:header_params => header_params,
|
|
2883
|
+
:query_params => query_params,
|
|
2884
|
+
:form_params => form_params,
|
|
2885
|
+
:body => post_body,
|
|
2886
|
+
:auth_names => auth_names,
|
|
2887
|
+
:return_type => return_type
|
|
2888
|
+
)
|
|
2889
|
+
|
|
2890
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2891
|
+
if @api_client.config.debugging
|
|
2892
|
+
@api_client.config.logger.debug "API called: OrderApi#send_update_billing_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2893
|
+
end
|
|
2894
|
+
return data, status_code, headers
|
|
2895
|
+
end
|
|
2896
|
+
|
|
2758
2897
|
# Remove a refund block on an order
|
|
2759
2898
|
# Removes a refund block on an order to prevent a user from performing a refund.
|
|
2760
2899
|
# @param order_id [String] The order id to unblock a refund on.
|
|
@@ -4754,6 +4754,67 @@ module UltracartClient
|
|
|
4754
4754
|
return data, status_code, headers
|
|
4755
4755
|
end
|
|
4756
4756
|
|
|
4757
|
+
# Flush the StoreFront page cache
|
|
4758
|
+
# Marks every cached page on every storefront of the account out of date, so each re-renders on its next visit. Templates, settings and files are not changed. Allowed once per account every 15 minutes; an earlier call answers 429. Needs an approved storefront_cache.flush request (POST approvals with no storefront_oid and empty params), and every request needs a fresh code.
|
|
4759
|
+
# @param [Hash] opts the optional parameters
|
|
4760
|
+
# @option opts [String] :approval_id The approval_id of an approved storefront_cache.flush request for this account. See POST /sfvb/approvals.
|
|
4761
|
+
# @return [nil]
|
|
4762
|
+
def flush_sfvb_store_front_cache(opts = {})
|
|
4763
|
+
flush_sfvb_store_front_cache_with_http_info(opts)
|
|
4764
|
+
nil
|
|
4765
|
+
end
|
|
4766
|
+
|
|
4767
|
+
# Flush the StoreFront page cache
|
|
4768
|
+
# Marks every cached page on every storefront of the account out of date, so each re-renders on its next visit. Templates, settings and files are not changed. Allowed once per account every 15 minutes; an earlier call answers 429. Needs an approved storefront_cache.flush request (POST approvals with no storefront_oid and empty params), and every request needs a fresh code.
|
|
4769
|
+
# @param [Hash] opts the optional parameters
|
|
4770
|
+
# @option opts [String] :approval_id The approval_id of an approved storefront_cache.flush request for this account. See POST /sfvb/approvals.
|
|
4771
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
4772
|
+
def flush_sfvb_store_front_cache_with_http_info(opts = {})
|
|
4773
|
+
if @api_client.config.debugging
|
|
4774
|
+
@api_client.config.logger.debug 'Calling API: SfvbApi.flush_sfvb_store_front_cache ...'
|
|
4775
|
+
end
|
|
4776
|
+
# resource path
|
|
4777
|
+
local_var_path = '/sfvb/cache/flush'
|
|
4778
|
+
|
|
4779
|
+
# query parameters
|
|
4780
|
+
query_params = opts[:query_params] || {}
|
|
4781
|
+
|
|
4782
|
+
# header parameters
|
|
4783
|
+
header_params = opts[:header_params] || {}
|
|
4784
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
4785
|
+
# HTTP header 'Accept' (if needed)
|
|
4786
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4787
|
+
header_params[:'Approval-Id'] = opts[:'approval_id'] if !opts[:'approval_id'].nil?
|
|
4788
|
+
|
|
4789
|
+
# form parameters
|
|
4790
|
+
form_params = opts[:form_params] || {}
|
|
4791
|
+
|
|
4792
|
+
# http body (model)
|
|
4793
|
+
post_body = opts[:debug_body]
|
|
4794
|
+
|
|
4795
|
+
# return_type
|
|
4796
|
+
return_type = opts[:debug_return_type]
|
|
4797
|
+
|
|
4798
|
+
# auth_names
|
|
4799
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
4800
|
+
|
|
4801
|
+
new_options = opts.merge(
|
|
4802
|
+
:operation => :"SfvbApi.flush_sfvb_store_front_cache",
|
|
4803
|
+
:header_params => header_params,
|
|
4804
|
+
:query_params => query_params,
|
|
4805
|
+
:form_params => form_params,
|
|
4806
|
+
:body => post_body,
|
|
4807
|
+
:auth_names => auth_names,
|
|
4808
|
+
:return_type => return_type
|
|
4809
|
+
)
|
|
4810
|
+
|
|
4811
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4812
|
+
if @api_client.config.debugging
|
|
4813
|
+
@api_client.config.logger.debug "API called: SfvbApi#flush_sfvb_store_front_cache\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4814
|
+
end
|
|
4815
|
+
return data, status_code, headers
|
|
4816
|
+
end
|
|
4817
|
+
|
|
4757
4818
|
# Read one affiliate network
|
|
4758
4819
|
# The network with its conversion_pixel, and the hash_sha256 an update or delete sends back as If-Match.
|
|
4759
4820
|
# @param storefront_oid [Integer]
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UltracartClient
|
|
17
|
+
class OrderCancelRequest
|
|
18
|
+
# Flag to prevent a order shipping during a refund process
|
|
19
|
+
attr_accessor :lock_self_ship_orders
|
|
20
|
+
|
|
21
|
+
# Reason stored on the order when it is rejected without a refund (Accounts Receivable, Pre-order, Quote or Hold), the same as the reject reason in the UI.
|
|
22
|
+
attr_accessor :reject_reason
|
|
23
|
+
|
|
24
|
+
# Skip refund and move order to Held Orders department
|
|
25
|
+
attr_accessor :skip_refund_and_hold
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'lock_self_ship_orders' => :'lock_self_ship_orders',
|
|
31
|
+
:'reject_reason' => :'reject_reason',
|
|
32
|
+
:'skip_refund_and_hold' => :'skip_refund_and_hold'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'lock_self_ship_orders' => :'Boolean',
|
|
45
|
+
:'reject_reason' => :'String',
|
|
46
|
+
:'skip_refund_and_hold' => :'Boolean'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::OrderCancelRequest` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::OrderCancelRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'lock_self_ship_orders')
|
|
72
|
+
self.lock_self_ship_orders = attributes[:'lock_self_ship_orders']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'reject_reason')
|
|
76
|
+
self.reject_reason = attributes[:'reject_reason']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'skip_refund_and_hold')
|
|
80
|
+
self.skip_refund_and_hold = attributes[:'skip_refund_and_hold']
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def ==(o)
|
|
100
|
+
return true if self.equal?(o)
|
|
101
|
+
self.class == o.class &&
|
|
102
|
+
lock_self_ship_orders == o.lock_self_ship_orders &&
|
|
103
|
+
reject_reason == o.reject_reason &&
|
|
104
|
+
skip_refund_and_hold == o.skip_refund_and_hold
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# @see the `==` method
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def eql?(o)
|
|
110
|
+
self == o
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Calculates hash code according to all attributes.
|
|
114
|
+
# @return [Integer] Hash code
|
|
115
|
+
def hash
|
|
116
|
+
[lock_self_ship_orders, reject_reason, skip_refund_and_hold].hash
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Builds the object from hash
|
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
|
+
# @return [Object] Returns the model itself
|
|
122
|
+
def self.build_from_hash(attributes)
|
|
123
|
+
new.build_from_hash(attributes)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
134
|
+
self.send("#{key}=", nil)
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
self
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Deserializes the data based on type
|
|
150
|
+
# @param string type Data type
|
|
151
|
+
# @param string value Value to be deserialized
|
|
152
|
+
# @return [Object] Deserialized data
|
|
153
|
+
def _deserialize(type, value)
|
|
154
|
+
case type.to_sym
|
|
155
|
+
when :Time
|
|
156
|
+
Time.parse(value)
|
|
157
|
+
when :Date
|
|
158
|
+
Date.parse(value)
|
|
159
|
+
when :String
|
|
160
|
+
value.to_s
|
|
161
|
+
when :Integer
|
|
162
|
+
value.to_i
|
|
163
|
+
when :Float
|
|
164
|
+
value.to_f
|
|
165
|
+
when :Boolean
|
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
+
true
|
|
168
|
+
else
|
|
169
|
+
false
|
|
170
|
+
end
|
|
171
|
+
when :Object
|
|
172
|
+
# generic object (usually a Hash), return directly
|
|
173
|
+
value
|
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each do |k, v|
|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
else # model
|
|
186
|
+
# models (e.g. Pet) or oneOf
|
|
187
|
+
klass = UltracartClient.const_get(type)
|
|
188
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the string representation of the object
|
|
193
|
+
# @return [String] String presentation of the object
|
|
194
|
+
def to_s
|
|
195
|
+
to_hash.to_s
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_body
|
|
201
|
+
to_hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
if value.nil?
|
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
hash[param] = _to_hash(value)
|
|
216
|
+
end
|
|
217
|
+
hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Outputs non-array value in the form of hash
|
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
+
# @param [Object] value Any valid value
|
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
|
224
|
+
def _to_hash(value)
|
|
225
|
+
if value.is_a?(Array)
|
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
|
227
|
+
elsif value.is_a?(Hash)
|
|
228
|
+
{}.tap do |hash|
|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
+
end
|
|
231
|
+
elsif value.respond_to? :to_hash
|
|
232
|
+
value.to_hash
|
|
233
|
+
else
|
|
234
|
+
value
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
@@ -21,11 +21,15 @@ module UltracartClient
|
|
|
21
21
|
# Card verification number token from hosted fields used during credit card transaction processing (optional)
|
|
22
22
|
attr_accessor :card_verification_number_token
|
|
23
23
|
|
|
24
|
+
# Rotating transaction gateway code to process the payment through (optional). Must be an active rotating transaction gateway on the account. The charge is attempted on that gateway only, without cascading to other gateways, the same as choosing a gateway on the Accounts Receivable Process Payment screen.
|
|
25
|
+
attr_accessor :rotating_transaction_gateway_code
|
|
26
|
+
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
27
30
|
:'amount' => :'amount',
|
|
28
|
-
:'card_verification_number_token' => :'card_verification_number_token'
|
|
31
|
+
:'card_verification_number_token' => :'card_verification_number_token',
|
|
32
|
+
:'rotating_transaction_gateway_code' => :'rotating_transaction_gateway_code'
|
|
29
33
|
}
|
|
30
34
|
end
|
|
31
35
|
|
|
@@ -38,7 +42,8 @@ module UltracartClient
|
|
|
38
42
|
def self.openapi_types
|
|
39
43
|
{
|
|
40
44
|
:'amount' => :'Float',
|
|
41
|
-
:'card_verification_number_token' => :'String'
|
|
45
|
+
:'card_verification_number_token' => :'String',
|
|
46
|
+
:'rotating_transaction_gateway_code' => :'String'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
44
49
|
|
|
@@ -70,6 +75,10 @@ module UltracartClient
|
|
|
70
75
|
if attributes.key?(:'card_verification_number_token')
|
|
71
76
|
self.card_verification_number_token = attributes[:'card_verification_number_token']
|
|
72
77
|
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'rotating_transaction_gateway_code')
|
|
80
|
+
self.rotating_transaction_gateway_code = attributes[:'rotating_transaction_gateway_code']
|
|
81
|
+
end
|
|
73
82
|
end
|
|
74
83
|
|
|
75
84
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -91,7 +100,8 @@ module UltracartClient
|
|
|
91
100
|
return true if self.equal?(o)
|
|
92
101
|
self.class == o.class &&
|
|
93
102
|
amount == o.amount &&
|
|
94
|
-
card_verification_number_token == o.card_verification_number_token
|
|
103
|
+
card_verification_number_token == o.card_verification_number_token &&
|
|
104
|
+
rotating_transaction_gateway_code == o.rotating_transaction_gateway_code
|
|
95
105
|
end
|
|
96
106
|
|
|
97
107
|
# @see the `==` method
|
|
@@ -103,7 +113,7 @@ module UltracartClient
|
|
|
103
113
|
# Calculates hash code according to all attributes.
|
|
104
114
|
# @return [Integer] Hash code
|
|
105
115
|
def hash
|
|
106
|
-
[amount, card_verification_number_token].hash
|
|
116
|
+
[amount, card_verification_number_token, rotating_transaction_gateway_code].hash
|
|
107
117
|
end
|
|
108
118
|
|
|
109
119
|
# Builds the object from hash
|
|
@@ -283,7 +283,7 @@ module UltracartClient
|
|
|
283
283
|
# Check to see if the all the properties in the model are valid
|
|
284
284
|
# @return true if the model is valid
|
|
285
285
|
def valid?
|
|
286
|
-
action_validator = EnumAttributeValidator.new('String', ["file.delete", "blog_post.delete", "file.put_script", "file.put_template", "redirect.delete_batch", "experiment.start", "experiment.end", "upsell.enable", "item.attribute_batch", "item.pricing", "item.preorder", "item.variations", "item.default_page", "twilio_account.delete", "sending_domain.delete", "sequence_step.delete", "sequence_step.move", "sequence_step.enable_postcard", "segment.update", "smart_attribution.change", "smart_attribution.delete", "tracking_provider.change", "tracking_provider.clear", "tracking_html.put", "affiliate_network.change", "affiliate_network.delete", "site_seo.change", "transactional_email.update", "comms_settings.update", "comms_list.import", "postcard.test_mail", "flow.backfill", "page.move", "cli.location"])
|
|
286
|
+
action_validator = EnumAttributeValidator.new('String', ["file.delete", "blog_post.delete", "file.put_script", "file.put_template", "redirect.delete_batch", "experiment.start", "experiment.end", "upsell.enable", "item.attribute_batch", "item.pricing", "item.preorder", "item.variations", "item.default_page", "twilio_account.delete", "sending_domain.delete", "sequence_step.delete", "sequence_step.move", "sequence_step.enable_postcard", "segment.update", "smart_attribution.change", "smart_attribution.delete", "tracking_provider.change", "tracking_provider.clear", "tracking_html.put", "affiliate_network.change", "affiliate_network.delete", "site_seo.change", "transactional_email.update", "comms_settings.update", "comms_list.import", "postcard.test_mail", "flow.backfill", "page.move", "storefront_cache.flush", "cli.location"])
|
|
287
287
|
return false unless action_validator.valid?(@action)
|
|
288
288
|
true
|
|
289
289
|
end
|
|
@@ -291,7 +291,7 @@ module UltracartClient
|
|
|
291
291
|
# Custom attribute writer method checking allowed values (enum).
|
|
292
292
|
# @param [Object] action Object to be assigned
|
|
293
293
|
def action=(action)
|
|
294
|
-
validator = EnumAttributeValidator.new('String', ["file.delete", "blog_post.delete", "file.put_script", "file.put_template", "redirect.delete_batch", "experiment.start", "experiment.end", "upsell.enable", "item.attribute_batch", "item.pricing", "item.preorder", "item.variations", "item.default_page", "twilio_account.delete", "sending_domain.delete", "sequence_step.delete", "sequence_step.move", "sequence_step.enable_postcard", "segment.update", "smart_attribution.change", "smart_attribution.delete", "tracking_provider.change", "tracking_provider.clear", "tracking_html.put", "affiliate_network.change", "affiliate_network.delete", "site_seo.change", "transactional_email.update", "comms_settings.update", "comms_list.import", "postcard.test_mail", "flow.backfill", "page.move", "cli.location"])
|
|
294
|
+
validator = EnumAttributeValidator.new('String', ["file.delete", "blog_post.delete", "file.put_script", "file.put_template", "redirect.delete_batch", "experiment.start", "experiment.end", "upsell.enable", "item.attribute_batch", "item.pricing", "item.preorder", "item.variations", "item.default_page", "twilio_account.delete", "sending_domain.delete", "sequence_step.delete", "sequence_step.move", "sequence_step.enable_postcard", "segment.update", "smart_attribution.change", "smart_attribution.delete", "tracking_provider.change", "tracking_provider.clear", "tracking_html.put", "affiliate_network.change", "affiliate_network.delete", "site_seo.change", "transactional_email.update", "comms_settings.update", "comms_list.import", "postcard.test_mail", "flow.backfill", "page.move", "storefront_cache.flush", "cli.location"])
|
|
295
295
|
unless validator.valid?(action)
|
|
296
296
|
fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
|
|
297
297
|
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -814,6 +814,7 @@ require 'ultracart_api/models/order_auto_order_update_billing_url_response'
|
|
|
814
814
|
require 'ultracart_api/models/order_billing'
|
|
815
815
|
require 'ultracart_api/models/order_buysafe'
|
|
816
816
|
require 'ultracart_api/models/order_by_token_query'
|
|
817
|
+
require 'ultracart_api/models/order_cancel_request'
|
|
817
818
|
require 'ultracart_api/models/order_channel_partner'
|
|
818
819
|
require 'ultracart_api/models/order_checkout'
|
|
819
820
|
require 'ultracart_api/models/order_coupon'
|
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: 4.1.
|
|
4
|
+
version: 4.1.260
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -875,6 +875,7 @@ files:
|
|
|
875
875
|
- docs/OrderBilling.md
|
|
876
876
|
- docs/OrderBuysafe.md
|
|
877
877
|
- docs/OrderByTokenQuery.md
|
|
878
|
+
- docs/OrderCancelRequest.md
|
|
878
879
|
- docs/OrderChannelPartner.md
|
|
879
880
|
- docs/OrderCheckout.md
|
|
880
881
|
- docs/OrderCoupon.md
|
|
@@ -2395,6 +2396,7 @@ files:
|
|
|
2395
2396
|
- lib/ultracart_api/models/order_billing.rb
|
|
2396
2397
|
- lib/ultracart_api/models/order_buysafe.rb
|
|
2397
2398
|
- lib/ultracart_api/models/order_by_token_query.rb
|
|
2399
|
+
- lib/ultracart_api/models/order_cancel_request.rb
|
|
2398
2400
|
- lib/ultracart_api/models/order_channel_partner.rb
|
|
2399
2401
|
- lib/ultracart_api/models/order_checkout.rb
|
|
2400
2402
|
- lib/ultracart_api/models/order_coupon.rb
|