docs/CouponApi.md in ultracart_api-4.0.32.rc vs docs/CouponApi.md in ultracart_api-4.0.33.rc

- old
+ new

@@ -36,22 +36,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_oid = 56 # Integer | The coupon_oid to delete. begin # Delete a coupon api_instance.delete_coupon(coupon_oid) @@ -109,22 +106,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_delete_request = UltracartClient::CouponDeletesRequest.new # CouponDeletesRequest | Coupon oids to delete begin # Deletes multiple coupons api_instance.delete_coupons_by_code(coupon_delete_request) @@ -182,22 +176,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_delete_request = UltracartClient::CouponDeletesRequest.new # CouponDeletesRequest | Coupon oids to delete begin # Deletes multiple coupons api_instance.delete_coupons_by_oid(coupon_delete_request) @@ -255,22 +246,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) merchant_code = 'merchant_code_example' # String | The coupon merchant code to examine. begin # Determines if a coupon merchant code already exists result = api_instance.does_coupon_code_exist(merchant_code) @@ -329,22 +317,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_oid = 56 # Integer | The coupon oid to generate codes. coupon_codes_request = UltracartClient::CouponCodesRequest.new # CouponCodesRequest | Coupon code generation parameters begin # Generates one time codes for a coupon @@ -405,22 +390,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) merchant_code = 'merchant_code_example' # String | The merchant code to generate one time codes. coupon_codes_request = UltracartClient::CouponCodesRequest.new # CouponCodesRequest | Coupon code generation parameters begin # Generates one time codes by merchant code @@ -481,22 +463,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) begin # Retrieve auto apply rules and conditions result = api_instance.get_auto_apply p result @@ -552,22 +531,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_oid = 56 # Integer | The coupon oid to retrieve. opts = { _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples } @@ -630,22 +606,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) merchant_code = 'merchant_code_example' # String | The coupon merchant code to retrieve. opts = { _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples } @@ -708,22 +681,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) opts = { merchant_code: 'merchant_code_example', # String | Merchant code description: 'description_example', # String | Description coupon_type: 'coupon_type_example', # String | Coupon type start_date_begin: 'start_date_begin_example', # String | Start date begin @@ -808,22 +778,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_query = UltracartClient::CouponQuery.new # CouponQuery | Coupon query opts = { _limit: 56, # Integer | The maximum number of records to return on this one API call. (Max 200) _offset: 56, # Integer | Pagination of the record set. Offset is a zero based index. _sort: '_sort_example', # String | The sort order of the coupons. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. @@ -892,22 +859,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) begin # Retrieve values needed for a coupon editor result = api_instance.get_editor_values p result @@ -963,22 +927,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon = UltracartClient::Coupon.new # Coupon | Coupon to insert opts = { _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples } @@ -1041,22 +1002,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupons_request = UltracartClient::CouponsRequest.new # CouponsRequest | Coupons to insert (maximum 50) opts = { _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples _placeholders: true # Boolean | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. } @@ -1121,22 +1079,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) opts = { s: 's_example', # String | m: 56 # Integer | } @@ -1199,22 +1154,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) conditions = UltracartClient::CouponAutoApplyConditions.new # CouponAutoApplyConditions | Conditions begin # Update auto apply rules and conditions api_instance.update_auto_apply(conditions) @@ -1272,22 +1224,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_oid = 56 # Integer | The coupon_oid to update. coupon = UltracartClient::Coupon.new # Coupon | Coupon to update opts = { _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples } @@ -1352,22 +1301,19 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupons_request = UltracartClient::CouponsRequest.new # CouponsRequest | Coupons to update (synchronous maximum 50 / asynchronous maximum 100) opts = { _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples _placeholders: true, # Boolean | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. _async: true # Boolean | True if the operation should be run async. No result returned @@ -1434,21 +1380,18 @@ ### Examples ```ruby require 'time' require 'ultracart_api' -# setup authorization -UltracartClient.configure do |config| - # Configure OAuth2 access token for authorization: ultraCartOauth - config.access_token = 'YOUR ACCESS TOKEN' +require 'json' +require 'yaml' +require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb - # Configure API key authorization: ultraCartSimpleApiKey - config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - # config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer' -end +# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators. +# As such, this might not be the best way to use this object. +# Please see https://github.com/UltraCart/sdk_samples for working examples. -api_instance = UltracartClient::CouponApi.new +api = UltracartClient::CouponApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE) coupon_oid = 56 # Integer | The coupon oid to associate with the provided one-time codes. upload_coupon_codes_request = UltracartClient::UploadCouponCodesRequest.new # UploadCouponCodesRequest | One-time coupon codes begin # Upload one-time codes for a coupon