Class: UltracartClient::CustomerApi
- Inherits:
-
Object
- Object
- UltracartClient::CustomerApi
- Defined in:
- lib/ultracart_api/api/customer_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Class Method Summary collapse
Instance Method Summary collapse
-
#add_customer_store_credit(customer_profile_oid, store_credit_request, opts = {}) ⇒ BaseResponse
Adds store credit to a customer Adds store credit to a customer.
-
#add_customer_store_credit_with_http_info(customer_profile_oid, store_credit_request, opts = {}) ⇒ Array<(BaseResponse, Fixnum, Hash)>
Adds store credit to a customer Adds store credit to a customer.
-
#adjust_internal_certificate(customer_profile_oid, adjust_internal_certificate_request, opts = {}) ⇒ AdjustInternalCertificateResponse
Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
-
#adjust_internal_certificate_with_http_info(customer_profile_oid, adjust_internal_certificate_request, opts = {}) ⇒ Array<(AdjustInternalCertificateResponse, Fixnum, Hash)>
Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
-
#delete_customer(customer_profile_oid, opts = {}) ⇒ nil
Delete a customer Delete a customer on the UltraCart account.
-
#delete_customer_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a customer Delete a customer on the UltraCart account.
-
#delete_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItem
Delete a customer wishlist item Delete a customer wishlist item.
-
#delete_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Delete a customer wishlist item Delete a customer wishlist item.
-
#get_customer(customer_profile_oid, opts = {}) ⇒ CustomerResponse
Retrieve a customer Retrieves a single customer using the specified customer profile oid.
-
#get_customer_by_email(email, opts = {}) ⇒ CustomerResponse
Retrieve a customer by Email Retrieves a single customer using the specified customer email address.
-
#get_customer_by_email_with_http_info(email, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Retrieve a customer by Email Retrieves a single customer using the specified customer email address.
-
#get_customer_editor_values(opts = {}) ⇒ CustomerEditorValues
Retrieve values needed for a customer profile editor Retrieve values needed for a customer profile editor.
-
#get_customer_editor_values_with_http_info(opts = {}) ⇒ Array<(CustomerEditorValues, Fixnum, Hash)>
Retrieve values needed for a customer profile editor Retrieve values needed for a customer profile editor.
-
#get_customer_email_lists(opts = {}) ⇒ EmailListsResponse
Retrieve all email lists across all storefronts Retrieve all email lists across all storefronts.
-
#get_customer_email_lists_with_http_info(opts = {}) ⇒ Array<(EmailListsResponse, Fixnum, Hash)>
Retrieve all email lists across all storefronts Retrieve all email lists across all storefronts.
-
#get_customer_store_credit(customer_profile_oid, opts = {}) ⇒ CustomerStoreCreditResponse
Retrieve the customer store credit accumulated through loyalty programs Retrieve the customer store credit accumulated through loyalty programs.
-
#get_customer_store_credit_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerStoreCreditResponse, Fixnum, Hash)>
Retrieve the customer store credit accumulated through loyalty programs Retrieve the customer store credit accumulated through loyalty programs.
-
#get_customer_wish_list(customer_profile_oid, opts = {}) ⇒ CustomerWishListItemsResponse
Retrieve wishlist items for customer Retrieve wishlist items for customer.
-
#get_customer_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItemResponse
Retrieve wishlist item for customer Retrieve wishlist item for customer.
-
#get_customer_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItemResponse, Fixnum, Hash)>
Retrieve wishlist item for customer Retrieve wishlist item for customer.
-
#get_customer_wish_list_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerWishListItemsResponse, Fixnum, Hash)>
Retrieve wishlist items for customer Retrieve wishlist items for customer.
-
#get_customer_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Retrieve a customer Retrieves a single customer using the specified customer profile oid.
-
#get_customers(opts = {}) ⇒ CustomersResponse
Retrieve customers Retrieves customers from the account.
-
#get_customers_by_query(customer_query, opts = {}) ⇒ CustomersResponse
Retrieve customers by query Retrieves customers from the account.
-
#get_customers_by_query_with_http_info(customer_query, opts = {}) ⇒ Array<(CustomersResponse, Fixnum, Hash)>
Retrieve customers by query Retrieves customers from the account.
-
#get_customers_for_data_tables(opts = {}) ⇒ DataTablesServerSideResponse
Retrieve customers for DataTables plugin Retrieves customers from the account.
-
#get_customers_for_data_tables_with_http_info(opts = {}) ⇒ Array<(DataTablesServerSideResponse, Fixnum, Hash)>
Retrieve customers for DataTables plugin Retrieves customers from the account.
-
#get_customers_with_http_info(opts = {}) ⇒ Array<(CustomersResponse, Fixnum, Hash)>
Retrieve customers Retrieves customers from the account.
-
#get_email_verification_token(token_request, opts = {}) ⇒ EmailVerifyTokenResponse
Create a token that can be used to verify a customer email address Create a token that can be used to verify a customer email address.
-
#get_email_verification_token_with_http_info(token_request, opts = {}) ⇒ Array<(EmailVerifyTokenResponse, Fixnum, Hash)>
Create a token that can be used to verify a customer email address Create a token that can be used to verify a customer email address.
-
#get_magic_link(customer_profile_oid, storefront_host_name, opts = {}) ⇒ CustomerMagicLinkResponse
getMagicLink Retrieves a magic link to allow a merchant to login as a customer.
-
#get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts = {}) ⇒ Array<(CustomerMagicLinkResponse, Fixnum, Hash)>
getMagicLink Retrieves a magic link to allow a merchant to login as a customer.
-
#initialize(api_client = ApiClient.default) ⇒ CustomerApi
constructor
A new instance of CustomerApi.
-
#insert_customer(customer, opts = {}) ⇒ CustomerResponse
Insert a customer Insert a customer on the UltraCart account.
-
#insert_customer_with_http_info(customer, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Insert a customer Insert a customer on the UltraCart account.
-
#insert_wish_list_item(wishlist_item, customer_profile_oid, opts = {}) ⇒ CustomerWishListItem
Insert a customer wishlist item Insert a customer wishlist item.
-
#insert_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Insert a customer wishlist item Insert a customer wishlist item.
-
#merge_customer(customer, customer_profile_oid, opts = {}) ⇒ nil
Merge customer into this customer Merge customer into this customer.
-
#merge_customer_with_http_info(customer, customer_profile_oid, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Merge customer into this customer Merge customer into this customer.
-
#search_customer_profile_values(lookup_request, opts = {}) ⇒ LookupResponse
Searches for all matching values (using POST).
-
#search_customer_profile_values_with_http_info(lookup_request, opts = {}) ⇒ Array<(LookupResponse, Fixnum, Hash)>
Searches for all matching values (using POST).
-
#update_customer(customer, customer_profile_oid, opts = {}) ⇒ CustomerResponse
Update a customer Update a customer on the UltraCart account.
-
#update_customer_email_lists(customer_profile_oid, list_changes, opts = {}) ⇒ CustomerEmailListChanges
Update email list subscriptions for a customer Update email list subscriptions for a customer.
-
#update_customer_email_lists_with_http_info(customer_profile_oid, list_changes, opts = {}) ⇒ Array<(CustomerEmailListChanges, Fixnum, Hash)>
Update email list subscriptions for a customer Update email list subscriptions for a customer.
-
#update_customer_with_http_info(customer, customer_profile_oid, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Update a customer Update a customer on the UltraCart account.
-
#update_wish_list_item(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItem
Update a customer wishlist item Update a customer wishlist item.
-
#update_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Update a customer wishlist item Update a customer wishlist item.
-
#validate_email_verification_token(validation_request, opts = {}) ⇒ EmailVerifyTokenValidateResponse
Validate a token that can be used to verify a customer email address Validate a token that can be used to verify a customer email address.
-
#validate_email_verification_token_with_http_info(validation_request, opts = {}) ⇒ Array<(EmailVerifyTokenValidateResponse, Fixnum, Hash)>
Validate a token that can be used to verify a customer email address Validate a token that can be used to verify a customer email address.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CustomerApi
Returns a new instance of CustomerApi.
19 20 21 |
# File 'lib/ultracart_api/api/customer_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/ultracart_api/api/customer_api.rb', line 17 def api_client @api_client end |
Class Method Details
.new_using_api_key(simple_key, verify_ssl = true, debugging = false) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ultracart_api/api/customer_api.rb', line 23 def self.new_using_api_key(simple_key, verify_ssl = true, debugging = false) api_config = Configuration.new api_config.api_key_prefix['x-ultracart-simple-key'] = simple_key api_config.api_version = '2017-03-01' api_config.verify_ssl = verify_ssl api_client = ApiClient.new(api_config) api_client.config.debugging = debugging UltracartClient::CustomerApi.new(api_client) end |
Instance Method Details
#add_customer_store_credit(customer_profile_oid, store_credit_request, opts = {}) ⇒ BaseResponse
Adds store credit to a customer Adds store credit to a customer
41 42 43 44 |
# File 'lib/ultracart_api/api/customer_api.rb', line 41 def add_customer_store_credit(customer_profile_oid, store_credit_request, opts = {}) data, _status_code, _headers = add_customer_store_credit_with_http_info(customer_profile_oid, store_credit_request, opts) data end |
#add_customer_store_credit_with_http_info(customer_profile_oid, store_credit_request, opts = {}) ⇒ Array<(BaseResponse, Fixnum, Hash)>
Adds store credit to a customer Adds store credit to a customer
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/ultracart_api/api/customer_api.rb', line 52 def add_customer_store_credit_with_http_info(customer_profile_oid, store_credit_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.add_customer_store_credit ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.add_customer_store_credit" end # verify the required parameter 'store_credit_request' is set if @api_client.config.client_side_validation && store_credit_request.nil? fail ArgumentError, "Missing the required parameter 'store_credit_request' when calling CustomerApi.add_customer_store_credit" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/store_credit'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(store_credit_request) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BaseResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#add_customer_store_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#adjust_internal_certificate(customer_profile_oid, adjust_internal_certificate_request, opts = {}) ⇒ AdjustInternalCertificateResponse
Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed. Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
102 103 104 105 |
# File 'lib/ultracart_api/api/customer_api.rb', line 102 def adjust_internal_certificate(customer_profile_oid, adjust_internal_certificate_request, opts = {}) data, _status_code, _headers = adjust_internal_certificate_with_http_info(customer_profile_oid, adjust_internal_certificate_request, opts) data end |
#adjust_internal_certificate_with_http_info(customer_profile_oid, adjust_internal_certificate_request, opts = {}) ⇒ Array<(AdjustInternalCertificateResponse, Fixnum, Hash)>
Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed. Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/ultracart_api/api/customer_api.rb', line 113 def adjust_internal_certificate_with_http_info(customer_profile_oid, adjust_internal_certificate_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.adjust_internal_certificate ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.adjust_internal_certificate" end # verify the required parameter 'adjust_internal_certificate_request' is set if @api_client.config.client_side_validation && adjust_internal_certificate_request.nil? fail ArgumentError, "Missing the required parameter 'adjust_internal_certificate_request' when calling CustomerApi.adjust_internal_certificate" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/adjust_cashback_balance'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(adjust_internal_certificate_request) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AdjustInternalCertificateResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#adjust_internal_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_customer(customer_profile_oid, opts = {}) ⇒ nil
Delete a customer Delete a customer on the UltraCart account.
162 163 164 165 |
# File 'lib/ultracart_api/api/customer_api.rb', line 162 def delete_customer(customer_profile_oid, opts = {}) delete_customer_with_http_info(customer_profile_oid, opts) nil end |
#delete_customer_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a customer Delete a customer on the UltraCart account.
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/ultracart_api/api/customer_api.rb', line 172 def delete_customer_with_http_info(customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.delete_customer ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.delete_customer" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#delete_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItem
Delete a customer wishlist item Delete a customer wishlist item
217 218 219 220 |
# File 'lib/ultracart_api/api/customer_api.rb', line 217 def delete_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) data, _status_code, _headers = delete_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts) data end |
#delete_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Delete a customer wishlist item Delete a customer wishlist item
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/ultracart_api/api/customer_api.rb', line 228 def delete_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.delete_wish_list_item ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.delete_wish_list_item" end # verify the required parameter 'customer_wishlist_item_oid' is set if @api_client.config.client_side_validation && customer_wishlist_item_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_wishlist_item_oid' when calling CustomerApi.delete_wish_list_item" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s).sub('{' + 'customer_wishlist_item_oid' + '}', customer_wishlist_item_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerWishListItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#delete_wish_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer(customer_profile_oid, opts = {}) ⇒ CustomerResponse
Retrieve a customer Retrieves a single customer using the specified customer profile oid.
278 279 280 281 |
# File 'lib/ultracart_api/api/customer_api.rb', line 278 def get_customer(customer_profile_oid, opts = {}) data, _status_code, _headers = get_customer_with_http_info(customer_profile_oid, opts) data end |
#get_customer_by_email(email, opts = {}) ⇒ CustomerResponse
Retrieve a customer by Email Retrieves a single customer using the specified customer email address.
336 337 338 339 |
# File 'lib/ultracart_api/api/customer_api.rb', line 336 def get_customer_by_email(email, opts = {}) data, _status_code, _headers = get_customer_by_email_with_http_info(email, opts) data end |
#get_customer_by_email_with_http_info(email, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Retrieve a customer by Email Retrieves a single customer using the specified customer email address.
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 |
# File 'lib/ultracart_api/api/customer_api.rb', line 347 def get_customer_by_email_with_http_info(email, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_by_email ...' end # verify the required parameter 'email' is set if @api_client.config.client_side_validation && email.nil? fail ArgumentError, "Missing the required parameter 'email' when calling CustomerApi.get_customer_by_email" end # resource path local_var_path = '/customer/customers/by_email/{email}'.sub('{' + 'email' + '}', email.to_s) # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_by_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_editor_values(opts = {}) ⇒ CustomerEditorValues
Retrieve values needed for a customer profile editor Retrieve values needed for a customer profile editor.
392 393 394 395 |
# File 'lib/ultracart_api/api/customer_api.rb', line 392 def get_customer_editor_values(opts = {}) data, _status_code, _headers = get_customer_editor_values_with_http_info(opts) data end |
#get_customer_editor_values_with_http_info(opts = {}) ⇒ Array<(CustomerEditorValues, Fixnum, Hash)>
Retrieve values needed for a customer profile editor Retrieve values needed for a customer profile editor.
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 |
# File 'lib/ultracart_api/api/customer_api.rb', line 401 def get_customer_editor_values_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_editor_values ...' end # resource path local_var_path = '/customer/editor_values' # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerEditorValues') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_email_lists(opts = {}) ⇒ EmailListsResponse
Retrieve all email lists across all storefronts Retrieve all email lists across all storefronts
441 442 443 444 |
# File 'lib/ultracart_api/api/customer_api.rb', line 441 def get_customer_email_lists(opts = {}) data, _status_code, _headers = get_customer_email_lists_with_http_info(opts) data end |
#get_customer_email_lists_with_http_info(opts = {}) ⇒ Array<(EmailListsResponse, Fixnum, Hash)>
Retrieve all email lists across all storefronts Retrieve all email lists across all storefronts
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'lib/ultracart_api/api/customer_api.rb', line 450 def get_customer_email_lists_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_email_lists ...' end # resource path local_var_path = '/customer/email_lists' # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EmailListsResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_email_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_store_credit(customer_profile_oid, opts = {}) ⇒ CustomerStoreCreditResponse
Retrieve the customer store credit accumulated through loyalty programs Retrieve the customer store credit accumulated through loyalty programs
491 492 493 494 |
# File 'lib/ultracart_api/api/customer_api.rb', line 491 def get_customer_store_credit(customer_profile_oid, opts = {}) data, _status_code, _headers = get_customer_store_credit_with_http_info(customer_profile_oid, opts) data end |
#get_customer_store_credit_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerStoreCreditResponse, Fixnum, Hash)>
Retrieve the customer store credit accumulated through loyalty programs Retrieve the customer store credit accumulated through loyalty programs
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/ultracart_api/api/customer_api.rb', line 501 def get_customer_store_credit_with_http_info(customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_store_credit ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_customer_store_credit" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/store_credit'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerStoreCreditResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_store_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_wish_list(customer_profile_oid, opts = {}) ⇒ CustomerWishListItemsResponse
Retrieve wishlist items for customer Retrieve wishlist items for customer.
546 547 548 549 |
# File 'lib/ultracart_api/api/customer_api.rb', line 546 def get_customer_wish_list(customer_profile_oid, opts = {}) data, _status_code, _headers = get_customer_wish_list_with_http_info(customer_profile_oid, opts) data end |
#get_customer_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItemResponse
Retrieve wishlist item for customer Retrieve wishlist item for customer.
602 603 604 605 |
# File 'lib/ultracart_api/api/customer_api.rb', line 602 def get_customer_wish_list_item(customer_profile_oid, customer_wishlist_item_oid, opts = {}) data, _status_code, _headers = get_customer_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts) data end |
#get_customer_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItemResponse, Fixnum, Hash)>
Retrieve wishlist item for customer Retrieve wishlist item for customer.
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/ultracart_api/api/customer_api.rb', line 613 def get_customer_wish_list_item_with_http_info(customer_profile_oid, customer_wishlist_item_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_wish_list_item ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_customer_wish_list_item" end # verify the required parameter 'customer_wishlist_item_oid' is set if @api_client.config.client_side_validation && customer_wishlist_item_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_wishlist_item_oid' when calling CustomerApi.get_customer_wish_list_item" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s).sub('{' + 'customer_wishlist_item_oid' + '}', customer_wishlist_item_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerWishListItemResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_wish_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_wish_list_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerWishListItemsResponse, Fixnum, Hash)>
Retrieve wishlist items for customer Retrieve wishlist items for customer.
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 |
# File 'lib/ultracart_api/api/customer_api.rb', line 556 def get_customer_wish_list_with_http_info(customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer_wish_list ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_customer_wish_list" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/wishlist'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerWishListItemsResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer_wish_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customer_with_http_info(customer_profile_oid, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Retrieve a customer Retrieves a single customer using the specified customer profile oid.
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/ultracart_api/api/customer_api.rb', line 289 def get_customer_with_http_info(customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_customer" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customers(opts = {}) ⇒ CustomersResponse
Retrieve customers Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
693 694 695 696 |
# File 'lib/ultracart_api/api/customer_api.rb', line 693 def get_customers(opts = {}) data, _status_code, _headers = get_customers_with_http_info(opts) data end |
#get_customers_by_query(customer_query, opts = {}) ⇒ CustomersResponse
Retrieve customers by query Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
812 813 814 815 |
# File 'lib/ultracart_api/api/customer_api.rb', line 812 def get_customers_by_query(customer_query, opts = {}) data, _status_code, _headers = get_customers_by_query_with_http_info(customer_query, opts) data end |
#get_customers_by_query_with_http_info(customer_query, opts = {}) ⇒ Array<(CustomersResponse, Fixnum, Hash)>
Retrieve customers by query Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 |
# File 'lib/ultracart_api/api/customer_api.rb', line 827 def get_customers_by_query_with_http_info(customer_query, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customers_by_query ...' end # verify the required parameter 'customer_query' is set if @api_client.config.client_side_validation && customer_query.nil? fail ArgumentError, "Missing the required parameter 'customer_query' when calling CustomerApi.get_customers_by_query" end # resource path local_var_path = '/customer/customers/query' # query parameters query_params = {} query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil? query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil? query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil? query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil? query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(customer_query) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomersResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customers_by_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customers_for_data_tables(opts = {}) ⇒ DataTablesServerSideResponse
Retrieve customers for DataTables plugin Retrieves customers from the account. If no searches are specified, all customers will be returned.
877 878 879 880 |
# File 'lib/ultracart_api/api/customer_api.rb', line 877 def get_customers_for_data_tables(opts = {}) data, _status_code, _headers = get_customers_for_data_tables_with_http_info(opts) data end |
#get_customers_for_data_tables_with_http_info(opts = {}) ⇒ Array<(DataTablesServerSideResponse, Fixnum, Hash)>
Retrieve customers for DataTables plugin Retrieves customers from the account. If no searches are specified, all customers will be returned.
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'lib/ultracart_api/api/customer_api.rb', line 887 def get_customers_for_data_tables_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customers_for_data_tables ...' end # resource path local_var_path = '/customer/customers/dataTables' # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DataTablesServerSideResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customers_for_data_tables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_customers_with_http_info(opts = {}) ⇒ Array<(CustomersResponse, Fixnum, Hash)>
Retrieve customers Retrieves customers from the account. If no parameters are specified, all customers will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'lib/ultracart_api/api/customer_api.rb', line 734 def get_customers_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_customers ...' end # resource path local_var_path = '/customer/customers' # query parameters query_params = {} query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil? query_params[:'qb_class'] = opts[:'qb_class'] if !opts[:'qb_class'].nil? query_params[:'quickbooks_code'] = opts[:'quickbooks_code'] if !opts[:'quickbooks_code'].nil? query_params[:'last_modified_dts_start'] = opts[:'last_modified_dts_start'] if !opts[:'last_modified_dts_start'].nil? query_params[:'last_modified_dts_end'] = opts[:'last_modified_dts_end'] if !opts[:'last_modified_dts_end'].nil? query_params[:'signup_dts_start'] = opts[:'signup_dts_start'] if !opts[:'signup_dts_start'].nil? query_params[:'signup_dts_end'] = opts[:'signup_dts_end'] if !opts[:'signup_dts_end'].nil? query_params[:'billing_first_name'] = opts[:'billing_first_name'] if !opts[:'billing_first_name'].nil? query_params[:'billing_last_name'] = opts[:'billing_last_name'] if !opts[:'billing_last_name'].nil? query_params[:'billing_company'] = opts[:'billing_company'] if !opts[:'billing_company'].nil? query_params[:'billing_city'] = opts[:'billing_city'] if !opts[:'billing_city'].nil? query_params[:'billing_state'] = opts[:'billing_state'] if !opts[:'billing_state'].nil? query_params[:'billing_postal_code'] = opts[:'billing_postal_code'] if !opts[:'billing_postal_code'].nil? query_params[:'billing_country_code'] = opts[:'billing_country_code'] if !opts[:'billing_country_code'].nil? query_params[:'billing_day_phone'] = opts[:'billing_day_phone'] if !opts[:'billing_day_phone'].nil? query_params[:'billing_evening_phone'] = opts[:'billing_evening_phone'] if !opts[:'billing_evening_phone'].nil? query_params[:'shipping_first_name'] = opts[:'shipping_first_name'] if !opts[:'shipping_first_name'].nil? query_params[:'shipping_last_name'] = opts[:'shipping_last_name'] if !opts[:'shipping_last_name'].nil? query_params[:'shipping_company'] = opts[:'shipping_company'] if !opts[:'shipping_company'].nil? query_params[:'shipping_city'] = opts[:'shipping_city'] if !opts[:'shipping_city'].nil? query_params[:'shipping_state'] = opts[:'shipping_state'] if !opts[:'shipping_state'].nil? query_params[:'shipping_postal_code'] = opts[:'shipping_postal_code'] if !opts[:'shipping_postal_code'].nil? query_params[:'shipping_country_code'] = opts[:'shipping_country_code'] if !opts[:'shipping_country_code'].nil? query_params[:'shipping_day_phone'] = opts[:'shipping_day_phone'] if !opts[:'shipping_day_phone'].nil? query_params[:'shipping_evening_phone'] = opts[:'shipping_evening_phone'] if !opts[:'shipping_evening_phone'].nil? query_params[:'pricing_tier_oid'] = opts[:'pricing_tier_oid'] if !opts[:'pricing_tier_oid'].nil? query_params[:'pricing_tier_name'] = opts[:'pricing_tier_name'] if !opts[:'pricing_tier_name'].nil? query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil? query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil? query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil? query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil? query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomersResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_customers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_email_verification_token(token_request, opts = {}) ⇒ EmailVerifyTokenResponse
Create a token that can be used to verify a customer email address Create a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
929 930 931 932 |
# File 'lib/ultracart_api/api/customer_api.rb', line 929 def get_email_verification_token(token_request, opts = {}) data, _status_code, _headers = get_email_verification_token_with_http_info(token_request, opts) data end |
#get_email_verification_token_with_http_info(token_request, opts = {}) ⇒ Array<(EmailVerifyTokenResponse, Fixnum, Hash)>
Create a token that can be used to verify a customer email address Create a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/ultracart_api/api/customer_api.rb', line 939 def get_email_verification_token_with_http_info(token_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_email_verification_token ...' end # verify the required parameter 'token_request' is set if @api_client.config.client_side_validation && token_request.nil? fail ArgumentError, "Missing the required parameter 'token_request' when calling CustomerApi.get_email_verification_token" end # resource path local_var_path = '/customer/customers/email_verify/get_token' # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(token_request) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EmailVerifyTokenResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_email_verification_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_magic_link(customer_profile_oid, storefront_host_name, opts = {}) ⇒ CustomerMagicLinkResponse
getMagicLink Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
985 986 987 988 |
# File 'lib/ultracart_api/api/customer_api.rb', line 985 def get_magic_link(customer_profile_oid, storefront_host_name, opts = {}) data, _status_code, _headers = get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts) data end |
#get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts = {}) ⇒ Array<(CustomerMagicLinkResponse, Fixnum, Hash)>
getMagicLink Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/ultracart_api/api/customer_api.rb', line 996 def get_magic_link_with_http_info(customer_profile_oid, storefront_host_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.get_magic_link ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.get_magic_link" end # verify the required parameter 'storefront_host_name' is set if @api_client.config.client_side_validation && storefront_host_name.nil? fail ArgumentError, "Missing the required parameter 'storefront_host_name' when calling CustomerApi.get_magic_link" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s).sub('{' + 'storefront_host_name' + '}', storefront_host_name.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerMagicLinkResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#get_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#insert_customer(customer, opts = {}) ⇒ CustomerResponse
Insert a customer Insert a customer on the UltraCart account.
1046 1047 1048 1049 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1046 def insert_customer(customer, opts = {}) data, _status_code, _headers = insert_customer_with_http_info(customer, opts) data end |
#insert_customer_with_http_info(customer, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Insert a customer Insert a customer on the UltraCart account.
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1057 def insert_customer_with_http_info(customer, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.insert_customer ...' end # verify the required parameter 'customer' is set if @api_client.config.client_side_validation && customer.nil? fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.insert_customer" end # resource path local_var_path = '/customer/customers' # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(customer) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#insert_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#insert_wish_list_item(wishlist_item, customer_profile_oid, opts = {}) ⇒ CustomerWishListItem
Insert a customer wishlist item Insert a customer wishlist item
1104 1105 1106 1107 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1104 def insert_wish_list_item(wishlist_item, customer_profile_oid, opts = {}) data, _status_code, _headers = insert_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, opts) data end |
#insert_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Insert a customer wishlist item Insert a customer wishlist item
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1115 def insert_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.insert_wish_list_item ...' end # verify the required parameter 'wishlist_item' is set if @api_client.config.client_side_validation && wishlist_item.nil? fail ArgumentError, "Missing the required parameter 'wishlist_item' when calling CustomerApi.insert_wish_list_item" end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.insert_wish_list_item" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/wishlist'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(wishlist_item) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerWishListItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#insert_wish_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#merge_customer(customer, customer_profile_oid, opts = {}) ⇒ nil
Merge customer into this customer Merge customer into this customer.
1166 1167 1168 1169 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1166 def merge_customer(customer, customer_profile_oid, opts = {}) merge_customer_with_http_info(customer, customer_profile_oid, opts) nil end |
#merge_customer_with_http_info(customer, customer_profile_oid, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Merge customer into this customer Merge customer into this customer.
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1178 def merge_customer_with_http_info(customer, customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.merge_customer ...' end # verify the required parameter 'customer' is set if @api_client.config.client_side_validation && customer.nil? fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.merge_customer" end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.merge_customer" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/merge'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(customer) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#merge_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search_customer_profile_values(lookup_request, opts = {}) ⇒ LookupResponse
Searches for all matching values (using POST)
1226 1227 1228 1229 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1226 def search_customer_profile_values(lookup_request, opts = {}) data, _status_code, _headers = search_customer_profile_values_with_http_info(lookup_request, opts) data end |
#search_customer_profile_values_with_http_info(lookup_request, opts = {}) ⇒ Array<(LookupResponse, Fixnum, Hash)>
Searches for all matching values (using POST)
1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1235 def search_customer_profile_values_with_http_info(lookup_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.search_customer_profile_values ...' end # verify the required parameter 'lookup_request' is set if @api_client.config.client_side_validation && lookup_request.nil? fail ArgumentError, "Missing the required parameter 'lookup_request' when calling CustomerApi.search_customer_profile_values" end # resource path local_var_path = '/customer/search' # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(lookup_request) auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'LookupResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#search_customer_profile_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_customer(customer, customer_profile_oid, opts = {}) ⇒ CustomerResponse
Update a customer Update a customer on the UltraCart account.
1282 1283 1284 1285 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1282 def update_customer(customer, customer_profile_oid, opts = {}) data, _status_code, _headers = update_customer_with_http_info(customer, customer_profile_oid, opts) data end |
#update_customer_email_lists(customer_profile_oid, list_changes, opts = {}) ⇒ CustomerEmailListChanges
Update email list subscriptions for a customer Update email list subscriptions for a customer
1345 1346 1347 1348 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1345 def update_customer_email_lists(customer_profile_oid, list_changes, opts = {}) data, _status_code, _headers = update_customer_email_lists_with_http_info(customer_profile_oid, list_changes, opts) data end |
#update_customer_email_lists_with_http_info(customer_profile_oid, list_changes, opts = {}) ⇒ Array<(CustomerEmailListChanges, Fixnum, Hash)>
Update email list subscriptions for a customer Update email list subscriptions for a customer
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1356 def update_customer_email_lists_with_http_info(customer_profile_oid, list_changes, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.update_customer_email_lists ...' end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.update_customer_email_lists" end # verify the required parameter 'list_changes' is set if @api_client.config.client_side_validation && list_changes.nil? fail ArgumentError, "Missing the required parameter 'list_changes' when calling CustomerApi.update_customer_email_lists" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/email_lists'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(list_changes) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerEmailListChanges') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#update_customer_email_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_customer_with_http_info(customer, customer_profile_oid, opts = {}) ⇒ Array<(CustomerResponse, Fixnum, Hash)>
Update a customer Update a customer on the UltraCart account.
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1294 def update_customer_with_http_info(customer, customer_profile_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.update_customer ...' end # verify the required parameter 'customer' is set if @api_client.config.client_side_validation && customer.nil? fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.update_customer" end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.update_customer" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s) # query parameters query_params = {} query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil? # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(customer) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#update_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_wish_list_item(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ CustomerWishListItem
Update a customer wishlist item Update a customer wishlist item
1407 1408 1409 1410 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1407 def update_wish_list_item(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) data, _status_code, _headers = update_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts) data end |
#update_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) ⇒ Array<(CustomerWishListItem, Fixnum, Hash)>
Update a customer wishlist item Update a customer wishlist item
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1419 def update_wish_list_item_with_http_info(wishlist_item, customer_profile_oid, customer_wishlist_item_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.update_wish_list_item ...' end # verify the required parameter 'wishlist_item' is set if @api_client.config.client_side_validation && wishlist_item.nil? fail ArgumentError, "Missing the required parameter 'wishlist_item' when calling CustomerApi.update_wish_list_item" end # verify the required parameter 'customer_profile_oid' is set if @api_client.config.client_side_validation && customer_profile_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.update_wish_list_item" end # verify the required parameter 'customer_wishlist_item_oid' is set if @api_client.config.client_side_validation && customer_wishlist_item_oid.nil? fail ArgumentError, "Missing the required parameter 'customer_wishlist_item_oid' when calling CustomerApi.update_wish_list_item" end # resource path local_var_path = '/customer/customers/{customer_profile_oid}/wishlist/{customer_wishlist_item_oid}'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s).sub('{' + 'customer_wishlist_item_oid' + '}', customer_wishlist_item_oid.to_s) # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(wishlist_item) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CustomerWishListItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#update_wish_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#validate_email_verification_token(validation_request, opts = {}) ⇒ EmailVerifyTokenValidateResponse
Validate a token that can be used to verify a customer email address Validate a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
1472 1473 1474 1475 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1472 def validate_email_verification_token(validation_request, opts = {}) data, _status_code, _headers = validate_email_verification_token_with_http_info(validation_request, opts) data end |
#validate_email_verification_token_with_http_info(validation_request, opts = {}) ⇒ Array<(EmailVerifyTokenValidateResponse, Fixnum, Hash)>
Validate a token that can be used to verify a customer email address Validate a token that can be used to verify a customer email address. The implementation of how a customer interacts with this token is left to the merchant.
1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 |
# File 'lib/ultracart_api/api/customer_api.rb', line 1482 def validate_email_verification_token_with_http_info(validation_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CustomerApi.validate_email_verification_token ...' end # verify the required parameter 'validation_request' is set if @api_client.config.client_side_validation && validation_request.nil? fail ArgumentError, "Missing the required parameter 'validation_request' when calling CustomerApi.validate_email_verification_token" end # resource path local_var_path = '/customer/customers/email_verify/validate_token' # query parameters query_params = {} # header parameters header_params = {} header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version() # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(validation_request) auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EmailVerifyTokenValidateResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CustomerApi#validate_email_verification_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |