ultracart_api 4.1.111 → 4.1.112
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/AnrokConfig.md +24 -0
- data/docs/TaxApi.md +158 -0
- data/docs/TaxProviderAnrok.md +24 -0
- data/docs/TaxProvidersResponse.md +2 -0
- data/lib/ultracart_api/api/tax_api.rb +185 -0
- data/lib/ultracart_api/models/anrok_config.rb +250 -0
- data/lib/ultracart_api/models/tax_provider_anrok.rb +249 -0
- data/lib/ultracart_api/models/tax_providers_response.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +2 -0
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48c891ae611a0ccf5d311502bec06ddd80ae639f1b70b3eb17988d6ef855eb07
|
|
4
|
+
data.tar.gz: 3d9ccd71e26ba84fa556a710231b11d22ad2e5eb104c0d54692cbeb4850320f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbd07d6f3ce2c1275ab619b4940436d534e92bd7a1b4688d00aa77b736247fb89b3204bfabf54b9f92b0a506fa37b5514708962798a00cfe657e46b4d2187d1a
|
|
7
|
+
data.tar.gz: 4d20ab8b4541203bc8b7002523274044aa05492adc49d286ef420095119dffd48d8ffc95fc1a136d582a5bb2fb1622ca315705523823b01d7330362e8c319669
|
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.112
|
|
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.112'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -653,6 +653,8 @@ Class | Method | HTTP request | Description
|
|
|
653
653
|
*UltracartClient::TaxApi* | [**delete_tax_provider_self_county**](docs/TaxApi.md#delete_tax_provider_self_county) | **DELETE** /tax/providers/self/county/{county} | Deletes a Self tax provider county
|
|
654
654
|
*UltracartClient::TaxApi* | [**delete_tax_provider_self_postal_code**](docs/TaxApi.md#delete_tax_provider_self_postal_code) | **DELETE** /tax/providers/self/postalCode/{postal_code} | Deletes a Self tax provider postalCode
|
|
655
655
|
*UltracartClient::TaxApi* | [**delete_tax_provider_self_state**](docs/TaxApi.md#delete_tax_provider_self_state) | **DELETE** /tax/providers/self/state/{stateCode} | Deletes a Self tax provider state
|
|
656
|
+
*UltracartClient::TaxApi* | [**get_tax_provider_anrok**](docs/TaxApi.md#get_tax_provider_anrok) | **GET** /tax/providers/anrok | Retrieve the Anrok tax provider
|
|
657
|
+
*UltracartClient::TaxApi* | [**get_tax_provider_anrok_test**](docs/TaxApi.md#get_tax_provider_anrok_test) | **GET** /tax/providers/anrok/test | Attempts to connect to Anrok and returns back the response
|
|
656
658
|
*UltracartClient::TaxApi* | [**get_tax_provider_avalara**](docs/TaxApi.md#get_tax_provider_avalara) | **GET** /tax/providers/avalara | Retrieve the Avalara tax provider
|
|
657
659
|
*UltracartClient::TaxApi* | [**get_tax_provider_avalara_companies**](docs/TaxApi.md#get_tax_provider_avalara_companies) | **POST** /tax/providers/avalara/companies | Returns Avalara Tax companies configured by the merchant
|
|
658
660
|
*UltracartClient::TaxApi* | [**get_tax_provider_avalara_test**](docs/TaxApi.md#get_tax_provider_avalara_test) | **GET** /tax/providers/avalara/test | Attempts to connect to Avalara and returns back the response
|
|
@@ -666,6 +668,7 @@ Class | Method | HTTP request | Description
|
|
|
666
668
|
*UltracartClient::TaxApi* | [**get_tax_provider_ultra_cart**](docs/TaxApi.md#get_tax_provider_ultra_cart) | **GET** /tax/providers/ultracart | Retrieve the UltraCart tax provider
|
|
667
669
|
*UltracartClient::TaxApi* | [**get_tax_providers**](docs/TaxApi.md#get_tax_providers) | **GET** /tax/providers | Retrieve tax methods
|
|
668
670
|
*UltracartClient::TaxApi* | [**set_active_tax_provider**](docs/TaxApi.md#set_active_tax_provider) | **POST** /tax/providers/setActive/{providerName} | Toggle a tax provider to active
|
|
671
|
+
*UltracartClient::TaxApi* | [**update_tax_provider_anrok**](docs/TaxApi.md#update_tax_provider_anrok) | **POST** /tax/providers/anrok | Update the Anrok tax provider
|
|
669
672
|
*UltracartClient::TaxApi* | [**update_tax_provider_avalara**](docs/TaxApi.md#update_tax_provider_avalara) | **POST** /tax/providers/avalara | Update the Avalara tax provider
|
|
670
673
|
*UltracartClient::TaxApi* | [**update_tax_provider_self**](docs/TaxApi.md#update_tax_provider_self) | **POST** /tax/providers/self | Update the Self tax provider
|
|
671
674
|
*UltracartClient::TaxApi* | [**update_tax_provider_self_city**](docs/TaxApi.md#update_tax_provider_self_city) | **POST** /tax/providers/self/city/{city} | Updates a Self tax provider city
|
|
@@ -739,6 +742,7 @@ Class | Method | HTTP request | Description
|
|
|
739
742
|
- [UltracartClient::AffiliateTierRelationship](docs/AffiliateTierRelationship.md)
|
|
740
743
|
- [UltracartClient::AffiliatesResponse](docs/AffiliatesResponse.md)
|
|
741
744
|
- [UltracartClient::AgentSummary](docs/AgentSummary.md)
|
|
745
|
+
- [UltracartClient::AnrokConfig](docs/AnrokConfig.md)
|
|
742
746
|
- [UltracartClient::ApiUserApplicationProfile](docs/ApiUserApplicationProfile.md)
|
|
743
747
|
- [UltracartClient::ApplyLibraryItemRequest](docs/ApplyLibraryItemRequest.md)
|
|
744
748
|
- [UltracartClient::ApplyLibraryItemResponse](docs/ApplyLibraryItemResponse.md)
|
|
@@ -1669,6 +1673,7 @@ Class | Method | HTTP request | Description
|
|
|
1669
1673
|
- [UltracartClient::TaxJarConfig](docs/TaxJarConfig.md)
|
|
1670
1674
|
- [UltracartClient::TaxPostalCode](docs/TaxPostalCode.md)
|
|
1671
1675
|
- [UltracartClient::TaxProviderActivateResult](docs/TaxProviderActivateResult.md)
|
|
1676
|
+
- [UltracartClient::TaxProviderAnrok](docs/TaxProviderAnrok.md)
|
|
1672
1677
|
- [UltracartClient::TaxProviderAvalara](docs/TaxProviderAvalara.md)
|
|
1673
1678
|
- [UltracartClient::TaxProviderAvalaraCompaniesResult](docs/TaxProviderAvalaraCompaniesResult.md)
|
|
1674
1679
|
- [UltracartClient::TaxProviderAvalaraCompany](docs/TaxProviderAvalaraCompany.md)
|
|
@@ -1815,6 +1820,7 @@ Not every change is committed to every SDK.
|
|
|
1815
1820
|
|
|
1816
1821
|
| Version | Date | Comments |
|
|
1817
1822
|
| --: | :-: | --- |
|
|
1823
|
+
| 4.1.112 | 07/08/2026 | tax - added anrok tax provider |
|
|
1818
1824
|
| 4.1.111 | 07/08/2026 | storefront - additional email dispatch log methods |
|
|
1819
1825
|
| 4.1.110 | 07/06/2026 | Conversation - CRM message type constant for tool call |
|
|
1820
1826
|
| 4.1.109 | 07/03/2026 | bulk import endpoints (alpha) |
|
data/docs/AnrokConfig.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::AnrokConfig
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **api_key** | **String** | Anrok API key | [optional] |
|
|
8
|
+
| **estimate_only** | **Boolean** | True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok | [optional] |
|
|
9
|
+
| **last_test_dts** | **String** | Date/time of the connection test to Anrok | [optional] |
|
|
10
|
+
| **test_results** | **String** | Test results of the last connection test to Anrok | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::AnrokConfig.new(
|
|
18
|
+
api_key: null,
|
|
19
|
+
estimate_only: null,
|
|
20
|
+
last_test_dts: null,
|
|
21
|
+
test_results: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/TaxApi.md
CHANGED
|
@@ -9,6 +9,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
9
9
|
| [**delete_tax_provider_self_county**](TaxApi.md#delete_tax_provider_self_county) | **DELETE** /tax/providers/self/county/{county} | Deletes a Self tax provider county |
|
|
10
10
|
| [**delete_tax_provider_self_postal_code**](TaxApi.md#delete_tax_provider_self_postal_code) | **DELETE** /tax/providers/self/postalCode/{postal_code} | Deletes a Self tax provider postalCode |
|
|
11
11
|
| [**delete_tax_provider_self_state**](TaxApi.md#delete_tax_provider_self_state) | **DELETE** /tax/providers/self/state/{stateCode} | Deletes a Self tax provider state |
|
|
12
|
+
| [**get_tax_provider_anrok**](TaxApi.md#get_tax_provider_anrok) | **GET** /tax/providers/anrok | Retrieve the Anrok tax provider |
|
|
13
|
+
| [**get_tax_provider_anrok_test**](TaxApi.md#get_tax_provider_anrok_test) | **GET** /tax/providers/anrok/test | Attempts to connect to Anrok and returns back the response |
|
|
12
14
|
| [**get_tax_provider_avalara**](TaxApi.md#get_tax_provider_avalara) | **GET** /tax/providers/avalara | Retrieve the Avalara tax provider |
|
|
13
15
|
| [**get_tax_provider_avalara_companies**](TaxApi.md#get_tax_provider_avalara_companies) | **POST** /tax/providers/avalara/companies | Returns Avalara Tax companies configured by the merchant |
|
|
14
16
|
| [**get_tax_provider_avalara_test**](TaxApi.md#get_tax_provider_avalara_test) | **GET** /tax/providers/avalara/test | Attempts to connect to Avalara and returns back the response |
|
|
@@ -22,6 +24,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
22
24
|
| [**get_tax_provider_ultra_cart**](TaxApi.md#get_tax_provider_ultra_cart) | **GET** /tax/providers/ultracart | Retrieve the UltraCart tax provider |
|
|
23
25
|
| [**get_tax_providers**](TaxApi.md#get_tax_providers) | **GET** /tax/providers | Retrieve tax methods |
|
|
24
26
|
| [**set_active_tax_provider**](TaxApi.md#set_active_tax_provider) | **POST** /tax/providers/setActive/{providerName} | Toggle a tax provider to active |
|
|
27
|
+
| [**update_tax_provider_anrok**](TaxApi.md#update_tax_provider_anrok) | **POST** /tax/providers/anrok | Update the Anrok tax provider |
|
|
25
28
|
| [**update_tax_provider_avalara**](TaxApi.md#update_tax_provider_avalara) | **POST** /tax/providers/avalara | Update the Avalara tax provider |
|
|
26
29
|
| [**update_tax_provider_self**](TaxApi.md#update_tax_provider_self) | **POST** /tax/providers/self | Update the Self tax provider |
|
|
27
30
|
| [**update_tax_provider_self_city**](TaxApi.md#update_tax_provider_self_city) | **POST** /tax/providers/self/city/{city} | Updates a Self tax provider city |
|
|
@@ -309,6 +312,108 @@ nil (empty response body)
|
|
|
309
312
|
- **Accept**: application/json
|
|
310
313
|
|
|
311
314
|
|
|
315
|
+
## get_tax_provider_anrok
|
|
316
|
+
|
|
317
|
+
> <TaxProviderAnrok> get_tax_provider_anrok
|
|
318
|
+
|
|
319
|
+
Retrieve the Anrok tax provider
|
|
320
|
+
|
|
321
|
+
Retrieves the Anrok tax provider.
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Examples
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
(No example for this operation).
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
#### Using the get_tax_provider_anrok_with_http_info variant
|
|
331
|
+
|
|
332
|
+
This returns an Array which contains the response data, status code and headers.
|
|
333
|
+
|
|
334
|
+
> <Array(<TaxProviderAnrok>, Integer, Hash)> get_tax_provider_anrok_with_http_info
|
|
335
|
+
|
|
336
|
+
```ruby
|
|
337
|
+
begin
|
|
338
|
+
# Retrieve the Anrok tax provider
|
|
339
|
+
data, status_code, headers = api_instance.get_tax_provider_anrok_with_http_info
|
|
340
|
+
p status_code # => 2xx
|
|
341
|
+
p headers # => { ... }
|
|
342
|
+
p data # => <TaxProviderAnrok>
|
|
343
|
+
rescue UltracartClient::ApiError => e
|
|
344
|
+
puts "Error when calling TaxApi->get_tax_provider_anrok_with_http_info: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Parameters
|
|
349
|
+
|
|
350
|
+
This endpoint does not need any parameter.
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
[**TaxProviderAnrok**](TaxProviderAnrok.md)
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: Not defined
|
|
363
|
+
- **Accept**: application/json
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
## get_tax_provider_anrok_test
|
|
367
|
+
|
|
368
|
+
> <TaxProviderTestResult> get_tax_provider_anrok_test
|
|
369
|
+
|
|
370
|
+
Attempts to connect to Anrok and returns back the response
|
|
371
|
+
|
|
372
|
+
Attempts to connect to Anrok and returns back the response.
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Examples
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
(No example for this operation).
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
#### Using the get_tax_provider_anrok_test_with_http_info variant
|
|
382
|
+
|
|
383
|
+
This returns an Array which contains the response data, status code and headers.
|
|
384
|
+
|
|
385
|
+
> <Array(<TaxProviderTestResult>, Integer, Hash)> get_tax_provider_anrok_test_with_http_info
|
|
386
|
+
|
|
387
|
+
```ruby
|
|
388
|
+
begin
|
|
389
|
+
# Attempts to connect to Anrok and returns back the response
|
|
390
|
+
data, status_code, headers = api_instance.get_tax_provider_anrok_test_with_http_info
|
|
391
|
+
p status_code # => 2xx
|
|
392
|
+
p headers # => { ... }
|
|
393
|
+
p data # => <TaxProviderTestResult>
|
|
394
|
+
rescue UltracartClient::ApiError => e
|
|
395
|
+
puts "Error when calling TaxApi->get_tax_provider_anrok_test_with_http_info: #{e}"
|
|
396
|
+
end
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Parameters
|
|
400
|
+
|
|
401
|
+
This endpoint does not need any parameter.
|
|
402
|
+
|
|
403
|
+
### Return type
|
|
404
|
+
|
|
405
|
+
[**TaxProviderTestResult**](TaxProviderTestResult.md)
|
|
406
|
+
|
|
407
|
+
### Authorization
|
|
408
|
+
|
|
409
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
410
|
+
|
|
411
|
+
### HTTP request headers
|
|
412
|
+
|
|
413
|
+
- **Content-Type**: Not defined
|
|
414
|
+
- **Accept**: application/json
|
|
415
|
+
|
|
416
|
+
|
|
312
417
|
## get_tax_provider_avalara
|
|
313
418
|
|
|
314
419
|
> <TaxProviderAvalara> get_tax_provider_avalara
|
|
@@ -995,6 +1100,59 @@ end
|
|
|
995
1100
|
- **Accept**: application/json
|
|
996
1101
|
|
|
997
1102
|
|
|
1103
|
+
## update_tax_provider_anrok
|
|
1104
|
+
|
|
1105
|
+
> <TaxProviderAnrok> update_tax_provider_anrok(tax_provider_anrok)
|
|
1106
|
+
|
|
1107
|
+
Update the Anrok tax provider
|
|
1108
|
+
|
|
1109
|
+
Update the Anrok tax provider.
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
### Examples
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
(No example for this operation).
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
#### Using the update_tax_provider_anrok_with_http_info variant
|
|
1119
|
+
|
|
1120
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1121
|
+
|
|
1122
|
+
> <Array(<TaxProviderAnrok>, Integer, Hash)> update_tax_provider_anrok_with_http_info(tax_provider_anrok)
|
|
1123
|
+
|
|
1124
|
+
```ruby
|
|
1125
|
+
begin
|
|
1126
|
+
# Update the Anrok tax provider
|
|
1127
|
+
data, status_code, headers = api_instance.update_tax_provider_anrok_with_http_info(tax_provider_anrok)
|
|
1128
|
+
p status_code # => 2xx
|
|
1129
|
+
p headers # => { ... }
|
|
1130
|
+
p data # => <TaxProviderAnrok>
|
|
1131
|
+
rescue UltracartClient::ApiError => e
|
|
1132
|
+
puts "Error when calling TaxApi->update_tax_provider_anrok_with_http_info: #{e}"
|
|
1133
|
+
end
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
### Parameters
|
|
1137
|
+
|
|
1138
|
+
| Name | Type | Description | Notes |
|
|
1139
|
+
| ---- | ---- | ----------- | ----- |
|
|
1140
|
+
| **tax_provider_anrok** | [**TaxProviderAnrok**](TaxProviderAnrok.md) | TaxProviderAnrok object | |
|
|
1141
|
+
|
|
1142
|
+
### Return type
|
|
1143
|
+
|
|
1144
|
+
[**TaxProviderAnrok**](TaxProviderAnrok.md)
|
|
1145
|
+
|
|
1146
|
+
### Authorization
|
|
1147
|
+
|
|
1148
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
1149
|
+
|
|
1150
|
+
### HTTP request headers
|
|
1151
|
+
|
|
1152
|
+
- **Content-Type**: application/json
|
|
1153
|
+
- **Accept**: application/json
|
|
1154
|
+
|
|
1155
|
+
|
|
998
1156
|
## update_tax_provider_avalara
|
|
999
1157
|
|
|
1000
1158
|
> <TaxProviderAvalara> update_tax_provider_avalara(tax_provider_avalara)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::TaxProviderAnrok
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **configuration** | [**AnrokConfig**](AnrokConfig.md) | | [optional] |
|
|
8
|
+
| **description** | **String** | Description | [optional] |
|
|
9
|
+
| **selected** | **Boolean** | Selected | [optional] |
|
|
10
|
+
| **title** | **String** | Title | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::TaxProviderAnrok.new(
|
|
18
|
+
configuration: null,
|
|
19
|
+
description: null,
|
|
20
|
+
selected: null,
|
|
21
|
+
title: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **anrok** | [**TaxProviderAnrok**](TaxProviderAnrok.md) | | [optional] |
|
|
7
8
|
| **avalara** | [**TaxProviderAvalara**](TaxProviderAvalara.md) | | [optional] |
|
|
8
9
|
| **error** | [**Error**](Error.md) | | [optional] |
|
|
9
10
|
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
require 'ultracart_api'
|
|
21
22
|
|
|
22
23
|
instance = UltracartClient::TaxProvidersResponse.new(
|
|
24
|
+
anrok: null,
|
|
23
25
|
avalara: null,
|
|
24
26
|
error: null,
|
|
25
27
|
metadata: null,
|
|
@@ -407,6 +407,122 @@ module UltracartClient
|
|
|
407
407
|
return data, status_code, headers
|
|
408
408
|
end
|
|
409
409
|
|
|
410
|
+
# Retrieve the Anrok tax provider
|
|
411
|
+
# Retrieves the Anrok tax provider.
|
|
412
|
+
# @param [Hash] opts the optional parameters
|
|
413
|
+
# @return [TaxProviderAnrok]
|
|
414
|
+
def get_tax_provider_anrok(opts = {})
|
|
415
|
+
data, _status_code, _headers = get_tax_provider_anrok_with_http_info(opts)
|
|
416
|
+
data
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Retrieve the Anrok tax provider
|
|
420
|
+
# Retrieves the Anrok tax provider.
|
|
421
|
+
# @param [Hash] opts the optional parameters
|
|
422
|
+
# @return [Array<(TaxProviderAnrok, Integer, Hash)>] TaxProviderAnrok data, response status code and response headers
|
|
423
|
+
def get_tax_provider_anrok_with_http_info(opts = {})
|
|
424
|
+
if @api_client.config.debugging
|
|
425
|
+
@api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_anrok ...'
|
|
426
|
+
end
|
|
427
|
+
# resource path
|
|
428
|
+
local_var_path = '/tax/providers/anrok'
|
|
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
|
+
|
|
439
|
+
# form parameters
|
|
440
|
+
form_params = opts[:form_params] || {}
|
|
441
|
+
|
|
442
|
+
# http body (model)
|
|
443
|
+
post_body = opts[:debug_body]
|
|
444
|
+
|
|
445
|
+
# return_type
|
|
446
|
+
return_type = opts[:debug_return_type] || 'TaxProviderAnrok'
|
|
447
|
+
|
|
448
|
+
# auth_names
|
|
449
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
450
|
+
|
|
451
|
+
new_options = opts.merge(
|
|
452
|
+
:operation => :"TaxApi.get_tax_provider_anrok",
|
|
453
|
+
:header_params => header_params,
|
|
454
|
+
:query_params => query_params,
|
|
455
|
+
:form_params => form_params,
|
|
456
|
+
:body => post_body,
|
|
457
|
+
:auth_names => auth_names,
|
|
458
|
+
:return_type => return_type
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug "API called: TaxApi#get_tax_provider_anrok\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
464
|
+
end
|
|
465
|
+
return data, status_code, headers
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# Attempts to connect to Anrok and returns back the response
|
|
469
|
+
# Attempts to connect to Anrok and returns back the response.
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @return [TaxProviderTestResult]
|
|
472
|
+
def get_tax_provider_anrok_test(opts = {})
|
|
473
|
+
data, _status_code, _headers = get_tax_provider_anrok_test_with_http_info(opts)
|
|
474
|
+
data
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Attempts to connect to Anrok and returns back the response
|
|
478
|
+
# Attempts to connect to Anrok and returns back the response.
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @return [Array<(TaxProviderTestResult, Integer, Hash)>] TaxProviderTestResult data, response status code and response headers
|
|
481
|
+
def get_tax_provider_anrok_test_with_http_info(opts = {})
|
|
482
|
+
if @api_client.config.debugging
|
|
483
|
+
@api_client.config.logger.debug 'Calling API: TaxApi.get_tax_provider_anrok_test ...'
|
|
484
|
+
end
|
|
485
|
+
# resource path
|
|
486
|
+
local_var_path = '/tax/providers/anrok/test'
|
|
487
|
+
|
|
488
|
+
# query parameters
|
|
489
|
+
query_params = opts[:query_params] || {}
|
|
490
|
+
|
|
491
|
+
# header parameters
|
|
492
|
+
header_params = opts[:header_params] || {}
|
|
493
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
494
|
+
# HTTP header 'Accept' (if needed)
|
|
495
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
496
|
+
|
|
497
|
+
# form parameters
|
|
498
|
+
form_params = opts[:form_params] || {}
|
|
499
|
+
|
|
500
|
+
# http body (model)
|
|
501
|
+
post_body = opts[:debug_body]
|
|
502
|
+
|
|
503
|
+
# return_type
|
|
504
|
+
return_type = opts[:debug_return_type] || 'TaxProviderTestResult'
|
|
505
|
+
|
|
506
|
+
# auth_names
|
|
507
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
508
|
+
|
|
509
|
+
new_options = opts.merge(
|
|
510
|
+
:operation => :"TaxApi.get_tax_provider_anrok_test",
|
|
511
|
+
:header_params => header_params,
|
|
512
|
+
:query_params => query_params,
|
|
513
|
+
:form_params => form_params,
|
|
514
|
+
:body => post_body,
|
|
515
|
+
:auth_names => auth_names,
|
|
516
|
+
:return_type => return_type
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
520
|
+
if @api_client.config.debugging
|
|
521
|
+
@api_client.config.logger.debug "API called: TaxApi#get_tax_provider_anrok_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
522
|
+
end
|
|
523
|
+
return data, status_code, headers
|
|
524
|
+
end
|
|
525
|
+
|
|
410
526
|
# Retrieve the Avalara tax provider
|
|
411
527
|
# Retrieves the Avalara tax provider.
|
|
412
528
|
# @param [Hash] opts the optional parameters
|
|
@@ -1193,6 +1309,75 @@ module UltracartClient
|
|
|
1193
1309
|
return data, status_code, headers
|
|
1194
1310
|
end
|
|
1195
1311
|
|
|
1312
|
+
# Update the Anrok tax provider
|
|
1313
|
+
# Update the Anrok tax provider.
|
|
1314
|
+
# @param tax_provider_anrok [TaxProviderAnrok] TaxProviderAnrok object
|
|
1315
|
+
# @param [Hash] opts the optional parameters
|
|
1316
|
+
# @return [TaxProviderAnrok]
|
|
1317
|
+
def update_tax_provider_anrok(tax_provider_anrok, opts = {})
|
|
1318
|
+
data, _status_code, _headers = update_tax_provider_anrok_with_http_info(tax_provider_anrok, opts)
|
|
1319
|
+
data
|
|
1320
|
+
end
|
|
1321
|
+
|
|
1322
|
+
# Update the Anrok tax provider
|
|
1323
|
+
# Update the Anrok tax provider.
|
|
1324
|
+
# @param tax_provider_anrok [TaxProviderAnrok] TaxProviderAnrok object
|
|
1325
|
+
# @param [Hash] opts the optional parameters
|
|
1326
|
+
# @return [Array<(TaxProviderAnrok, Integer, Hash)>] TaxProviderAnrok data, response status code and response headers
|
|
1327
|
+
def update_tax_provider_anrok_with_http_info(tax_provider_anrok, opts = {})
|
|
1328
|
+
if @api_client.config.debugging
|
|
1329
|
+
@api_client.config.logger.debug 'Calling API: TaxApi.update_tax_provider_anrok ...'
|
|
1330
|
+
end
|
|
1331
|
+
# verify the required parameter 'tax_provider_anrok' is set
|
|
1332
|
+
if @api_client.config.client_side_validation && tax_provider_anrok.nil?
|
|
1333
|
+
fail ArgumentError, "Missing the required parameter 'tax_provider_anrok' when calling TaxApi.update_tax_provider_anrok"
|
|
1334
|
+
end
|
|
1335
|
+
# resource path
|
|
1336
|
+
local_var_path = '/tax/providers/anrok'
|
|
1337
|
+
|
|
1338
|
+
# query parameters
|
|
1339
|
+
query_params = opts[:query_params] || {}
|
|
1340
|
+
|
|
1341
|
+
# header parameters
|
|
1342
|
+
header_params = opts[:header_params] || {}
|
|
1343
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
1344
|
+
# HTTP header 'Accept' (if needed)
|
|
1345
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1346
|
+
# HTTP header 'Content-Type'
|
|
1347
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1348
|
+
if !content_type.nil?
|
|
1349
|
+
header_params['Content-Type'] = content_type
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
# form parameters
|
|
1353
|
+
form_params = opts[:form_params] || {}
|
|
1354
|
+
|
|
1355
|
+
# http body (model)
|
|
1356
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_provider_anrok)
|
|
1357
|
+
|
|
1358
|
+
# return_type
|
|
1359
|
+
return_type = opts[:debug_return_type] || 'TaxProviderAnrok'
|
|
1360
|
+
|
|
1361
|
+
# auth_names
|
|
1362
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
1363
|
+
|
|
1364
|
+
new_options = opts.merge(
|
|
1365
|
+
:operation => :"TaxApi.update_tax_provider_anrok",
|
|
1366
|
+
:header_params => header_params,
|
|
1367
|
+
:query_params => query_params,
|
|
1368
|
+
:form_params => form_params,
|
|
1369
|
+
:body => post_body,
|
|
1370
|
+
:auth_names => auth_names,
|
|
1371
|
+
:return_type => return_type
|
|
1372
|
+
)
|
|
1373
|
+
|
|
1374
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1375
|
+
if @api_client.config.debugging
|
|
1376
|
+
@api_client.config.logger.debug "API called: TaxApi#update_tax_provider_anrok\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1377
|
+
end
|
|
1378
|
+
return data, status_code, headers
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1196
1381
|
# Update the Avalara tax provider
|
|
1197
1382
|
# Update the Avalara tax provider.
|
|
1198
1383
|
# @param tax_provider_avalara [TaxProviderAvalara] TaxProviderAvalara object
|
|
@@ -0,0 +1,250 @@
|
|
|
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 AnrokConfig
|
|
18
|
+
# Anrok API key
|
|
19
|
+
attr_accessor :api_key
|
|
20
|
+
|
|
21
|
+
# True if this Anrok configuration is to estimate taxes only and not report placed orders to Anrok
|
|
22
|
+
attr_accessor :estimate_only
|
|
23
|
+
|
|
24
|
+
# Date/time of the connection test to Anrok
|
|
25
|
+
attr_accessor :last_test_dts
|
|
26
|
+
|
|
27
|
+
# Test results of the last connection test to Anrok
|
|
28
|
+
attr_accessor :test_results
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'api_key' => :'api_key',
|
|
34
|
+
:'estimate_only' => :'estimate_only',
|
|
35
|
+
:'last_test_dts' => :'last_test_dts',
|
|
36
|
+
:'test_results' => :'test_results'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'api_key' => :'String',
|
|
49
|
+
:'estimate_only' => :'Boolean',
|
|
50
|
+
:'last_test_dts' => :'String',
|
|
51
|
+
:'test_results' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::AnrokConfig` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::AnrokConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'api_key')
|
|
77
|
+
self.api_key = attributes[:'api_key']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'estimate_only')
|
|
81
|
+
self.estimate_only = attributes[:'estimate_only']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'last_test_dts')
|
|
85
|
+
self.last_test_dts = attributes[:'last_test_dts']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'test_results')
|
|
89
|
+
self.test_results = attributes[:'test_results']
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
invalid_properties = Array.new
|
|
97
|
+
invalid_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
def valid?
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
api_key == o.api_key &&
|
|
112
|
+
estimate_only == o.estimate_only &&
|
|
113
|
+
last_test_dts == o.last_test_dts &&
|
|
114
|
+
test_results == o.test_results
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[api_key, estimate_only, last_test_dts, test_results].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
new.build_from_hash(attributes)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
144
|
+
self.send("#{key}=", nil)
|
|
145
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
146
|
+
# check to ensure the input is an array given that the attribute
|
|
147
|
+
# is documented as an array but the input is not
|
|
148
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
149
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
150
|
+
end
|
|
151
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
152
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
self
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Deserializes the data based on type
|
|
160
|
+
# @param string type Data type
|
|
161
|
+
# @param string value Value to be deserialized
|
|
162
|
+
# @return [Object] Deserialized data
|
|
163
|
+
def _deserialize(type, value)
|
|
164
|
+
case type.to_sym
|
|
165
|
+
when :Time
|
|
166
|
+
Time.parse(value)
|
|
167
|
+
when :Date
|
|
168
|
+
Date.parse(value)
|
|
169
|
+
when :String
|
|
170
|
+
value.to_s
|
|
171
|
+
when :Integer
|
|
172
|
+
value.to_i
|
|
173
|
+
when :Float
|
|
174
|
+
value.to_f
|
|
175
|
+
when :Boolean
|
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
177
|
+
true
|
|
178
|
+
else
|
|
179
|
+
false
|
|
180
|
+
end
|
|
181
|
+
when :Object
|
|
182
|
+
# generic object (usually a Hash), return directly
|
|
183
|
+
value
|
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
|
190
|
+
{}.tap do |hash|
|
|
191
|
+
value.each do |k, v|
|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
else # model
|
|
196
|
+
# models (e.g. Pet) or oneOf
|
|
197
|
+
klass = UltracartClient.const_get(type)
|
|
198
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the string representation of the object
|
|
203
|
+
# @return [String] String presentation of the object
|
|
204
|
+
def to_s
|
|
205
|
+
to_hash.to_s
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_body
|
|
211
|
+
to_hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Outputs non-array value in the form of hash
|
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
+
# @param [Object] value Any valid value
|
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
|
234
|
+
def _to_hash(value)
|
|
235
|
+
if value.is_a?(Array)
|
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
|
237
|
+
elsif value.is_a?(Hash)
|
|
238
|
+
{}.tap do |hash|
|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
+
end
|
|
241
|
+
elsif value.respond_to? :to_hash
|
|
242
|
+
value.to_hash
|
|
243
|
+
else
|
|
244
|
+
value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
@@ -0,0 +1,249 @@
|
|
|
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 TaxProviderAnrok
|
|
18
|
+
attr_accessor :configuration
|
|
19
|
+
|
|
20
|
+
# Description
|
|
21
|
+
attr_accessor :description
|
|
22
|
+
|
|
23
|
+
# Selected
|
|
24
|
+
attr_accessor :selected
|
|
25
|
+
|
|
26
|
+
# Title
|
|
27
|
+
attr_accessor :title
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'configuration' => :'configuration',
|
|
33
|
+
:'description' => :'description',
|
|
34
|
+
:'selected' => :'selected',
|
|
35
|
+
:'title' => :'title'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'configuration' => :'AnrokConfig',
|
|
48
|
+
:'description' => :'String',
|
|
49
|
+
:'selected' => :'Boolean',
|
|
50
|
+
:'title' => :'String'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# List of attributes with nullable: true
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
])
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::TaxProviderAnrok` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::TaxProviderAnrok`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'configuration')
|
|
76
|
+
self.configuration = attributes[:'configuration']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'description')
|
|
80
|
+
self.description = attributes[:'description']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'selected')
|
|
84
|
+
self.selected = attributes[:'selected']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'title')
|
|
88
|
+
self.title = attributes[:'title']
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
93
|
+
# @return Array for valid properties with the reasons
|
|
94
|
+
def list_invalid_properties
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
invalid_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
def valid?
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
configuration == o.configuration &&
|
|
111
|
+
description == o.description &&
|
|
112
|
+
selected == o.selected &&
|
|
113
|
+
title == o.title
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @see the `==` method
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def eql?(o)
|
|
119
|
+
self == o
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
def hash
|
|
125
|
+
[configuration, description, selected, title].hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def self.build_from_hash(attributes)
|
|
132
|
+
new.build_from_hash(attributes)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
143
|
+
self.send("#{key}=", nil)
|
|
144
|
+
elsif 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
|
|
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 :Time
|
|
165
|
+
Time.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
|
+
# models (e.g. Pet) or oneOf
|
|
196
|
+
klass = UltracartClient.const_get(type)
|
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the string representation of the object
|
|
202
|
+
# @return [String] String presentation of the object
|
|
203
|
+
def to_s
|
|
204
|
+
to_hash.to_s
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_body
|
|
210
|
+
to_hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the object in the form of hash
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_hash
|
|
216
|
+
hash = {}
|
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
218
|
+
value = self.send(attr)
|
|
219
|
+
if value.nil?
|
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
hash[param] = _to_hash(value)
|
|
225
|
+
end
|
|
226
|
+
hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Outputs non-array value in the form of hash
|
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
231
|
+
# @param [Object] value Any valid value
|
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
|
233
|
+
def _to_hash(value)
|
|
234
|
+
if value.is_a?(Array)
|
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
|
236
|
+
elsif value.is_a?(Hash)
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
239
|
+
end
|
|
240
|
+
elsif value.respond_to? :to_hash
|
|
241
|
+
value.to_hash
|
|
242
|
+
else
|
|
243
|
+
value
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
end
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class TaxProvidersResponse
|
|
18
|
+
attr_accessor :anrok
|
|
19
|
+
|
|
18
20
|
attr_accessor :avalara
|
|
19
21
|
|
|
20
22
|
attr_accessor :error
|
|
@@ -37,6 +39,7 @@ module UltracartClient
|
|
|
37
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
40
|
def self.attribute_map
|
|
39
41
|
{
|
|
42
|
+
:'anrok' => :'anrok',
|
|
40
43
|
:'avalara' => :'avalara',
|
|
41
44
|
:'error' => :'error',
|
|
42
45
|
:'metadata' => :'metadata',
|
|
@@ -57,6 +60,7 @@ module UltracartClient
|
|
|
57
60
|
# Attribute type mapping.
|
|
58
61
|
def self.openapi_types
|
|
59
62
|
{
|
|
63
|
+
:'anrok' => :'TaxProviderAnrok',
|
|
60
64
|
:'avalara' => :'TaxProviderAvalara',
|
|
61
65
|
:'error' => :'Error',
|
|
62
66
|
:'metadata' => :'ResponseMetadata',
|
|
@@ -90,6 +94,10 @@ module UltracartClient
|
|
|
90
94
|
h[k.to_sym] = v
|
|
91
95
|
}
|
|
92
96
|
|
|
97
|
+
if attributes.key?(:'anrok')
|
|
98
|
+
self.anrok = attributes[:'anrok']
|
|
99
|
+
end
|
|
100
|
+
|
|
93
101
|
if attributes.key?(:'avalara')
|
|
94
102
|
self.avalara = attributes[:'avalara']
|
|
95
103
|
end
|
|
@@ -145,6 +153,7 @@ module UltracartClient
|
|
|
145
153
|
def ==(o)
|
|
146
154
|
return true if self.equal?(o)
|
|
147
155
|
self.class == o.class &&
|
|
156
|
+
anrok == o.anrok &&
|
|
148
157
|
avalara == o.avalara &&
|
|
149
158
|
error == o.error &&
|
|
150
159
|
metadata == o.metadata &&
|
|
@@ -165,7 +174,7 @@ module UltracartClient
|
|
|
165
174
|
# Calculates hash code according to all attributes.
|
|
166
175
|
# @return [Integer] Hash code
|
|
167
176
|
def hash
|
|
168
|
-
[avalara, error, metadata, _self, sovos, success, taxjar, ultracart, warning].hash
|
|
177
|
+
[anrok, avalara, error, metadata, _self, sovos, success, taxjar, ultracart, warning].hash
|
|
169
178
|
end
|
|
170
179
|
|
|
171
180
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -44,6 +44,7 @@ require 'ultracart_api/models/affiliate_response'
|
|
|
44
44
|
require 'ultracart_api/models/affiliate_tier_relationship'
|
|
45
45
|
require 'ultracart_api/models/affiliates_response'
|
|
46
46
|
require 'ultracart_api/models/agent_summary'
|
|
47
|
+
require 'ultracart_api/models/anrok_config'
|
|
47
48
|
require 'ultracart_api/models/api_user_application_profile'
|
|
48
49
|
require 'ultracart_api/models/apply_library_item_request'
|
|
49
50
|
require 'ultracart_api/models/apply_library_item_response'
|
|
@@ -974,6 +975,7 @@ require 'ultracart_api/models/tax_county'
|
|
|
974
975
|
require 'ultracart_api/models/tax_jar_config'
|
|
975
976
|
require 'ultracart_api/models/tax_postal_code'
|
|
976
977
|
require 'ultracart_api/models/tax_provider_activate_result'
|
|
978
|
+
require 'ultracart_api/models/tax_provider_anrok'
|
|
977
979
|
require 'ultracart_api/models/tax_provider_avalara'
|
|
978
980
|
require 'ultracart_api/models/tax_provider_avalara_companies_result'
|
|
979
981
|
require 'ultracart_api/models/tax_provider_avalara_company'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.112
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- docs/AffiliateTierRelationship.md
|
|
90
90
|
- docs/AffiliatesResponse.md
|
|
91
91
|
- docs/AgentSummary.md
|
|
92
|
+
- docs/AnrokConfig.md
|
|
92
93
|
- docs/ApiUserApplicationProfile.md
|
|
93
94
|
- docs/ApplyLibraryItemRequest.md
|
|
94
95
|
- docs/ApplyLibraryItemResponse.md
|
|
@@ -1038,6 +1039,7 @@ files:
|
|
|
1038
1039
|
- docs/TaxJarConfig.md
|
|
1039
1040
|
- docs/TaxPostalCode.md
|
|
1040
1041
|
- docs/TaxProviderActivateResult.md
|
|
1042
|
+
- docs/TaxProviderAnrok.md
|
|
1041
1043
|
- docs/TaxProviderAvalara.md
|
|
1042
1044
|
- docs/TaxProviderAvalaraCompaniesResult.md
|
|
1043
1045
|
- docs/TaxProviderAvalaraCompany.md
|
|
@@ -1165,6 +1167,7 @@ files:
|
|
|
1165
1167
|
- lib/ultracart_api/models/affiliate_tier_relationship.rb
|
|
1166
1168
|
- lib/ultracart_api/models/affiliates_response.rb
|
|
1167
1169
|
- lib/ultracart_api/models/agent_summary.rb
|
|
1170
|
+
- lib/ultracart_api/models/anrok_config.rb
|
|
1168
1171
|
- lib/ultracart_api/models/api_user_application_profile.rb
|
|
1169
1172
|
- lib/ultracart_api/models/apply_library_item_request.rb
|
|
1170
1173
|
- lib/ultracart_api/models/apply_library_item_response.rb
|
|
@@ -2095,6 +2098,7 @@ files:
|
|
|
2095
2098
|
- lib/ultracart_api/models/tax_jar_config.rb
|
|
2096
2099
|
- lib/ultracart_api/models/tax_postal_code.rb
|
|
2097
2100
|
- lib/ultracart_api/models/tax_provider_activate_result.rb
|
|
2101
|
+
- lib/ultracart_api/models/tax_provider_anrok.rb
|
|
2098
2102
|
- lib/ultracart_api/models/tax_provider_avalara.rb
|
|
2099
2103
|
- lib/ultracart_api/models/tax_provider_avalara_companies_result.rb
|
|
2100
2104
|
- lib/ultracart_api/models/tax_provider_avalara_company.rb
|