ultracart_api 4.0.53.rc → 4.0.56.rc

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90c1f1f46b19290dbacc7ddd905336cc88761c048dd9fd6186b8804cc6ea3f3a
4
- data.tar.gz: e5d62d5ceada964dda81b4acccc568a214032452befa4ee76bb1e83134b3053a
3
+ metadata.gz: a5c99b11e8fb3701881c7dc1ee38267fee33136000a196a3f69fea713186faa6
4
+ data.tar.gz: c285cd611624107cc303e8f695f7567dc4c6620dfd34ec43cd8f0e45ef56b3d0
5
5
  SHA512:
6
- metadata.gz: 5a3fa783076a129e2db48df1d87d0795cbb406a6094a2925e81b3466d3ebad7b13e84f87b12d394d085d7c20901a0bbb13dc3b7f5b697c9e11a6ac6c7efa01a3
7
- data.tar.gz: 298e8bbe856eb22a26b95a770b1e67bbd8ea684a048693e7964b7d4b9e77ba49c75c60ec00dc7946075dafdd1efbbebac04c78d449f0b9a8e65719b2114166c3
6
+ metadata.gz: 9f9477ed9fa80705fcc33cad4141182679356b2de4b20d072625d4641d8897c13f73b29ab0a0583c458e68bc9f0cb0b05337d4d74bb163d6b4a08d822fdc536e
7
+ data.tar.gz: ee50fc3fcc32f7b673f6cc1839bad4b48f240283a62b0220e5f64c2198aac9da0f8f1db306f40b0b1905e4942dfe4156a9e6efd0f71e8d8223ecc15484853cf8
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
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.0.53.rc
10
+ - Package version: 4.0.56.rc
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.53.rc.gem
27
+ gem install ./ultracart_api-4.0.56.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.53.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.56.rc.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.53.rc'
36
+ gem 'ultracart_api', '~> 4.0.56.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
171
171
  *UltracartClient::CustomerApi* | [**get_customers_by_query**](docs/CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query
172
172
  *UltracartClient::CustomerApi* | [**get_customers_for_data_tables**](docs/CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
173
173
  *UltracartClient::CustomerApi* | [**get_email_verification_token**](docs/CustomerApi.md#get_email_verification_token) | **POST** /customer/customers/email_verify/get_token | Create a token that can be used to verify a customer email address
174
+ *UltracartClient::CustomerApi* | [**get_magic_link**](docs/CustomerApi.md#get_magic_link) | **PUT** /customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name} | getMagicLink
174
175
  *UltracartClient::CustomerApi* | [**insert_customer**](docs/CustomerApi.md#insert_customer) | **POST** /customer/customers | Insert a customer
175
176
  *UltracartClient::CustomerApi* | [**merge_customer**](docs/CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
176
177
  *UltracartClient::CustomerApi* | [**search_customer_profile_values**](docs/CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
@@ -335,6 +336,7 @@ Class | Method | HTTP request | Description
335
336
  *UltracartClient::StorefrontApi* | [**get_screen_recordings_by_query**](docs/StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings
336
337
  *UltracartClient::StorefrontApi* | [**get_screen_recordings_by_segment**](docs/StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment
337
338
  *UltracartClient::StorefrontApi* | [**get_store_front_pricing_tiers**](docs/StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers
339
+ *UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons)
338
340
  *UltracartClient::StorefrontApi* | [**get_thumbnail_parameters**](docs/StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters
339
341
  *UltracartClient::StorefrontApi* | [**get_transaction_email**](docs/StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object
340
342
  *UltracartClient::StorefrontApi* | [**get_transaction_email_list**](docs/StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names
@@ -667,6 +669,7 @@ Class | Method | HTTP request | Description
667
669
  - [UltracartClient::CustomerLoyalty](docs/CustomerLoyalty.md)
668
670
  - [UltracartClient::CustomerLoyaltyLedger](docs/CustomerLoyaltyLedger.md)
669
671
  - [UltracartClient::CustomerLoyaltyRedemption](docs/CustomerLoyaltyRedemption.md)
672
+ - [UltracartClient::CustomerMagicLinkResponse](docs/CustomerMagicLinkResponse.md)
670
673
  - [UltracartClient::CustomerMergeRequest](docs/CustomerMergeRequest.md)
671
674
  - [UltracartClient::CustomerOrdersSummary](docs/CustomerOrdersSummary.md)
672
675
  - [UltracartClient::CustomerPricingTier](docs/CustomerPricingTier.md)
@@ -1054,6 +1057,8 @@ Class | Method | HTTP request | Description
1054
1057
  - [UltracartClient::SovosConfig](docs/SovosConfig.md)
1055
1058
  - [UltracartClient::StateProvince](docs/StateProvince.md)
1056
1059
  - [UltracartClient::StepWaiting](docs/StepWaiting.md)
1060
+ - [UltracartClient::StoreFront](docs/StoreFront.md)
1061
+ - [UltracartClient::StoreFrontsResponse](docs/StoreFrontsResponse.md)
1057
1062
  - [UltracartClient::TaxCity](docs/TaxCity.md)
1058
1063
  - [UltracartClient::TaxCountry](docs/TaxCountry.md)
1059
1064
  - [UltracartClient::TaxCountryCode](docs/TaxCountryCode.md)
@@ -1182,6 +1187,9 @@ Not every change is committed to every SDK.
1182
1187
 
1183
1188
  | Version | Date | Comments |
1184
1189
  | --: | :-: | --- |
1190
+ | 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
1191
+ | 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
1192
+ | 4.0.54-RC | 08/11/2022 | fix entry_dts type on gift certificate ledger |
1185
1193
  | 4.0.53-RC | 08/10/2022 | conversation event refactoring |
1186
1194
  | 4.0.52-RC | 08/05/2022 | conversation adjustments for ES integration |
1187
1195
  | 4.0.51-RC | 08/05/2022 | conversations query by medium and stats fixes |
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **advertising_source** | **String** | The advertising source the customer indicated | [optional] |
8
+ | **cell_phone_opt_in** | **Boolean** | True if the customer agrees to receiving marketing SMS messages | [optional] |
8
9
  | **mailing_list_opt_in** | **Boolean** | True if the customer agrees to receiving marketing emails | [optional] |
9
10
 
10
11
  ## Example
@@ -14,6 +15,7 @@ require 'ultracart_api'
14
15
 
15
16
  instance = UltracartClient::CartMarketing.new(
16
17
  advertising_source: null,
18
+ cell_phone_opt_in: null,
17
19
  mailing_list_opt_in: null
18
20
  )
19
21
  ```
@@ -10,6 +10,7 @@
10
10
  | **joined_dts** | **String** | Joined conversation date/time | [optional] |
11
11
  | **last_message_dts** | **String** | Last message date/time | [optional] |
12
12
  | **left_dts** | **String** | Left conversation date/time | [optional] |
13
+ | **profile_image_url** | **String** | | [optional] |
13
14
  | **status** | **String** | | [optional] |
14
15
  | **unread_messages** | **Integer** | | [optional] |
15
16
 
@@ -25,6 +26,7 @@ instance = UltracartClient::ConversationParticipant.new(
25
26
  joined_dts: null,
26
27
  last_message_dts: null,
27
28
  left_dts: null,
29
+ profile_image_url: null,
28
30
  status: null,
29
31
  unread_messages: null
30
32
  )
@@ -4,11 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **agent_status** | **String** | | [optional] |
7
+ | **agent_status** | **String** | Status of the agent | [optional] |
8
8
  | **conversation_participant_arn** | **String** | | [optional] |
9
9
  | **conversation_participant_name** | **String** | | [optional] |
10
10
  | **last_chat_dts** | **String** | Date/time that this agent took their last chat | [optional] |
11
11
  | **next_round_robin** | **Boolean** | | [optional] |
12
+ | **profile_image_url** | **String** | Profile image URL | [optional] |
12
13
 
13
14
  ## Example
14
15
 
@@ -20,7 +21,8 @@ instance = UltracartClient::ConversationWebchatQueueStatusAgent.new(
20
21
  conversation_participant_arn: null,
21
22
  conversation_participant_name: null,
22
23
  last_chat_dts: null,
23
- next_round_robin: null
24
+ next_round_robin: null,
25
+ profile_image_url: null
24
26
  )
25
27
  ```
26
28
 
data/docs/CustomerApi.md CHANGED
@@ -16,6 +16,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
16
16
  | [**get_customers_by_query**](CustomerApi.md#get_customers_by_query) | **POST** /customer/customers/query | Retrieve customers by query |
17
17
  | [**get_customers_for_data_tables**](CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin |
18
18
  | [**get_email_verification_token**](CustomerApi.md#get_email_verification_token) | **POST** /customer/customers/email_verify/get_token | Create a token that can be used to verify a customer email address |
19
+ | [**get_magic_link**](CustomerApi.md#get_magic_link) | **PUT** /customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name} | getMagicLink |
19
20
  | [**insert_customer**](CustomerApi.md#insert_customer) | **POST** /customer/customers | Insert a customer |
20
21
  | [**merge_customer**](CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer |
21
22
  | [**search_customer_profile_values**](CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST) |
@@ -959,6 +960,79 @@ end
959
960
  - **Accept**: application/json
960
961
 
961
962
 
963
+ ## get_magic_link
964
+
965
+ > <CustomerMagicLinkResponse> get_magic_link(customer_profile_oid, storefront_host_name)
966
+
967
+ getMagicLink
968
+
969
+ Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
970
+
971
+ ### Examples
972
+
973
+ ```ruby
974
+ require 'time'
975
+ require 'ultracart_api'
976
+ require 'json'
977
+ require 'yaml'
978
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
979
+
980
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
981
+ # As such, this might not be the best way to use this object.
982
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
983
+
984
+ api = UltracartClient::CustomerApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
985
+ customer_profile_oid = 56 # Integer | The customer_profile_oid of the customer.
986
+ storefront_host_name = 'storefront_host_name_example' # String | The storefront to log into.
987
+
988
+ begin
989
+ # getMagicLink
990
+ result = api_instance.get_magic_link(customer_profile_oid, storefront_host_name)
991
+ p result
992
+ rescue UltracartClient::ApiError => e
993
+ puts "Error when calling CustomerApi->get_magic_link: #{e}"
994
+ end
995
+ ```
996
+
997
+ #### Using the get_magic_link_with_http_info variant
998
+
999
+ This returns an Array which contains the response data, status code and headers.
1000
+
1001
+ > <Array(<CustomerMagicLinkResponse>, Integer, Hash)> get_magic_link_with_http_info(customer_profile_oid, storefront_host_name)
1002
+
1003
+ ```ruby
1004
+ begin
1005
+ # getMagicLink
1006
+ data, status_code, headers = api_instance.get_magic_link_with_http_info(customer_profile_oid, storefront_host_name)
1007
+ p status_code # => 2xx
1008
+ p headers # => { ... }
1009
+ p data # => <CustomerMagicLinkResponse>
1010
+ rescue UltracartClient::ApiError => e
1011
+ puts "Error when calling CustomerApi->get_magic_link_with_http_info: #{e}"
1012
+ end
1013
+ ```
1014
+
1015
+ ### Parameters
1016
+
1017
+ | Name | Type | Description | Notes |
1018
+ | ---- | ---- | ----------- | ----- |
1019
+ | **customer_profile_oid** | **Integer** | The customer_profile_oid of the customer. | |
1020
+ | **storefront_host_name** | **String** | The storefront to log into. | |
1021
+
1022
+ ### Return type
1023
+
1024
+ [**CustomerMagicLinkResponse**](CustomerMagicLinkResponse.md)
1025
+
1026
+ ### Authorization
1027
+
1028
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1029
+
1030
+ ### HTTP request headers
1031
+
1032
+ - **Content-Type**: Not defined
1033
+ - **Accept**: application/json
1034
+
1035
+
962
1036
  ## insert_customer
963
1037
 
964
1038
  > <CustomerResponse> insert_customer(customer, opts)
@@ -0,0 +1,26 @@
1
+ # UltracartClient::CustomerMagicLinkResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
9
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
10
+ | **url** | **String** | URL | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::CustomerMagicLinkResponse.new(
19
+ error: null,
20
+ metadata: null,
21
+ success: null,
22
+ url: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
data/docs/OrderBilling.md CHANGED
@@ -7,6 +7,8 @@
7
7
  | **address1** | **String** | Address line 1 | [optional] |
8
8
  | **address2** | **String** | Address line 2 | [optional] |
9
9
  | **cc_emails** | **Array&lt;String&gt;** | CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters. | [optional] |
10
+ | **cell_phone** | **String** | Cell phone | [optional] |
11
+ | **cell_phone_e164** | **String** | Cell phone (E164 format) | [optional] |
10
12
  | **city** | **String** | City | [optional] |
11
13
  | **company** | **String** | Company | [optional] |
12
14
  | **country_code** | **String** | ISO-3166 two letter country code | [optional] |
@@ -30,6 +32,8 @@ instance = UltracartClient::OrderBilling.new(
30
32
  address1: null,
31
33
  address2: null,
32
34
  cc_emails: null,
35
+ cell_phone: null,
36
+ cell_phone_e164: null,
33
37
  city: null,
34
38
  company: null,
35
39
  country_code: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **advertising_source** | **String** | Advertising source | [optional] |
8
+ | **cell_phone_opt_in** | **Boolean** | True if the customer has opted into SMS marketing | [optional] |
8
9
  | **mailing_list** | **Boolean** | True if the customer has opted into mailing list subscription | [optional] |
9
10
  | **referral_code** | **String** | Referral code | [optional] |
10
11
 
@@ -15,6 +16,7 @@ require 'ultracart_api'
15
16
 
16
17
  instance = UltracartClient::OrderMarketing.new(
17
18
  advertising_source: null,
19
+ cell_phone_opt_in: null,
18
20
  mailing_list: null,
19
21
  referral_code: null
20
22
  )
@@ -0,0 +1,38 @@
1
+ # UltracartClient::StoreFront
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **host_alias1** | **String** | | [optional] |
8
+ | **host_alias2** | **String** | | [optional] |
9
+ | **host_alias3** | **String** | | [optional] |
10
+ | **host_alias4** | **String** | | [optional] |
11
+ | **host_alias5** | **String** | | [optional] |
12
+ | **host_name** | **String** | | [optional] |
13
+ | **locked** | **Boolean** | | [optional] |
14
+ | **merchant_id** | **String** | | [optional] |
15
+ | **redirect_aliases** | **Boolean** | | [optional] |
16
+ | **storefront_oid** | **Integer** | | [optional] |
17
+ | **unlock_password** | **String** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'ultracart_api'
23
+
24
+ instance = UltracartClient::StoreFront.new(
25
+ host_alias1: null,
26
+ host_alias2: null,
27
+ host_alias3: null,
28
+ host_alias4: null,
29
+ host_alias5: null,
30
+ host_name: null,
31
+ locked: null,
32
+ merchant_id: null,
33
+ redirect_aliases: null,
34
+ storefront_oid: null,
35
+ unlock_password: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::StoreFrontsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
9
+ | **store_fronts** | [**Array&lt;StoreFront&gt;**](StoreFront.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::StoreFrontsResponse.new(
19
+ error: null,
20
+ metadata: null,
21
+ store_fronts: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -105,6 +105,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
105
105
  | [**get_screen_recordings_by_query**](StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings |
106
106
  | [**get_screen_recordings_by_segment**](StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment |
107
107
  | [**get_store_front_pricing_tiers**](StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers |
108
+ | [**get_store_fronts**](StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons) |
108
109
  | [**get_thumbnail_parameters**](StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters |
109
110
  | [**get_transaction_email**](StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object |
110
111
  | [**get_transaction_email_list**](StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names |
@@ -7380,6 +7381,72 @@ end
7380
7381
  - **Accept**: application/json
7381
7382
 
7382
7383
 
7384
+ ## get_store_fronts
7385
+
7386
+ > <StoreFrontsResponse> get_store_fronts
7387
+
7388
+ Get storefronts (internal use only for security reasons)
7389
+
7390
+ ### Examples
7391
+
7392
+ ```ruby
7393
+ require 'time'
7394
+ require 'ultracart_api'
7395
+ require 'json'
7396
+ require 'yaml'
7397
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
7398
+
7399
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
7400
+ # As such, this might not be the best way to use this object.
7401
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
7402
+
7403
+ api = UltracartClient::StorefrontApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
7404
+
7405
+ begin
7406
+ # Get storefronts (internal use only for security reasons)
7407
+ result = api_instance.get_store_fronts
7408
+ p result
7409
+ rescue UltracartClient::ApiError => e
7410
+ puts "Error when calling StorefrontApi->get_store_fronts: #{e}"
7411
+ end
7412
+ ```
7413
+
7414
+ #### Using the get_store_fronts_with_http_info variant
7415
+
7416
+ This returns an Array which contains the response data, status code and headers.
7417
+
7418
+ > <Array(<StoreFrontsResponse>, Integer, Hash)> get_store_fronts_with_http_info
7419
+
7420
+ ```ruby
7421
+ begin
7422
+ # Get storefronts (internal use only for security reasons)
7423
+ data, status_code, headers = api_instance.get_store_fronts_with_http_info
7424
+ p status_code # => 2xx
7425
+ p headers # => { ... }
7426
+ p data # => <StoreFrontsResponse>
7427
+ rescue UltracartClient::ApiError => e
7428
+ puts "Error when calling StorefrontApi->get_store_fronts_with_http_info: #{e}"
7429
+ end
7430
+ ```
7431
+
7432
+ ### Parameters
7433
+
7434
+ This endpoint does not need any parameter.
7435
+
7436
+ ### Return type
7437
+
7438
+ [**StoreFrontsResponse**](StoreFrontsResponse.md)
7439
+
7440
+ ### Authorization
7441
+
7442
+ [ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
7443
+
7444
+ ### HTTP request headers
7445
+
7446
+ - **Content-Type**: Not defined
7447
+ - **Accept**: application/json
7448
+
7449
+
7383
7450
  ## get_thumbnail_parameters
7384
7451
 
7385
7452
  > <ThumbnailParametersResponse> get_thumbnail_parameters(thumbnail_parameters)
@@ -928,6 +928,76 @@ module UltracartClient
928
928
  return data, status_code, headers
929
929
  end
930
930
 
931
+ # getMagicLink
932
+ # Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
933
+ # @param customer_profile_oid [Integer] The customer_profile_oid of the customer.
934
+ # @param storefront_host_name [String] The storefront to log into.
935
+ # @param [Hash] opts the optional parameters
936
+ # @return [CustomerMagicLinkResponse]
937
+ def get_magic_link(customer_profile_oid, storefront_host_name, opts = {})
938
+ data, _status_code, _headers = get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts)
939
+ data
940
+ end
941
+
942
+ # getMagicLink
943
+ # Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
944
+ # @param customer_profile_oid [Integer] The customer_profile_oid of the customer.
945
+ # @param storefront_host_name [String] The storefront to log into.
946
+ # @param [Hash] opts the optional parameters
947
+ # @return [Array<(CustomerMagicLinkResponse, Integer, Hash)>] CustomerMagicLinkResponse data, response status code and response headers
948
+ def get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts = {})
949
+ if @api_client.config.debugging
950
+ @api_client.config.logger.debug 'Calling API: CustomerApi.get_magic_link ...'
951
+ end
952
+ # verify the required parameter 'customer_profile_oid' is set
953
+ if @api_client.config.client_side_validation && customer_profile_oid.nil?
954
+ fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_magic_link"
955
+ end
956
+ # verify the required parameter 'storefront_host_name' is set
957
+ if @api_client.config.client_side_validation && storefront_host_name.nil?
958
+ fail ArgumentError, "Missing the required parameter 'storefront_host_name' when calling CustomerApi.get_magic_link"
959
+ end
960
+ # resource path
961
+ local_var_path = '/customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name}'.sub('{' + 'customer_profile_oid' + '}', CGI.escape(customer_profile_oid.to_s)).sub('{' + 'storefront_host_name' + '}', CGI.escape(storefront_host_name.to_s))
962
+
963
+ # query parameters
964
+ query_params = opts[:query_params] || {}
965
+
966
+ # header parameters
967
+ header_params = opts[:header_params] || {}
968
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
969
+ # HTTP header 'Accept' (if needed)
970
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
971
+
972
+ # form parameters
973
+ form_params = opts[:form_params] || {}
974
+
975
+ # http body (model)
976
+ post_body = opts[:debug_body]
977
+
978
+ # return_type
979
+ return_type = opts[:debug_return_type] || 'CustomerMagicLinkResponse'
980
+
981
+ # auth_names
982
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
983
+
984
+ new_options = opts.merge(
985
+ :operation => :"CustomerApi.get_magic_link",
986
+ :header_params => header_params,
987
+ :query_params => query_params,
988
+ :form_params => form_params,
989
+ :body => post_body,
990
+ :auth_names => auth_names,
991
+ :return_type => return_type
992
+ )
993
+
994
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
995
+ if @api_client.config.debugging
996
+ @api_client.config.logger.debug "API called: CustomerApi#get_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
+ end
998
+ return data, status_code, headers
999
+ end
1000
+
931
1001
  # Insert a customer
932
1002
  # Insert a customer on the UltraCart account.
933
1003
  # @param customer [Customer] Customer to insert
@@ -6894,6 +6894,62 @@ module UltracartClient
6894
6894
  return data, status_code, headers
6895
6895
  end
6896
6896
 
6897
+ # Get storefronts (internal use only for security reasons)
6898
+ # @param [Hash] opts the optional parameters
6899
+ # @return [StoreFrontsResponse]
6900
+ def get_store_fronts(opts = {})
6901
+ data, _status_code, _headers = get_store_fronts_with_http_info(opts)
6902
+ data
6903
+ end
6904
+
6905
+ # Get storefronts (internal use only for security reasons)
6906
+ # @param [Hash] opts the optional parameters
6907
+ # @return [Array<(StoreFrontsResponse, Integer, Hash)>] StoreFrontsResponse data, response status code and response headers
6908
+ def get_store_fronts_with_http_info(opts = {})
6909
+ if @api_client.config.debugging
6910
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_fronts ...'
6911
+ end
6912
+ # resource path
6913
+ local_var_path = '/storefront'
6914
+
6915
+ # query parameters
6916
+ query_params = opts[:query_params] || {}
6917
+
6918
+ # header parameters
6919
+ header_params = opts[:header_params] || {}
6920
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
6921
+ # HTTP header 'Accept' (if needed)
6922
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6923
+
6924
+ # form parameters
6925
+ form_params = opts[:form_params] || {}
6926
+
6927
+ # http body (model)
6928
+ post_body = opts[:debug_body]
6929
+
6930
+ # return_type
6931
+ return_type = opts[:debug_return_type] || 'StoreFrontsResponse'
6932
+
6933
+ # auth_names
6934
+ auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
6935
+
6936
+ new_options = opts.merge(
6937
+ :operation => :"StorefrontApi.get_store_fronts",
6938
+ :header_params => header_params,
6939
+ :query_params => query_params,
6940
+ :form_params => form_params,
6941
+ :body => post_body,
6942
+ :auth_names => auth_names,
6943
+ :return_type => return_type
6944
+ )
6945
+
6946
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6947
+ if @api_client.config.debugging
6948
+ @api_client.config.logger.debug "API called: StorefrontApi#get_store_fronts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6949
+ end
6950
+ return data, status_code, headers
6951
+ end
6952
+
6897
6953
  # Get thumbnail parameters
6898
6954
  # @param thumbnail_parameters [ThumbnailParametersRequest] Thumbnail Parameters
6899
6955
  # @param [Hash] opts the optional parameters
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # The advertising source the customer indicated
19
19
  attr_accessor :advertising_source
20
20
 
21
+ # True if the customer agrees to receiving marketing SMS messages
22
+ attr_accessor :cell_phone_opt_in
23
+
21
24
  # True if the customer agrees to receiving marketing emails
22
25
  attr_accessor :mailing_list_opt_in
23
26
 
@@ -25,6 +28,7 @@ module UltracartClient
25
28
  def self.attribute_map
26
29
  {
27
30
  :'advertising_source' => :'advertising_source',
31
+ :'cell_phone_opt_in' => :'cell_phone_opt_in',
28
32
  :'mailing_list_opt_in' => :'mailing_list_opt_in'
29
33
  }
30
34
  end
@@ -38,6 +42,7 @@ module UltracartClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'advertising_source' => :'String',
45
+ :'cell_phone_opt_in' => :'Boolean',
41
46
  :'mailing_list_opt_in' => :'Boolean'
42
47
  }
43
48
  end
@@ -67,6 +72,10 @@ module UltracartClient
67
72
  self.advertising_source = attributes[:'advertising_source']
68
73
  end
69
74
 
75
+ if attributes.key?(:'cell_phone_opt_in')
76
+ self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
77
+ end
78
+
70
79
  if attributes.key?(:'mailing_list_opt_in')
71
80
  self.mailing_list_opt_in = attributes[:'mailing_list_opt_in']
72
81
  end
@@ -91,6 +100,7 @@ module UltracartClient
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  advertising_source == o.advertising_source &&
103
+ cell_phone_opt_in == o.cell_phone_opt_in &&
94
104
  mailing_list_opt_in == o.mailing_list_opt_in
95
105
  end
96
106
 
@@ -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
- [advertising_source, mailing_list_opt_in].hash
116
+ [advertising_source, cell_phone_opt_in, mailing_list_opt_in].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash