ultracart_api 3.4.9 → 3.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/docs/EmailWebhookEditorValuesResponse.md +14 -0
- data/docs/PaymentsConfigurationCheck.md +1 -1
- data/docs/PaymentsConfigurationCreditCard.md +4 -4
- data/docs/PaymentsConfigurationCreditCardType.md +17 -0
- data/docs/PaymentsConfigurationRestrictions.md +4 -2
- data/docs/PaymentsConfigurationRestrictionsTheme.md +10 -0
- data/docs/PaymentsConfigurationSezzle.md +1 -1
- data/docs/PaymentsConfigurationTestMethod.md +18 -0
- data/docs/StorefrontApi.md +52 -0
- data/lib/ultracart_api.rb +4 -0
- data/lib/ultracart_api/api/storefront_api.rb +59 -0
- data/lib/ultracart_api/models/email_webhook_editor_values_response.rb +243 -0
- data/lib/ultracart_api/models/payments_configuration_check.rb +4 -2
- data/lib/ultracart_api/models/payments_configuration_credit_card.rb +13 -7
- data/lib/ultracart_api/models/payments_configuration_credit_card_type.rb +309 -0
- data/lib/ultracart_api/models/payments_configuration_restrictions.rb +28 -6
- data/lib/ultracart_api/models/payments_configuration_restrictions_theme.rb +202 -0
- data/lib/ultracart_api/models/payments_configuration_sezzle.rb +4 -2
- data/lib/ultracart_api/models/payments_configuration_test_method.rb +319 -0
- data/lib/ultracart_api/version.rb +1 -1
- 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: 22500cf96913599a2955141358bb7115a7686e52a30373afed9cb3b9200df64b
|
4
|
+
data.tar.gz: fc62ff2a537bdff105cefdbc9db21d143b3e53b134ee8ad76e6505bacea6b11e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1579b1228327bd688cb49bd05b26cec61fdca94cc5515f8d0f061fd23be7ac9296c8a4cddd75cff739e56e56d0d87c62febd231a0f3016da9f90234c62bb9553
|
7
|
+
data.tar.gz: c1fc84c8068d7a37fbfe731ce5a7392aaac05122f146a2dea21bb41964bc6aa454c35aab197283891b3a01ee01332275548fc1fb55e72a9f7c8b6b5e22014f14
|
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.4.
|
10
|
+
- Package version: 3.4.13
|
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.4.
|
27
|
+
gem install ./ultracart_api-3.4.13.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.4.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.4.13.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.4.
|
35
|
+
gem 'ultracart_api', '~> 3.4.13'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -254,6 +254,7 @@ Class | Method | HTTP request | Description
|
|
254
254
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_stat_overall**](docs/StorefrontApi.md#get_email_commseq_stat_overall) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stat | Get communication sequence stats overall
|
255
255
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_step_stats**](docs/StorefrontApi.md#get_email_commseq_step_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stepStats | Get email communication sequence step stats
|
256
256
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_step_waiting**](docs/StorefrontApi.md#get_email_commseq_step_waiting) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/waiting | Get email communication sequence customers waiting at each requested step
|
257
|
+
*UltracartClient::StorefrontApi* | [**get_email_commseq_webhook_editor_values**](docs/StorefrontApi.md#get_email_commseq_webhook_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/webhookEditorValues | Get email webhook editor values
|
257
258
|
*UltracartClient::StorefrontApi* | [**get_email_commseqs**](docs/StorefrontApi.md#get_email_commseqs) | **GET** /storefront/{storefront_oid}/email/commseqs | Get email commseqs
|
258
259
|
*UltracartClient::StorefrontApi* | [**get_email_customer_editor_url**](docs/StorefrontApi.md#get_email_customer_editor_url) | **GET** /storefront/{storefront_oid}/email/customers/{email_customer_uuid}/editor_url | Get customers editor URL
|
259
260
|
*UltracartClient::StorefrontApi* | [**get_email_customers**](docs/StorefrontApi.md#get_email_customers) | **GET** /storefront/{storefront_oid}/email/customers | Get email customers
|
@@ -716,6 +717,7 @@ Class | Method | HTTP request | Description
|
|
716
717
|
- [UltracartClient::EmailVerifyTokenResponse](docs/EmailVerifyTokenResponse.md)
|
717
718
|
- [UltracartClient::EmailVerifyTokenValidateRequest](docs/EmailVerifyTokenValidateRequest.md)
|
718
719
|
- [UltracartClient::EmailVerifyTokenValidateResponse](docs/EmailVerifyTokenValidateResponse.md)
|
720
|
+
- [UltracartClient::EmailWebhookEditorValuesResponse](docs/EmailWebhookEditorValuesResponse.md)
|
719
721
|
- [UltracartClient::Error](docs/Error.md)
|
720
722
|
- [UltracartClient::ErrorResponse](docs/ErrorResponse.md)
|
721
723
|
- [UltracartClient::Experiment](docs/Experiment.md)
|
@@ -899,6 +901,7 @@ Class | Method | HTTP request | Description
|
|
899
901
|
- [UltracartClient::PaymentsConfigurationCash](docs/PaymentsConfigurationCash.md)
|
900
902
|
- [UltracartClient::PaymentsConfigurationCheck](docs/PaymentsConfigurationCheck.md)
|
901
903
|
- [UltracartClient::PaymentsConfigurationCreditCard](docs/PaymentsConfigurationCreditCard.md)
|
904
|
+
- [UltracartClient::PaymentsConfigurationCreditCardType](docs/PaymentsConfigurationCreditCardType.md)
|
902
905
|
- [UltracartClient::PaymentsConfigurationEcheck](docs/PaymentsConfigurationEcheck.md)
|
903
906
|
- [UltracartClient::PaymentsConfigurationLoanHero](docs/PaymentsConfigurationLoanHero.md)
|
904
907
|
- [UltracartClient::PaymentsConfigurationMoneyOrder](docs/PaymentsConfigurationMoneyOrder.md)
|
@@ -907,7 +910,9 @@ Class | Method | HTTP request | Description
|
|
907
910
|
- [UltracartClient::PaymentsConfigurationQuoteRequest](docs/PaymentsConfigurationQuoteRequest.md)
|
908
911
|
- [UltracartClient::PaymentsConfigurationResponse](docs/PaymentsConfigurationResponse.md)
|
909
912
|
- [UltracartClient::PaymentsConfigurationRestrictions](docs/PaymentsConfigurationRestrictions.md)
|
913
|
+
- [UltracartClient::PaymentsConfigurationRestrictionsTheme](docs/PaymentsConfigurationRestrictionsTheme.md)
|
910
914
|
- [UltracartClient::PaymentsConfigurationSezzle](docs/PaymentsConfigurationSezzle.md)
|
915
|
+
- [UltracartClient::PaymentsConfigurationTestMethod](docs/PaymentsConfigurationTestMethod.md)
|
911
916
|
- [UltracartClient::PaymentsConfigurationWePay](docs/PaymentsConfigurationWePay.md)
|
912
917
|
- [UltracartClient::PaymentsConfigurationWireTransfer](docs/PaymentsConfigurationWireTransfer.md)
|
913
918
|
- [UltracartClient::PaymentsThemeTransactionType](docs/PaymentsThemeTransactionType.md)
|
@@ -1109,6 +1114,8 @@ Not every change is committed to every SDK.
|
|
1109
1114
|
|
1110
1115
|
| Version | Date | Comments |
|
1111
1116
|
| --: | :-: | --- |
|
1117
|
+
| 3.4.13 | 08/10/2021 | configuration api - changed some field types form string to number |
|
1118
|
+
| 3.4.12 | 08/10/2021 | email engine - added webhook editor values for internal ui |
|
1112
1119
|
| 3.4.9 | 08/05/2021 | configuration api - updated annotations for method names |
|
1113
1120
|
| 3.4.8 | 08/04/2021 | configuration api - payments config refactoring |
|
1114
1121
|
| 3.4.7 | 08/04/2021 | esp folders for lists/segments |
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# UltracartClient::EmailWebhookEditorValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**available_expansions** | **Array<String>** | | [optional]
|
7
|
+
**available_tokens** | **Array<String>** | | [optional]
|
8
|
+
**error** | [**Error**](Error.md) | | [optional]
|
9
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
10
|
+
**rest_object_type** | **String** | | [optional]
|
11
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
12
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
13
|
+
|
14
|
+
|
@@ -15,6 +15,6 @@ Name | Type | Description | Notes
|
|
15
15
|
**mail_to_postal_code** | **String** | MailTo postal code | [optional]
|
16
16
|
**mail_to_store** | **String** | MailTo store | [optional]
|
17
17
|
**restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
|
18
|
-
**test_methods** | **
|
18
|
+
**test_methods** | [**Array<PaymentsConfigurationTestMethod>**](PaymentsConfigurationTestMethod.md) | Test methods for this payment method | [optional]
|
19
19
|
|
20
20
|
|
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
|
|
8
8
|
**charge_during_checkout** | **BOOLEAN** | If false, order will be accepted and placed into Accounts Receivable without charging card first | [optional]
|
9
9
|
**collect_cvv2** | **BOOLEAN** | UltraCart will require customer to enter cvv if this is true | [optional]
|
10
10
|
**configured_gateway_details** | **String** | Human readable description of the credit card gateway currently configured | [optional]
|
11
|
-
**failed_attempts** | **
|
11
|
+
**failed_attempts** | **Integer** | The number of failed attempts before the order is placed into Accounts Receivable for manual intervention | [optional]
|
12
12
|
**hide_connect_single_gateway** | **BOOLEAN** | This internal flag aids the UI in determining which buttons to show. | [optional]
|
13
|
-
**restrictions** | **
|
13
|
+
**restrictions** | [**Array<PaymentsConfigurationRestrictions>**](PaymentsConfigurationRestrictions.md) | Restrictions for this payment method | [optional]
|
14
14
|
**send_customer_billing_update_on_decline** | **BOOLEAN** | UltraCart will send customers emails to update their credit card if the card is declined | [optional]
|
15
|
-
**supported_cards** | **
|
16
|
-
**test_methods** | **
|
15
|
+
**supported_cards** | [**Array<PaymentsConfigurationCreditCardType>**](PaymentsConfigurationCreditCardType.md) | A list of credit cards the merchant wishes to accept. | [optional]
|
16
|
+
**test_methods** | [**Array<PaymentsConfigurationTestMethod>**](PaymentsConfigurationTestMethod.md) | An array of test methods for placing test orders. The cards defined here may be real or fake, but any order placed with them will be marked as Test orders | [optional]
|
17
17
|
|
18
18
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# UltracartClient::PaymentsConfigurationCreditCardType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**accounting_code** | **String** | Optional field used for Quickbooks integrations to match this credit card with the corresponding payment type in Quickbooks | [optional]
|
7
|
+
**card_type_icon** | **String** | Internally used icon information for this card type | [optional]
|
8
|
+
**credit_card** | **String** | Credit card type | [optional]
|
9
|
+
**deposit_to_account** | **String** | The name of the account to deposit funds | [optional]
|
10
|
+
**enabled** | **BOOLEAN** | If true, this card type will be accepted during checkout | [optional]
|
11
|
+
**processing_fee** | **Float** | Optional additional fee applied to order for this card | [optional]
|
12
|
+
**processing_percentage** | **Float** | Optional additional fee applied to order for this card | [optional]
|
13
|
+
**surcharge_accounting_code** | **String** | Optional field. If integrated with Quickbooks, this code will be used when informing Quickbooks about any surcharges applied to orders | [optional]
|
14
|
+
**transaction_fee** | **Float** | An optional additional fee to charge the customer for using this card. | [optional]
|
15
|
+
**transaction_percentage** | **Float** | An optional transaction percentage to charge the customer for using this card | [optional]
|
16
|
+
|
17
|
+
|
@@ -3,8 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**
|
6
|
+
**descriptions** | **Array<String>** | | [optional]
|
7
|
+
**maximum_subtotal** | **Float** | Maximum subtotal | [optional]
|
8
|
+
**minimum_subtotal** | **Float** | Minimum subtotal | [optional]
|
8
9
|
**payment_method** | **String** | Payment method | [optional]
|
9
10
|
**restriction_alaska_hawaii** | **String** | Alaska and Hawaii restriction | [optional]
|
10
11
|
**restriction_apo_fpo** | **String** | APO/FPO restriction | [optional]
|
@@ -15,5 +16,6 @@ Name | Type | Description | Notes
|
|
15
16
|
**restriction_po_box** | **String** | PO Box restriction | [optional]
|
16
17
|
**restriction_puerto_rico** | **String** | Puerto Rico restriction | [optional]
|
17
18
|
**restriction_us_territories** | **String** | US Territories restriction | [optional]
|
19
|
+
**themes** | [**Array<PaymentsConfigurationRestrictionsTheme>**](PaymentsConfigurationRestrictionsTheme.md) | | [optional]
|
18
20
|
|
19
21
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# UltracartClient::PaymentsConfigurationRestrictionsTheme
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**code** | **String** | | [optional]
|
7
|
+
**restriction** | **String** | | [optional]
|
8
|
+
**store_front_host_name** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**business_id** | **String** | Business ID | [optional]
|
9
9
|
**deposit_to_account** | **String** | Optional Quickbooks Deposit to Account value | [optional]
|
10
10
|
**environment** | **String** | Sezzle environment | [optional]
|
11
|
-
**environments** | **
|
11
|
+
**environments** | **Array<String>** | List of environments possible | [optional]
|
12
12
|
**private_api_key** | **String** | Private API key | [optional]
|
13
13
|
**public_api_key** | **String** | Public API key | [optional]
|
14
14
|
**restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::PaymentsConfigurationTestMethod
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**bank_account_number** | **String** | Bank account number | [optional]
|
7
|
+
**bank_routing_number** | **String** | Bank routing number | [optional]
|
8
|
+
**credit_card_number** | **String** | Credit card number | [optional]
|
9
|
+
**credit_card_number_existing** | **String** | The existing credit card number | [optional]
|
10
|
+
**description** | **String** | Description | [optional]
|
11
|
+
**payment_action** | **String** | Payment action | [optional]
|
12
|
+
**payment_method** | **String** | Payment method | [optional]
|
13
|
+
**payment_method_test_oid** | **Integer** | Payment method test oid | [optional]
|
14
|
+
**skip_affiliate_transaction** | **BOOLEAN** | Skip affiliate transaction | [optional]
|
15
|
+
**skip_conversion_pixels** | **BOOLEAN** | If true, skips recording any conversion pixels to avoid sending test orders to your analysis sites | [optional]
|
16
|
+
**skip_fraud_filter** | **BOOLEAN** | Skip fraud filter | [optional]
|
17
|
+
|
18
|
+
|
data/docs/StorefrontApi.md
CHANGED
@@ -44,6 +44,7 @@ Method | HTTP request | Description
|
|
44
44
|
[**get_email_commseq_stat_overall**](StorefrontApi.md#get_email_commseq_stat_overall) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stat | Get communication sequence stats overall
|
45
45
|
[**get_email_commseq_step_stats**](StorefrontApi.md#get_email_commseq_step_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/stepStats | Get email communication sequence step stats
|
46
46
|
[**get_email_commseq_step_waiting**](StorefrontApi.md#get_email_commseq_step_waiting) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/waiting | Get email communication sequence customers waiting at each requested step
|
47
|
+
[**get_email_commseq_webhook_editor_values**](StorefrontApi.md#get_email_commseq_webhook_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/webhookEditorValues | Get email webhook editor values
|
47
48
|
[**get_email_commseqs**](StorefrontApi.md#get_email_commseqs) | **GET** /storefront/{storefront_oid}/email/commseqs | Get email commseqs
|
48
49
|
[**get_email_customer_editor_url**](StorefrontApi.md#get_email_customer_editor_url) | **GET** /storefront/{storefront_oid}/email/customers/{email_customer_uuid}/editor_url | Get customers editor URL
|
49
50
|
[**get_email_customers**](StorefrontApi.md#get_email_customers) | **GET** /storefront/{storefront_oid}/email/customers | Get email customers
|
@@ -2193,6 +2194,57 @@ Name | Type | Description | Notes
|
|
2193
2194
|
|
2194
2195
|
|
2195
2196
|
|
2197
|
+
# **get_email_commseq_webhook_editor_values**
|
2198
|
+
> EmailWebhookEditorValuesResponse get_email_commseq_webhook_editor_values(storefront_oid, commseq_uuid)
|
2199
|
+
|
2200
|
+
Get email webhook editor values
|
2201
|
+
|
2202
|
+
### Example
|
2203
|
+
```ruby
|
2204
|
+
# load the gem
|
2205
|
+
require 'ultracart_api'
|
2206
|
+
|
2207
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
2208
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
2209
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
2210
|
+
|
2211
|
+
|
2212
|
+
storefront_oid = 56 # Integer |
|
2213
|
+
|
2214
|
+
commseq_uuid = 'commseq_uuid_example' # String |
|
2215
|
+
|
2216
|
+
|
2217
|
+
begin
|
2218
|
+
#Get email webhook editor values
|
2219
|
+
result = api_instance.get_email_commseq_webhook_editor_values(storefront_oid, commseq_uuid)
|
2220
|
+
p result
|
2221
|
+
rescue UltracartClient::ApiError => e
|
2222
|
+
puts "Exception when calling StorefrontApi->get_email_commseq_webhook_editor_values: #{e}"
|
2223
|
+
end
|
2224
|
+
```
|
2225
|
+
|
2226
|
+
### Parameters
|
2227
|
+
|
2228
|
+
Name | Type | Description | Notes
|
2229
|
+
------------- | ------------- | ------------- | -------------
|
2230
|
+
**storefront_oid** | **Integer**| |
|
2231
|
+
**commseq_uuid** | **String**| |
|
2232
|
+
|
2233
|
+
### Return type
|
2234
|
+
|
2235
|
+
[**EmailWebhookEditorValuesResponse**](EmailWebhookEditorValuesResponse.md)
|
2236
|
+
|
2237
|
+
### Authorization
|
2238
|
+
|
2239
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
2240
|
+
|
2241
|
+
### HTTP request headers
|
2242
|
+
|
2243
|
+
- **Content-Type**: application/json
|
2244
|
+
- **Accept**: application/json
|
2245
|
+
|
2246
|
+
|
2247
|
+
|
2196
2248
|
# **get_email_commseqs**
|
2197
2249
|
> EmailCommseqsResponse get_email_commseqs(storefront_oid)
|
2198
2250
|
|
data/lib/ultracart_api.rb
CHANGED
@@ -315,6 +315,7 @@ require 'ultracart_api/models/email_verify_token_request'
|
|
315
315
|
require 'ultracart_api/models/email_verify_token_response'
|
316
316
|
require 'ultracart_api/models/email_verify_token_validate_request'
|
317
317
|
require 'ultracart_api/models/email_verify_token_validate_response'
|
318
|
+
require 'ultracart_api/models/email_webhook_editor_values_response'
|
318
319
|
require 'ultracart_api/models/error'
|
319
320
|
require 'ultracart_api/models/error_response'
|
320
321
|
require 'ultracart_api/models/experiment'
|
@@ -498,6 +499,7 @@ require 'ultracart_api/models/payments_configuration_cod'
|
|
498
499
|
require 'ultracart_api/models/payments_configuration_cash'
|
499
500
|
require 'ultracart_api/models/payments_configuration_check'
|
500
501
|
require 'ultracart_api/models/payments_configuration_credit_card'
|
502
|
+
require 'ultracart_api/models/payments_configuration_credit_card_type'
|
501
503
|
require 'ultracart_api/models/payments_configuration_echeck'
|
502
504
|
require 'ultracart_api/models/payments_configuration_loan_hero'
|
503
505
|
require 'ultracart_api/models/payments_configuration_money_order'
|
@@ -506,7 +508,9 @@ require 'ultracart_api/models/payments_configuration_purchase_order'
|
|
506
508
|
require 'ultracart_api/models/payments_configuration_quote_request'
|
507
509
|
require 'ultracart_api/models/payments_configuration_response'
|
508
510
|
require 'ultracart_api/models/payments_configuration_restrictions'
|
511
|
+
require 'ultracart_api/models/payments_configuration_restrictions_theme'
|
509
512
|
require 'ultracart_api/models/payments_configuration_sezzle'
|
513
|
+
require 'ultracart_api/models/payments_configuration_test_method'
|
510
514
|
require 'ultracart_api/models/payments_configuration_we_pay'
|
511
515
|
require 'ultracart_api/models/payments_configuration_wire_transfer'
|
512
516
|
require 'ultracart_api/models/payments_theme_transaction_type'
|
@@ -2369,6 +2369,65 @@ module UltracartClient
|
|
2369
2369
|
end
|
2370
2370
|
return data, status_code, headers
|
2371
2371
|
end
|
2372
|
+
# Get email webhook editor values
|
2373
|
+
# @param storefront_oid
|
2374
|
+
# @param commseq_uuid
|
2375
|
+
# @param [Hash] opts the optional parameters
|
2376
|
+
# @return [EmailWebhookEditorValuesResponse]
|
2377
|
+
def get_email_commseq_webhook_editor_values(storefront_oid, commseq_uuid, opts = {})
|
2378
|
+
data, _status_code, _headers = get_email_commseq_webhook_editor_values_with_http_info(storefront_oid, commseq_uuid, opts)
|
2379
|
+
data
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
# Get email webhook editor values
|
2383
|
+
# @param storefront_oid
|
2384
|
+
# @param commseq_uuid
|
2385
|
+
# @param [Hash] opts the optional parameters
|
2386
|
+
# @return [Array<(EmailWebhookEditorValuesResponse, Fixnum, Hash)>] EmailWebhookEditorValuesResponse data, response status code and response headers
|
2387
|
+
def get_email_commseq_webhook_editor_values_with_http_info(storefront_oid, commseq_uuid, opts = {})
|
2388
|
+
if @api_client.config.debugging
|
2389
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_commseq_webhook_editor_values ...'
|
2390
|
+
end
|
2391
|
+
# verify the required parameter 'storefront_oid' is set
|
2392
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
2393
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_commseq_webhook_editor_values"
|
2394
|
+
end
|
2395
|
+
# verify the required parameter 'commseq_uuid' is set
|
2396
|
+
if @api_client.config.client_side_validation && commseq_uuid.nil?
|
2397
|
+
fail ArgumentError, "Missing the required parameter 'commseq_uuid' when calling StorefrontApi.get_email_commseq_webhook_editor_values"
|
2398
|
+
end
|
2399
|
+
# resource path
|
2400
|
+
local_var_path = '/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/webhookEditorValues'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s).sub('{' + 'commseq_uuid' + '}', commseq_uuid.to_s)
|
2401
|
+
|
2402
|
+
# query parameters
|
2403
|
+
query_params = {}
|
2404
|
+
|
2405
|
+
# header parameters
|
2406
|
+
header_params = {}
|
2407
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2408
|
+
# HTTP header 'Accept' (if needed)
|
2409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2410
|
+
# HTTP header 'Content-Type'
|
2411
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2412
|
+
|
2413
|
+
# form parameters
|
2414
|
+
form_params = {}
|
2415
|
+
|
2416
|
+
# http body (model)
|
2417
|
+
post_body = nil
|
2418
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
2419
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2420
|
+
:header_params => header_params,
|
2421
|
+
:query_params => query_params,
|
2422
|
+
:form_params => form_params,
|
2423
|
+
:body => post_body,
|
2424
|
+
:auth_names => auth_names,
|
2425
|
+
:return_type => 'EmailWebhookEditorValuesResponse')
|
2426
|
+
if @api_client.config.debugging
|
2427
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_email_commseq_webhook_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2428
|
+
end
|
2429
|
+
return data, status_code, headers
|
2430
|
+
end
|
2372
2431
|
# Get email commseqs
|
2373
2432
|
# @param storefront_oid
|
2374
2433
|
# @param [Hash] opts the optional parameters
|
@@ -0,0 +1,243 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class EmailWebhookEditorValuesResponse
|
17
|
+
attr_accessor :available_expansions
|
18
|
+
|
19
|
+
attr_accessor :available_tokens
|
20
|
+
|
21
|
+
attr_accessor :error
|
22
|
+
|
23
|
+
attr_accessor :metadata
|
24
|
+
|
25
|
+
attr_accessor :rest_object_type
|
26
|
+
|
27
|
+
# Indicates if API call was successful
|
28
|
+
attr_accessor :success
|
29
|
+
|
30
|
+
attr_accessor :warning
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'available_expansions' => :'available_expansions',
|
36
|
+
:'available_tokens' => :'available_tokens',
|
37
|
+
:'error' => :'error',
|
38
|
+
:'metadata' => :'metadata',
|
39
|
+
:'rest_object_type' => :'rest_object_type',
|
40
|
+
:'success' => :'success',
|
41
|
+
:'warning' => :'warning'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'available_expansions' => :'Array<String>',
|
49
|
+
:'available_tokens' => :'Array<String>',
|
50
|
+
:'error' => :'Error',
|
51
|
+
:'metadata' => :'ResponseMetadata',
|
52
|
+
:'rest_object_type' => :'String',
|
53
|
+
:'success' => :'BOOLEAN',
|
54
|
+
:'warning' => :'Warning'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
return unless attributes.is_a?(Hash)
|
62
|
+
|
63
|
+
# convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
65
|
+
|
66
|
+
if attributes.has_key?(:'available_expansions')
|
67
|
+
if (value = attributes[:'available_expansions']).is_a?(Array)
|
68
|
+
self.available_expansions = value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'available_tokens')
|
73
|
+
if (value = attributes[:'available_tokens']).is_a?(Array)
|
74
|
+
self.available_tokens = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'error')
|
79
|
+
self.error = attributes[:'error']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'metadata')
|
83
|
+
self.metadata = attributes[:'metadata']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'rest_object_type')
|
87
|
+
self.rest_object_type = attributes[:'rest_object_type']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.has_key?(:'success')
|
91
|
+
self.success = attributes[:'success']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'warning')
|
95
|
+
self.warning = attributes[:'warning']
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
100
|
+
# @return Array for valid properties with the reasons
|
101
|
+
def list_invalid_properties
|
102
|
+
invalid_properties = Array.new
|
103
|
+
invalid_properties
|
104
|
+
end
|
105
|
+
|
106
|
+
# Check to see if the all the properties in the model are valid
|
107
|
+
# @return true if the model is valid
|
108
|
+
def valid?
|
109
|
+
true
|
110
|
+
end
|
111
|
+
|
112
|
+
# Checks equality by comparing each attribute.
|
113
|
+
# @param [Object] Object to be compared
|
114
|
+
def ==(o)
|
115
|
+
return true if self.equal?(o)
|
116
|
+
self.class == o.class &&
|
117
|
+
available_expansions == o.available_expansions &&
|
118
|
+
available_tokens == o.available_tokens &&
|
119
|
+
error == o.error &&
|
120
|
+
metadata == o.metadata &&
|
121
|
+
rest_object_type == o.rest_object_type &&
|
122
|
+
success == o.success &&
|
123
|
+
warning == o.warning
|
124
|
+
end
|
125
|
+
|
126
|
+
# @see the `==` method
|
127
|
+
# @param [Object] Object to be compared
|
128
|
+
def eql?(o)
|
129
|
+
self == o
|
130
|
+
end
|
131
|
+
|
132
|
+
# Calculates hash code according to all attributes.
|
133
|
+
# @return [Fixnum] Hash code
|
134
|
+
def hash
|
135
|
+
[available_expansions, available_tokens, error, metadata, rest_object_type, success, warning].hash
|
136
|
+
end
|
137
|
+
|
138
|
+
# Builds the object from hash
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
140
|
+
# @return [Object] Returns the model itself
|
141
|
+
def build_from_hash(attributes)
|
142
|
+
return nil unless attributes.is_a?(Hash)
|
143
|
+
self.class.swagger_types.each_pair do |key, type|
|
144
|
+
if type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
149
|
+
end
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
153
|
+
end
|
154
|
+
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deserializes the data based on type
|
159
|
+
# @param string type Data type
|
160
|
+
# @param string value Value to be deserialized
|
161
|
+
# @return [Object] Deserialized data
|
162
|
+
def _deserialize(type, value)
|
163
|
+
case type.to_sym
|
164
|
+
when :DateTime
|
165
|
+
DateTime.parse(value)
|
166
|
+
when :Date
|
167
|
+
Date.parse(value)
|
168
|
+
when :String
|
169
|
+
value.to_s
|
170
|
+
when :Integer
|
171
|
+
value.to_i
|
172
|
+
when :Float
|
173
|
+
value.to_f
|
174
|
+
when :BOOLEAN
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
+
true
|
177
|
+
else
|
178
|
+
false
|
179
|
+
end
|
180
|
+
when :Object
|
181
|
+
# generic object (usually a Hash), return directly
|
182
|
+
value
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each do |k, v|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
else # model
|
195
|
+
temp_model = UltracartClient.const_get(type).new
|
196
|
+
temp_model.build_from_hash(value)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the string representation of the object
|
201
|
+
# @return [String] String presentation of the object
|
202
|
+
def to_s
|
203
|
+
to_hash.to_s
|
204
|
+
end
|
205
|
+
|
206
|
+
# to_body is an alias to to_hash (backward compatibility)
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_body
|
209
|
+
to_hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the object in the form of hash
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_hash
|
215
|
+
hash = {}
|
216
|
+
self.class.attribute_map.each_pair do |attr, param|
|
217
|
+
value = self.send(attr)
|
218
|
+
next if value.nil?
|
219
|
+
hash[param] = _to_hash(value)
|
220
|
+
end
|
221
|
+
hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Outputs non-array value in the form of hash
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
226
|
+
# @param [Object] value Any valid value
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
228
|
+
def _to_hash(value)
|
229
|
+
if value.is_a?(Array)
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
231
|
+
elsif value.is_a?(Hash)
|
232
|
+
{}.tap do |hash|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
234
|
+
end
|
235
|
+
elsif value.respond_to? :to_hash
|
236
|
+
value.to_hash
|
237
|
+
else
|
238
|
+
value
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
end
|
243
|
+
end
|