merchantapi package¶
Submodules¶
merchantapi.abstract module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
$Id: abstract.py 77675 2019-08-29 21:03:50Z gidriss $
-
class
merchantapi.abstract.
Client
[source]¶ Bases:
object
-
abstract
generate_auth_header
(data: str) → str[source]¶ Generates the authentication header value.
- Parameters
data – str
- Returns
str
-
abstract
-
class
merchantapi.abstract.
Model
(data: dict = None)[source]¶ Bases:
dict
-
get_field
(name: str, default=None)[source]¶ Get a field value.
- Parameters
name – str
default – mixed
- Returns
mixed
-
-
class
merchantapi.abstract.
Request
(client: merchantapi.abstract.Client = None)[source]¶ Bases:
object
-
SCOPE_DOMAIN
= 2¶
-
SCOPE_STORE
= 1¶
-
create_response
(data) → merchantapi.abstract.Response[source]¶ Override this method to create a response for this request.
- Parameters
data – dict
- Returns
Response
-
send
() → merchantapi.abstract.Response[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_client
(client: merchantapi.abstract.Client) → merchantapi.abstract.Request[source]¶ Set the Client used for the request.
- Parameters
client – Client
- Returns
Request
-
merchantapi.client module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with self source code.
$Id: client.py 77669 2019-08-29 19:21:04Z gidriss $
-
class
merchantapi.client.
Client
(endpoint: str, api_token: str, signing_key: str, options: dict = None)[source]¶ Bases:
object
-
DEFAULT_OPTIONS
= {'default_store_code': None, 'require_timestamps': True, 'signing_key_digest': 'sha256', 'ssl_verify': True}¶
-
SIGN_DIGEST_NONE
= None¶
-
SIGN_DIGEST_SHA1
= 'sha1'¶
-
SIGN_DIGEST_SHA256
= 'sha256'¶
-
generate_auth_header
(data: str) → str[source]¶ Generates the authentication header value.
- Parameters
data – str
- Returns
str
-
get_option
(name: str, default=None)[source]¶ Get a client option.
- Parameters
name – str
default – default return value if not set
- Returns
mixed
-
get_signing_key
() → str[source]¶ Get the signing key used to sign requests. Base64 encoded.
- Returns
str
-
send
(request: merchantapi.abstract.Request) → merchantapi.abstract.Response[source]¶ Send a Request object with callback.
- Parameters
request – Request
- Raises
Exception –
- Returns
Response
-
set_api_token
(api_token: str) → merchantapi.client.Client[source]¶ Set the api token used to authenticate the request.
- Parameters
api_token – str
- Returns
Client
-
set_endpoint
(endpoint: str) → merchantapi.client.Client[source]¶ Set the API endpoint URL.
- Parameters
endpoint – str
- Returns
Client
-
-
exception
merchantapi.client.
ClientException
(request: merchantapi.abstract.Request = None, http_response: requests.models.Response = None, other: Exception = None)[source]¶ Bases:
Exception
merchantapi.listquery module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with self source code.
$Id: listquery.py 77682 2019-08-29 23:21:44Z gidriss $
-
class
merchantapi.listquery.
FilterExpression
(request: Optional[merchantapi.listquery.ListQueryRequest] = None)[source]¶ Bases:
object
-
FILTER_SEARCH
= 'search'¶
-
FILTER_SEARCH_AND
= 'search_AND'¶
-
FILTER_SEARCH_OR
= 'search_OR'¶
-
OPERATOR_CO
= 'CO'¶
-
OPERATOR_EQ
= 'EQ'¶
-
OPERATOR_FALSE
= 'FALSE'¶
-
OPERATOR_GE
= 'GE'¶
-
OPERATOR_GT
= 'GT'¶
-
OPERATOR_IN
= 'IN'¶
-
OPERATOR_LE
= 'LE'¶
-
OPERATOR_LIKE
= 'LIKE'¶
-
OPERATOR_LT
= 'LT'¶
-
OPERATOR_NC
= 'NC'¶
-
OPERATOR_NE
= 'NE'¶
-
OPERATOR_NOTLIKE
= 'NOTLIKE'¶
-
OPERATOR_NOT_IN
= 'NOT_IN'¶
-
OPERATOR_NULL
= 'NULL'¶
-
OPERATOR_SUBWHERE
= 'SUBWHERE'¶
-
OPERATOR_TRUE
= 'TRUE'¶
-
VALID_FILTERS
= ['search', 'search_AND', 'search_OR']¶
-
VALID_OPERATORS
= ['EQ', 'GT', 'GE', 'LT', 'LE', 'CO', 'NC', 'LIKE', 'NOTLIKE', 'NE', 'TRUE', 'FALSE', 'NULL', 'IN', 'NOT_IN', 'SUBWHERE']¶
-
add
(field: str, operator, value, filter_type) → merchantapi.listquery.FilterExpression[source]¶ Add a search filter.
- Parameters
field – str
operator – str
value – mixed
filter_type – str
- Returns
FilterExpression
- Raises
Exception –
-
and_contains
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a contains (AND x CO y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
and_does_not_contain
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a does not contains (AND x NC y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
and_equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a equal (AND x EQ y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
and_greater_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than (AND x GT y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
and_greater_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than or equal (AND x GE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
and_is_false
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a false (AND x == false) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
and_is_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a in (AND x IN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
and_is_null
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a is None (AND x == None) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
and_is_true
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a true (AND x == true) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
and_less_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than (AND x LT y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
and_less_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than or equal (AND x LE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
and_like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a like (AND x LIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
and_not_equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not equal (AND x NE y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
and_not_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not in (AND x NOTIN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
and_not_like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a not like (AND x NOTLIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
and_x
(expression) → merchantapi.listquery.FilterExpression[source]¶ Add a AND expression.
- Parameters
expression – FilterExpression
- Returns
FilterExpression
- Raises
Exception –
-
contains
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a contains (x CO y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
does_not_contain
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a does not contains (x NC y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a equal (x EQ y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
expr
() → merchantapi.listquery.FilterExpression[source]¶ Create a new expression instance.
- Returns
FilterExpression
-
get_parent
() -> ('FilterExpression', None)[source]¶ Get the parent expression.
- Returns
FilterExpression|None
-
greater_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than (x GT y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
greater_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than or equal (x GE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
is_false
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a false (x == false) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
is_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a in (x IN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
is_null
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a is None (x == None) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
is_true
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a true (x == true) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
less_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than (x LT y) filter for specified field. :param field: str :param value: int|float :return: FilterExpression
-
less_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than or equal (x LE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a like (x LIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
not_equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not equal (x NE y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
not_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not in (x NOTIN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
not_like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a not like (x NOTLIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
or_contains
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a contains (OR x CO y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
or_does_not_contain
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a does not contains (OR x NC y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
or_equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a equal (OR x EQ y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
or_greater_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than (OR x GT y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
or_greater_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a greater than or equal (OR x GE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
or_is_false
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a false (OR x == false) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
or_is_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a in (OR x IN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
or_is_null
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a is None (OR x == None) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
or_is_true
(field: str) → merchantapi.listquery.FilterExpression[source]¶ Add a true (OR x == true) filter for specified field.
- Parameters
field – str
- Returns
FilterExpression
-
or_less_than
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than (OR x LT y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
or_less_than_equal
(field: str, value: (<class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a less than or equal (OR x LE y) filter for specified field.
- Parameters
field – str
value – int|float
- Returns
FilterExpression
-
or_like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a like (OR x LIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
or_not_equal
(field: str, value: (<class 'str'>, <class 'int'>, <class 'float'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not equal (OR x NE y) filter for specified field.
- Parameters
field – str
value – mixed
- Returns
FilterExpression
-
or_not_in
(field: str, values: (<class 'str'>, <class 'list'>)) → merchantapi.listquery.FilterExpression[source]¶ Add a not in (OR x NOTIN y,z,.. ) filter for specified field.
- Parameters
field – str
values – list|str
- Returns
FilterExpression
-
or_not_like
(field: str, value: str) → merchantapi.listquery.FilterExpression[source]¶ Add a not like (OR x NOTLIKE y) filter for specified field.
- Parameters
field – str
value – str
- Returns
FilterExpression
-
or_x
(expression) → merchantapi.listquery.FilterExpression[source]¶ Add a OR expression.
- Parameters
expression – FilterExpression
- Returns
FilterExpression
- Raises
Exception –
-
-
class
merchantapi.listquery.
FilterExpressionEntry
(left, operator, right, search='search')[source]¶ Bases:
object
-
set_left
(left) → merchantapi.listquery.FilterExpressionEntry[source]¶ Set the left side of the comparison.
- Parameters
left – str
- Returns
FilterExpressionEntry
-
-
class
merchantapi.listquery.
ListQueryRequest
(client: merchantapi.abstract.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
SORT_ASCENDING
= 'asc'¶
-
SORT_DESCENDING
= 'desc'¶
-
add_on_demand_column
(column: str) → merchantapi.listquery.ListQueryRequest[source]¶ Add an on demand column to the request.
- Parameters
column – str
- Returns
ListQueryRequest
- Raises
Exception –
-
available_custom_filters
= {}¶
-
available_on_demand_columns
= []¶
-
available_search_fields
= []¶
-
available_sort_fields
= []¶
-
create_response
(data) → merchantapi.listquery.ListQueryResponse[source]¶ Creates a ListQueryResponse from an api response
- Returns
ListQueryResponse
-
filter_expression
()[source]¶ Creates a new FilterExpression object in the context of the request. :returns: FilterExpression
-
get_available_custom_filters
() → dict[source]¶ Get the available custom filters for the request.
- Returns
dict
-
get_available_on_demand_columns
() → list[source]¶ Get the available on demand columns for the request.
- Returns
list
-
get_available_search_fields
() → list[source]¶ Get the available search fields for the request.
- Returns
list
-
get_available_sort_fields
() → list[source]¶ Get the available sorting fields for the request.
@returns: list
-
get_filters
() -> (<class 'list'>, 'FilterExpression')[source]¶ Get the search filters to apply to the request.
- Returns
list|FilterExpression
-
remove_custom_filter
(name) → merchantapi.listquery.ListQueryRequest[source]¶ Remove a custom filter applied to the request.
- Parameters
name – str
- Returns
ListQueryRequest
-
remove_on_demand_column
(column: str) → merchantapi.listquery.ListQueryRequest[source]¶ Remove an on demand column from the request.
- Parameters
column – str
- Returns
ListQueryRequest
-
set_count
(count: int) → merchantapi.listquery.ListQueryRequest[source]¶ Set the maximum records to request.
- Parameters
count – int
- Returns
ListQueryRequest
-
set_custom_filter
(name: str, value) → merchantapi.listquery.ListQueryRequest[source]¶ Set a custom filter supported by the request.
- Parameters
name – str
value – mixed
- Returns
ListQueryRequest
- Raises
Exception –
-
set_filters
(filters: (<class 'list'>, 'FilterExpression')) → merchantapi.listquery.ListQueryRequest[source]¶ Set the search filters to apply to the request.
- Parameters
filters – list|FilterExpression
- Raises
Exception –
- Returns
ListQueryRequest
-
set_offset
(offset: int) → merchantapi.listquery.ListQueryRequest[source]¶ Set the record offset.
- Parameters
offset – int
- Returns
ListQueryRequest
-
set_on_demand_columns
(columns: list) → merchantapi.listquery.ListQueryRequest[source]¶ Set the on demand columns to fetch.
- Param
list
- Returns
ListQueryRequest
-
merchantapi.model module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
$Id: model.py 77709 2019-08-30 16:41:54Z gidriss $
-
class
merchantapi.model.
AvailabilityGroup
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
Category
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_active
(active: bool) → merchantapi.model.Category[source]¶ Set active.
- Parameters
active – bool
- Returns
Category
-
set_code
(code: str) → merchantapi.model.Category[source]¶ Set code.
- Parameters
code – string
- Returns
Category
-
set_custom_field_values
(custom_field_values) → merchantapi.model.Category[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues|dict
- Returns
Category
- Raises
Exception –
-
set_name
(name: str) → merchantapi.model.Category[source]¶ Set name.
- Parameters
name – string
- Returns
Category
-
set_page_code
(page_code: str) → merchantapi.model.Category[source]¶ Set page_code.
- Parameters
page_code – string
- Returns
Category
-
set_page_title
(page_title: str) → merchantapi.model.Category[source]¶ Set page_title.
- Parameters
page_title – string
- Returns
Category
-
-
class
merchantapi.model.
CategoryProduct
(data: dict = None)[source]¶ Bases:
merchantapi.model.Product
-
class
merchantapi.model.
Coupon
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
CUSTOMER_SCOPE_ALL_LOGGED_IN
= 'L'¶
-
CUSTOMER_SCOPE_ALL_SHOPPERS
= 'A'¶
-
CUSTOMER_SCOPE_SPECIFIC_CUSTOMERS
= 'X'¶
-
set_active
(active: bool) → merchantapi.model.Coupon[source]¶ Set active.
- Parameters
active – bool
- Returns
Coupon
-
set_code
(code: str) → merchantapi.model.Coupon[source]¶ Set code.
- Parameters
code – string
- Returns
Coupon
-
set_customer_scope
(customer_scope: str) → merchantapi.model.Coupon[source]¶ Set custscope.
- Parameters
customer_scope – string
- Returns
Coupon
-
set_date_time_start
(date_time_start)[source]¶ Set dt_start.
- Parameters
date_time_start – int
- Returns
Coupon
-
set_description
(description: str) → merchantapi.model.Coupon[source]¶ Set descrip.
- Parameters
description – string
- Returns
Coupon
-
-
class
merchantapi.model.
CouponPriceGroup
(data: dict = None)[source]¶ Bases:
merchantapi.model.PriceGroup
-
class
merchantapi.model.
CustomFieldValues
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
add_value
(field: str, value, module: str = 'customfields') → merchantapi.model.CustomFieldValues[source]¶ Same as set_value.
- Parameters
field – str
value – mixed
module – std
- Returns
CustomFieldValues
-
get_module
(module: str)[source]¶ Get a specific modules custom field values.
- Parameters
module – str
- Returns
dict
-
get_value
(code: str, module: str = 'customfields')[source]¶ Get a value for a module by its code.
- Parameters
code – str
module – str
- Returns
mixed
-
has_module
(module: str)[source]¶ Check if a specific module is defined.
- Parameters
module – str
- Returns
boolean
-
-
class
merchantapi.model.
Customer
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_bill_address1
(bill_address1: str) → merchantapi.model.Customer[source]¶ Set bill_addr1.
- Parameters
bill_address1 – string
- Returns
Customer
-
set_bill_address2
(bill_address2: str) → merchantapi.model.Customer[source]¶ Set bill_addr2.
- Parameters
bill_address2 – string
- Returns
Customer
-
set_bill_city
(bill_city: str) → merchantapi.model.Customer[source]¶ Set bill_city.
- Parameters
bill_city – string
- Returns
Customer
-
set_bill_company
(bill_company: str) → merchantapi.model.Customer[source]¶ Set bill_comp.
- Parameters
bill_company – string
- Returns
Customer
-
set_bill_country
(bill_country: str) → merchantapi.model.Customer[source]¶ Set bill_cntry.
- Parameters
bill_country – string
- Returns
Customer
-
set_bill_email
(bill_email: str) → merchantapi.model.Customer[source]¶ Set bill_email.
- Parameters
bill_email – string
- Returns
Customer
-
set_bill_fax
(bill_fax: str) → merchantapi.model.Customer[source]¶ Set bill_fax.
- Parameters
bill_fax – string
- Returns
Customer
-
set_bill_first_name
(bill_first_name: str) → merchantapi.model.Customer[source]¶ Set bill_fname.
- Parameters
bill_first_name – string
- Returns
Customer
-
set_bill_last_name
(bill_last_name: str) → merchantapi.model.Customer[source]¶ Set bill_lname.
- Parameters
bill_last_name – string
- Returns
Customer
-
set_bill_phone
(bill_phone: str) → merchantapi.model.Customer[source]¶ Set bill_phone.
- Parameters
bill_phone – string
- Returns
Customer
-
set_bill_state
(bill_state: str) → merchantapi.model.Customer[source]¶ Set bill_state.
- Parameters
bill_state – string
- Returns
Customer
-
set_bill_zip
(bill_zip: str) → merchantapi.model.Customer[source]¶ Set bill_zip.
- Parameters
bill_zip – string
- Returns
Customer
-
set_custom_field_values
(custom_field_values) → merchantapi.model.Customer[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues|dict
- Returns
Customer
- Raises
Exception –
-
set_login
(login: str) → merchantapi.model.Customer[source]¶ Set login.
- Parameters
login – string
- Returns
Customer
-
set_password_email
(password_email: str) → merchantapi.model.Customer[source]¶ Set pw_email.
- Parameters
password_email – string
- Returns
Customer
-
set_ship_address1
(ship_address1: str) → merchantapi.model.Customer[source]¶ Set ship_addr1.
- Parameters
ship_address1 – string
- Returns
Customer
-
set_ship_address2
(ship_address2: str) → merchantapi.model.Customer[source]¶ Set ship_addr2.
- Parameters
ship_address2 – string
- Returns
Customer
-
set_ship_city
(ship_city: str) → merchantapi.model.Customer[source]¶ Set ship_city.
- Parameters
ship_city – string
- Returns
Customer
-
set_ship_company
(ship_company: str) → merchantapi.model.Customer[source]¶ Set ship_comp.
- Parameters
ship_company – string
- Returns
Customer
-
set_ship_country
(ship_country: str) → merchantapi.model.Customer[source]¶ Set ship_cntry.
- Parameters
ship_country – string
- Returns
Customer
-
set_ship_email
(ship_email: str) → merchantapi.model.Customer[source]¶ Set ship_email.
- Parameters
ship_email – string
- Returns
Customer
-
set_ship_fax
(ship_fax: str) → merchantapi.model.Customer[source]¶ Set ship_fax.
- Parameters
ship_fax – string
- Returns
Customer
-
set_ship_first_name
(ship_first_name: str) → merchantapi.model.Customer[source]¶ Set ship_fname.
- Parameters
ship_first_name – string
- Returns
Customer
-
set_ship_last_name
(ship_last_name: str) → merchantapi.model.Customer[source]¶ Set ship_lname.
- Parameters
ship_last_name – string
- Returns
Customer
-
set_ship_phone
(ship_phone: str) → merchantapi.model.Customer[source]¶ Set ship_phone.
- Parameters
ship_phone – string
- Returns
Customer
-
set_ship_state
(ship_state: str) → merchantapi.model.Customer[source]¶ Set ship_state.
- Parameters
ship_state – string
- Returns
Customer
-
set_ship_zip
(ship_zip: str) → merchantapi.model.Customer[source]¶ Set ship_zip.
- Parameters
ship_zip – string
- Returns
Customer
-
-
class
merchantapi.model.
CustomerAddress
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
CustomerPaymentCard
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
CustomerPriceGroup
(data: dict = None)[source]¶ Bases:
merchantapi.model.PriceGroup
-
class
merchantapi.model.
DiscountModuleCapabilities
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
Module
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
Note
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_account_id
(account_id: int) → merchantapi.model.Note[source]¶ Set account_id.
- Parameters
account_id – int
- Returns
Note
-
set_customer_id
(customer_id: int) → merchantapi.model.Note[source]¶ Set cust_id.
- Parameters
customer_id – int
- Returns
Note
-
-
class
merchantapi.model.
Order
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
ORDER_PAYMENT_STATUS_AUTHORIZED
= 100¶
-
ORDER_PAYMENT_STATUS_CAPTURED
= 200¶
-
ORDER_PAYMENT_STATUS_PARTIALLY_CAPTURED
= 201¶
-
ORDER_PAYMENT_STATUS_PENDING
= 0¶
-
ORDER_STATUS_BACKORDERED
= 400¶
-
ORDER_STATUS_CANCELLED
= 300¶
-
ORDER_STATUS_PARTIALLY_SHIPPED
= 201¶
-
ORDER_STATUS_PENDING
= 0¶
-
ORDER_STATUS_PROCESSING
= 100¶
-
ORDER_STATUS_RETURNED
= 600¶
-
ORDER_STATUS_RMA_ISSUED
= 500¶
-
ORDER_STATUS_SHIPPED
= 200¶
-
ORDER_STOCK_STATUS_AVAILABLE
= 100¶
-
ORDER_STOCK_STATUS_PARTIAL
= 201¶
-
ORDER_STOCK_STATUS_UNAVAILABLE
= 200¶
Get formatted_total_auth.
- Returns
string
Get total_auth.
- Returns
float
-
set_bill_address1
(bill_address1: str) → merchantapi.model.Order[source]¶ Set bill_addr1.
- Parameters
bill_address1 – string
- Returns
Order
-
set_bill_address2
(bill_address2: str) → merchantapi.model.Order[source]¶ Set bill_addr2.
- Parameters
bill_address2 – string
- Returns
Order
-
set_bill_city
(bill_city: str) → merchantapi.model.Order[source]¶ Set bill_city.
- Parameters
bill_city – string
- Returns
Order
-
set_bill_company
(bill_company: str) → merchantapi.model.Order[source]¶ Set bill_comp.
- Parameters
bill_company – string
- Returns
Order
-
set_bill_country
(bill_country: str) → merchantapi.model.Order[source]¶ Set bill_cntry.
- Parameters
bill_country – string
- Returns
Order
-
set_bill_email
(bill_email: str) → merchantapi.model.Order[source]¶ Set bill_email.
- Parameters
bill_email – string
- Returns
Order
-
set_bill_fax
(bill_fax: str) → merchantapi.model.Order[source]¶ Set bill_fax.
- Parameters
bill_fax – string
- Returns
Order
-
set_bill_first_name
(bill_first_name: str) → merchantapi.model.Order[source]¶ Set bill_fname.
- Parameters
bill_first_name – string
- Returns
Order
-
set_bill_last_name
(bill_last_name: str) → merchantapi.model.Order[source]¶ Set bill_lname.
- Parameters
bill_last_name – string
- Returns
Order
-
set_bill_phone
(bill_phone: str) → merchantapi.model.Order[source]¶ Set bill_phone.
- Parameters
bill_phone – string
- Returns
Order
-
set_bill_state
(bill_state: str) → merchantapi.model.Order[source]¶ Set bill_state.
- Parameters
bill_state – string
- Returns
Order
-
set_bill_zip
(bill_zip: str) → merchantapi.model.Order[source]¶ Set bill_zip.
- Parameters
bill_zip – string
- Returns
Order
-
set_customer_id
(customer_id: int) → merchantapi.model.Order[source]¶ Set cust_id.
- Parameters
customer_id – int
- Returns
Order
-
set_ship_address1
(ship_address1: str) → merchantapi.model.Order[source]¶ Set ship_addr1.
- Parameters
ship_address1 – string
- Returns
Order
-
set_ship_address2
(ship_address2: str) → merchantapi.model.Order[source]¶ Set ship_addr2.
- Parameters
ship_address2 – string
- Returns
Order
-
set_ship_city
(ship_city: str) → merchantapi.model.Order[source]¶ Set ship_city.
- Parameters
ship_city – string
- Returns
Order
-
set_ship_company
(ship_company: str) → merchantapi.model.Order[source]¶ Set ship_comp.
- Parameters
ship_company – string
- Returns
Order
-
set_ship_country
(ship_country: str) → merchantapi.model.Order[source]¶ Set ship_cntry.
- Parameters
ship_country – string
- Returns
Order
-
set_ship_email
(ship_email: str) → merchantapi.model.Order[source]¶ Set ship_email.
- Parameters
ship_email – string
- Returns
Order
-
set_ship_fax
(ship_fax: str) → merchantapi.model.Order[source]¶ Set ship_fax.
- Parameters
ship_fax – string
- Returns
Order
-
set_ship_first_name
(ship_first_name: str) → merchantapi.model.Order[source]¶ Set ship_fname.
- Parameters
ship_first_name – string
- Returns
Order
-
set_ship_last_name
(ship_last_name: str) → merchantapi.model.Order[source]¶ Set ship_lname.
- Parameters
ship_last_name – string
- Returns
Order
-
set_ship_phone
(ship_phone: str) → merchantapi.model.Order[source]¶ Set ship_phone.
- Parameters
ship_phone – string
- Returns
Order
-
set_ship_state
(ship_state: str) → merchantapi.model.Order[source]¶ Set ship_state.
- Parameters
ship_state – string
- Returns
Order
-
-
class
merchantapi.model.
OrderCharge
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_amount
(amount: float) → merchantapi.model.OrderCharge[source]¶ Set amount.
- Parameters
amount – int
- Returns
OrderCharge
-
set_description
(description: str) → merchantapi.model.OrderCharge[source]¶ Set descrip.
- Parameters
description – string
- Returns
OrderCharge
-
set_display_amount
(display_amount: float) → merchantapi.model.OrderCharge[source]¶ Set disp_amt.
- Parameters
display_amount – int
- Returns
OrderCharge
-
-
class
merchantapi.model.
OrderCoupon
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
OrderCustomField
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_choices
(choices) → merchantapi.model.OrderCustomField[source]¶ Set choices.
- Parameters
choices – list
- Returns
OrderCustomField
-
set_code
(code: str) → merchantapi.model.OrderCustomField[source]¶ Set code.
- Parameters
code – string
- Returns
OrderCustomField
-
set_module
(module) → merchantapi.model.OrderCustomField[source]¶ Set module.
- Parameters
module – Module|dict
- Returns
OrderCustomField
- Raises
Exception –
-
set_name
(name: str) → merchantapi.model.OrderCustomField[source]¶ Set name.
- Parameters
name – string
- Returns
OrderCustomField
-
set_searchable
(searchable: bool) → merchantapi.model.OrderCustomField[source]¶ Set searchable.
- Parameters
searchable – bool
- Returns
OrderCustomField
-
set_sortable
(sortable: bool) → merchantapi.model.OrderCustomField[source]¶ Set sortable.
- Parameters
sortable – bool
- Returns
OrderCustomField
-
-
class
merchantapi.model.
OrderDiscountTotal
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
OrderItem
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
ORDER_ITEM_STATUS_BACKORDERED
= 400¶
-
ORDER_ITEM_STATUS_CANCELLED
= 300¶
-
ORDER_ITEM_STATUS_DIGITAL_DOWNLOADED
= 221¶
-
ORDER_ITEM_STATUS_DIGITAL_NOT_DOWNLOADED
= 220¶
-
ORDER_ITEM_STATUS_GIFT_CERT_NOT_REDEEMED
= 210¶
-
ORDER_ITEM_STATUS_GIFT_CERT_REDEEMED
= 211¶
-
ORDER_ITEM_STATUS_PARTIALLY_SHIPPED
= 201¶
-
ORDER_ITEM_STATUS_PENDING
= 0¶
-
ORDER_ITEM_STATUS_PROCESSING
= 100¶
-
ORDER_ITEM_STATUS_RETURNED
= 600¶
-
ORDER_ITEM_STATUS_RMA_ISSUED
= 500¶
-
ORDER_ITEM_STATUS_SHIPPED
= 200¶
-
add_option
(option: merchantapi.model.OrderItemOption) → merchantapi.model.OrderItem[source]¶ Add a OrderItemOption.
- Parameters
option – OrderItemOption
- Returns
OrderItem
-
set_code
(code: str) → merchantapi.model.OrderItem[source]¶ Set code.
- Parameters
code – string
- Returns
OrderItem
-
set_name
(name: str) → merchantapi.model.OrderItem[source]¶ Set name.
- Parameters
name – string
- Returns
OrderItem
-
set_options
(options: list) → merchantapi.model.OrderItem[source]¶ Set options.
- Parameters
options – List of OrderItemOption
- Raises
Exception –
- Returns
OrderItem
-
set_price
(price: float) → merchantapi.model.OrderItem[source]¶ Set price.
- Parameters
price – int
- Returns
OrderItem
-
set_quantity
(quantity: int) → merchantapi.model.OrderItem[source]¶ Set quantity.
- Parameters
quantity – int
- Returns
OrderItem
-
set_sku
(sku: str) → merchantapi.model.OrderItem[source]¶ Set sku.
- Parameters
sku – string
- Returns
OrderItem
-
set_status
(status: int) → merchantapi.model.OrderItem[source]¶ Set status.
- Parameters
status – int
- Returns
OrderItem
-
set_taxable
(taxable: bool) → merchantapi.model.OrderItem[source]¶ Set taxable.
- Parameters
taxable – bool
- Returns
OrderItem
-
set_tracking_number
(tracking_number: str) → merchantapi.model.OrderItem[source]¶ Set tracknum.
- Parameters
tracking_number – string
- Returns
OrderItem
-
set_tracking_type
(tracking_type: str) → merchantapi.model.OrderItem[source]¶ Set tracktype.
- Parameters
tracking_type – string
- Returns
OrderItem
-
set_upsold
(upsold: bool) → merchantapi.model.OrderItem[source]¶ Set upsold.
- Parameters
upsold – bool
- Returns
OrderItem
-
-
class
merchantapi.model.
OrderItemAttribute
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_attribute_code
(attribute_code: str) → merchantapi.model.OrderItemAttribute[source]¶ Set attr_code.
- Parameters
attribute_code – string
- Returns
OrderItemAttribute
-
set_option_code_or_data
(option_code_or_data: str) → merchantapi.model.OrderItemAttribute[source]¶ Set opt_code_or_data.
- Parameters
option_code_or_data – string
- Returns
OrderItemAttribute
-
-
class
merchantapi.model.
OrderItemDiscount
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
OrderItemOption
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_attribute
(attribute: str) → merchantapi.model.OrderItemOption[source]¶ Set attribute.
- Parameters
attribute – string
- Returns
OrderItemOption
-
set_price
(price: float) → merchantapi.model.OrderItemOption[source]¶ Set price.
- Parameters
price – int
- Returns
OrderItemOption
-
set_value
(value: str) → merchantapi.model.OrderItemOption[source]¶ Set value.
- Parameters
value – string
- Returns
OrderItemOption
-
-
class
merchantapi.model.
OrderItemSubscription
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
OrderNote
(data: dict = None)[source]¶ Bases:
merchantapi.model.Note
-
class
merchantapi.model.
OrderPayment
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
ORDER_PAYMENT_TYPE_AUTH
= 3¶
-
ORDER_PAYMENT_TYPE_AUTH_CAPTURE
= 5¶
-
ORDER_PAYMENT_TYPE_CAPTURE
= 4¶
-
ORDER_PAYMENT_TYPE_DECLINED
= 0¶
-
ORDER_PAYMENT_TYPE_LEGACY_AUTH
= 1¶
-
ORDER_PAYMENT_TYPE_LEGACY_CAPTURE
= 2¶
-
ORDER_PAYMENT_TYPE_REFUND
= 6¶
-
ORDER_PAYMENT_TYPE_VOID
= 7¶
-
-
class
merchantapi.model.
OrderPaymentAuthorize
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
Get formatted_total_auth.
- Returns
string
Get total_auth.
- Returns
float
-
class
merchantapi.model.
OrderPaymentTotal
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
Get formatted_total_auth.
- Returns
string
Get total_auth.
- Returns
float
-
class
merchantapi.model.
OrderProduct
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
add_attribute
(attribute: merchantapi.model.OrderProductAttribute) → merchantapi.model.OrderProduct[source]¶ Add a OrderProductAttribute.
- Parameters
attribute – OrderProductAttribute
- Returns
OrderProduct
-
set_attributes
(attributes: list) → merchantapi.model.OrderProduct[source]¶ Set attributes.
- Parameters
attributes – List of OrderProductAttribute
- Raises
Exception –
- Returns
OrderProduct
-
set_code
(code: str) → merchantapi.model.OrderProduct[source]¶ Set code.
- Parameters
code – string
- Returns
OrderProduct
-
set_quantity
(quantity: int) → merchantapi.model.OrderProduct[source]¶ Set quantity.
- Parameters
quantity – int
- Returns
OrderProduct
-
set_sku
(sku: str) → merchantapi.model.OrderProduct[source]¶ Set sku.
- Parameters
sku – string
- Returns
OrderProduct
-
set_status
(status: int) → merchantapi.model.OrderProduct[source]¶ Set status.
- Parameters
status – int
- Returns
OrderProduct
-
set_tracking_number
(tracking_number: str) → merchantapi.model.OrderProduct[source]¶ Set tracknum.
- Parameters
tracking_number – string
- Returns
OrderProduct
-
-
class
merchantapi.model.
OrderProductAttribute
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_code
(code: str) → merchantapi.model.OrderProductAttribute[source]¶ Set code.
- Parameters
code – string
- Returns
OrderProductAttribute
-
-
class
merchantapi.model.
OrderShipment
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
ORDER_SHIPMENT_STATUS_PENDING
= 0¶
-
ORDER_SHIPMENT_STATUS_PICKING
= 100¶
-
ORDER_SHIPMENT_STATUS_SHIPPED
= 200¶
-
set_batch_id
(batch_id: int) → merchantapi.model.OrderShipment[source]¶ Set batch_id.
- Parameters
batch_id – int
- Returns
OrderShipment
-
set_code
(code: str) → merchantapi.model.OrderShipment[source]¶ Set code.
- Parameters
code – string
- Returns
OrderShipment
-
set_cost
(cost: float) → merchantapi.model.OrderShipment[source]¶ Set cost.
- Parameters
cost – int
- Returns
OrderShipment
-
set_id
(id: int) → merchantapi.model.OrderShipment[source]¶ Set id.
- Parameters
id – int
- Returns
OrderShipment
-
set_label_count
(label_count: int) → merchantapi.model.OrderShipment[source]¶ Set labelcount.
- Parameters
label_count – int
- Returns
OrderShipment
-
set_order_id
(order_id: int) → merchantapi.model.OrderShipment[source]¶ Set order_id.
- Parameters
order_id – int
- Returns
OrderShipment
-
set_ship_date
(ship_date: int) → merchantapi.model.OrderShipment[source]¶ Set ship_date.
- Parameters
ship_date – int
- Returns
OrderShipment
-
set_status
(status: int) → merchantapi.model.OrderShipment[source]¶ Set status.
- Parameters
status – int
- Returns
OrderShipment
-
set_tracking_link
(tracking_link: str) → merchantapi.model.OrderShipment[source]¶ Set tracklink.
- Parameters
tracking_link – string
- Returns
OrderShipment
-
set_tracking_number
(tracking_number: str) → merchantapi.model.OrderShipment[source]¶ Set tracknum.
- Parameters
tracking_number – string
- Returns
OrderShipment
-
-
class
merchantapi.model.
OrderShipmentUpdate
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_cost
(cost: float) → merchantapi.model.OrderShipmentUpdate[source]¶ Set cost.
- Parameters
cost – int
- Returns
OrderShipmentUpdate
-
set_mark_shipped
(mark_shipped: bool) → merchantapi.model.OrderShipmentUpdate[source]¶ Set mark_shipped.
- Parameters
mark_shipped – bool
- Returns
OrderShipmentUpdate
-
set_shipment_id
(shipment_id: int) → merchantapi.model.OrderShipmentUpdate[source]¶ Set shpmnt_id.
- Parameters
shipment_id – int
- Returns
OrderShipmentUpdate
-
-
class
merchantapi.model.
OrderTotal
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
PaymentCardType
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
PaymentMethod
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
PriceGroup
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
ELIGIBILITY_ALL
= 'A'¶
-
ELIGIBILITY_COUPON
= 'C'¶
-
ELIGIBILITY_CUSTOMER
= 'X'¶
-
ELIGIBILITY_LOGGED_IN
= 'L'¶
-
set_basket_maximum_quantity
(basket_maximum_quantity: int) → merchantapi.model.PriceGroup[source]¶ Set bmx_quan.
- Parameters
basket_maximum_quantity – int
- Returns
PriceGroup
-
set_basket_maximum_subtotal
(basket_maximum_subtotal: float) → merchantapi.model.PriceGroup[source]¶ Set bmx_subtot.
- Parameters
basket_maximum_subtotal – int
- Returns
PriceGroup
-
set_basket_maximum_weight
(basket_maximum_weight: float) → merchantapi.model.PriceGroup[source]¶ Set bmx_weight.
- Parameters
basket_maximum_weight – int
- Returns
PriceGroup
-
set_basket_minimum_quantity
(basket_minimum_quantity: int) → merchantapi.model.PriceGroup[source]¶ Set bmn_quan.
- Parameters
basket_minimum_quantity – int
- Returns
PriceGroup
-
set_basket_minimum_subtotal
(basket_minimum_subtotal: float) → merchantapi.model.PriceGroup[source]¶ Set bmn_subtot.
- Parameters
basket_minimum_subtotal – int
- Returns
PriceGroup
-
set_basket_minimum_weight
(basket_minimum_weight: float) → merchantapi.model.PriceGroup[source]¶ Set bmn_weight.
- Parameters
basket_minimum_weight – int
- Returns
PriceGroup
-
set_customer_scope
(customer_scope: str) → merchantapi.model.PriceGroup[source]¶ Set custscope.
- Parameters
customer_scope – string
- Returns
PriceGroup
-
set_date_time_end
(date_time_end)[source]¶ Set dt_end.
- Parameters
date_time_end – int
- Returns
PriceGroup
-
set_date_time_start
(date_time_start)[source]¶ Set dt_start.
- Parameters
date_time_start – int
- Returns
PriceGroup
-
set_description
(description: str) → merchantapi.model.PriceGroup[source]¶ Set descrip.
- Parameters
description – string
- Returns
PriceGroup
-
set_discount
(discount: float) → merchantapi.model.PriceGroup[source]¶ Set discount.
- Parameters
discount – int
- Returns
PriceGroup
-
set_display
(display: bool) → merchantapi.model.PriceGroup[source]¶ Set display.
- Parameters
display – bool
- Returns
PriceGroup
-
set_exclusion
(exclusion: bool) → merchantapi.model.PriceGroup[source]¶ Set exclusion.
- Parameters
exclusion – bool
- Returns
PriceGroup
-
set_maximum_quantity
(maximum_quantity: int) → merchantapi.model.PriceGroup[source]¶ Set qmx_quan.
- Parameters
maximum_quantity – int
- Returns
PriceGroup
-
set_maximum_subtotal
(maximum_subtotal: float) → merchantapi.model.PriceGroup[source]¶ Set qmx_subtot.
- Parameters
maximum_subtotal – int
- Returns
PriceGroup
-
set_maximum_weight
(maximum_weight: float) → merchantapi.model.PriceGroup[source]¶ Set qmx_weight.
- Parameters
maximum_weight – int
- Returns
PriceGroup
-
set_minimum_quantity
(minimum_quantity: int) → merchantapi.model.PriceGroup[source]¶ Set qmn_quan.
- Parameters
minimum_quantity – int
- Returns
PriceGroup
-
set_minimum_subtotal
(minimum_subtotal: float) → merchantapi.model.PriceGroup[source]¶ Set qmn_subtot.
- Parameters
minimum_subtotal – int
- Returns
PriceGroup
-
set_minimum_weight
(minimum_weight: float) → merchantapi.model.PriceGroup[source]¶ Set qmn_weight.
- Parameters
minimum_weight – int
- Returns
PriceGroup
-
set_module
(module) → merchantapi.model.PriceGroup[source]¶ Set module.
- Parameters
module – Module|dict
- Returns
PriceGroup
- Raises
Exception –
-
-
class
merchantapi.model.
PriceGroupCustomer
(data: dict = None)[source]¶ Bases:
merchantapi.model.Customer
-
class
merchantapi.model.
PriceGroupProduct
(data: dict = None)[source]¶ Bases:
merchantapi.model.Product
-
class
merchantapi.model.
PrintQueue
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
PrintQueueJob
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
Product
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
get_product_inventory_settings
()[source]¶ Get productinventorysettings.
- Returns
ProductInventorySettings|None
Get relatedproducts.
- Returns
List of RelatedProduct
-
set_active
(active: bool) → merchantapi.model.Product[source]¶ Set active.
- Parameters
active – bool
- Returns
Product
-
set_canonical_category_code
(canonical_category_code: str) → merchantapi.model.Product[source]¶ Set cancat_code.
- Parameters
canonical_category_code – string
- Returns
Product
-
set_code
(code: str) → merchantapi.model.Product[source]¶ Set code.
- Parameters
code – string
- Returns
Product
-
set_cost
(cost: float) → merchantapi.model.Product[source]¶ Set cost.
- Parameters
cost – int
- Returns
Product
-
set_custom_field_values
(custom_field_values) → merchantapi.model.Product[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues|dict
- Returns
Product
- Raises
Exception –
-
set_description
(description: str) → merchantapi.model.Product[source]¶ Set descrip.
- Parameters
description – string
- Returns
Product
-
set_image
(image: str) → merchantapi.model.Product[source]¶ Set image.
- Parameters
image – string
- Returns
Product
-
set_name
(name: str) → merchantapi.model.Product[source]¶ Set name.
- Parameters
name – string
- Returns
Product
-
set_page_code
(page_code: str) → merchantapi.model.Product[source]¶ Set page_code.
- Parameters
page_code – string
- Returns
Product
-
set_page_title
(page_title: str) → merchantapi.model.Product[source]¶ Set page_title.
- Parameters
page_title – string
- Returns
Product
-
set_price
(price: float) → merchantapi.model.Product[source]¶ Set price.
- Parameters
price – int
- Returns
Product
-
set_product_inventory
(product_inventory: int) → merchantapi.model.Product[source]¶ Set product_inventory.
- Parameters
product_inventory – int
- Returns
Product
-
set_sku
(sku: str) → merchantapi.model.Product[source]¶ Set sku.
- Parameters
sku – string
- Returns
Product
-
set_taxable
(taxable: bool) → merchantapi.model.Product[source]¶ Set taxable.
- Parameters
taxable – bool
- Returns
Product
-
set_thumbnail
(thumbnail: str) → merchantapi.model.Product[source]¶ Set thumbnail.
- Parameters
thumbnail – string
- Returns
Product
-
-
class
merchantapi.model.
ProductAttribute
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductImageData
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductInventoryAdjustment
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_adjustment
(adjustment: float) → merchantapi.model.ProductInventoryAdjustment[source]¶ Set adjustment.
- Parameters
adjustment – int
- Returns
ProductInventoryAdjustment
-
set_product_code
(product_code: str) → merchantapi.model.ProductInventoryAdjustment[source]¶ Set product_code.
- Parameters
product_code – string
- Returns
ProductInventoryAdjustment
-
-
class
merchantapi.model.
ProductInventorySettings
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductOption
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductShippingMethod
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductShippingRules
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
add_method
(method: merchantapi.model.ProductShippingMethod) → merchantapi.model.ProductShippingRules[source]¶ Add a ProductShippingMethod.
- Parameters
method – ProductShippingMethod
- Returns
ProductShippingRules
-
-
class
merchantapi.model.
ProductSubscriptionTerm
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
TERM_FREQUENCY_ANNUALLY
= 'annually'¶
-
TERM_FREQUENCY_BIWEEKLY
= 'biweekly'¶
-
TERM_FREQUENCY_DAILY
= 'daily'¶
-
TERM_FREQUENCY_DATES
= 'dates'¶
-
TERM_FREQUENCY_FIXED_MONTHLY
= 'fixedmonthly'¶
-
TERM_FREQUENCY_FIXED_WEEKLY
= 'fixedweekly'¶
-
TERM_FREQUENCY_N_DAYS
= 'n'¶
-
TERM_FREQUENCY_N_MONTHS
= 'n_months'¶
-
TERM_FREQUENCY_QUARTERLY
= 'quarterly'¶
-
TERM_FREQUENCY_SEMIANNUALLY
= 'semiannually'¶
-
TERM_FREQUENCY_WEEKLY
= 'weekly'¶
-
-
class
merchantapi.model.
ProductVariant
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductVariantDimension
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProductVariantExclusion
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_attribute_id
(attribute_id: int) → merchantapi.model.ProductVariantExclusion[source]¶ Set attr_id.
- Parameters
attribute_id – int
- Returns
ProductVariantExclusion
-
-
class
merchantapi.model.
ProductVariantLimit
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_attribute_id
(attribute_id: int) → merchantapi.model.ProductVariantLimit[source]¶ Set attr_id.
- Parameters
attribute_id – int
- Returns
ProductVariantLimit
-
-
class
merchantapi.model.
ProductVariantPart
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
ProvisionMessage
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
RelatedProduct
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
set_active
(active: bool) → merchantapi.model.RelatedProduct[source]¶ Set active.
- Parameters
active – bool
- Returns
RelatedProduct
-
set_code
(code: str) → merchantapi.model.RelatedProduct[source]¶ Set code.
- Parameters
code – string
- Returns
RelatedProduct
-
set_cost
(cost: float) → merchantapi.model.RelatedProduct[source]¶ Set cost.
- Parameters
cost – int
- Returns
RelatedProduct
-
set_image
(image: str) → merchantapi.model.RelatedProduct[source]¶ Set image.
- Parameters
image – string
- Returns
RelatedProduct
-
set_name
(name: str) → merchantapi.model.RelatedProduct[source]¶ Set name.
- Parameters
name – string
- Returns
RelatedProduct
-
set_page_title
(page_title: str) → merchantapi.model.RelatedProduct[source]¶ Set page_title.
- Parameters
page_title – string
- Returns
RelatedProduct
-
set_price
(price: float) → merchantapi.model.RelatedProduct[source]¶ Set price.
- Parameters
price – int
- Returns
RelatedProduct
-
set_sku
(sku: str) → merchantapi.model.RelatedProduct[source]¶ Set sku.
- Parameters
sku – string
- Returns
RelatedProduct
-
set_taxable
(taxable: bool) → merchantapi.model.RelatedProduct[source]¶ Set taxable.
- Parameters
taxable – bool
- Returns
RelatedProduct
-
-
class
merchantapi.model.
Subscription
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
SubscriptionOption
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
-
class
merchantapi.model.
Uri
(data: dict = None)[source]¶ Bases:
merchantapi.abstract.Model
merchantapi.multicall module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with self source code.
$Id: multicall.py 77667 2019-08-29 19:18:13Z gidriss $
-
class
merchantapi.multicall.
MultiCallOperation
(request: merchantapi.abstract.Request = None, shared_data: dict = None)[source]¶ Bases:
object
-
add_request
(request: merchantapi.abstract.Request) → merchantapi.multicall.MultiCallOperation[source]¶ Add a request iteration.
- Parameters
request – Request
- Returns
MultiCallOperation
- Raises
Exception –
-
add_requests
(requests: list) → merchantapi.multicall.MultiCallOperation[source]¶ Add an array of requests iterations.
- Parameters
requests – list[Request]
- Returns
MultiCallOperation
- Raises
Exception –
Add a shared data value for key.
- Parameters
key – str
value – str|dict
- Returns
MultiCallOperation
Get the shared data between the iterations.
- Returns
dict
-
set_requests
(requests: list) → merchantapi.multicall.MultiCallOperation[source]¶ Set and override the request iterations.
- Parameters
requests – list[Request]
- Returns
MultiCallOperation
- Raises
Exception –
Set the shared data object.
- Parameters
values – dict
- Returns
MultiCallOperation
-
-
class
merchantapi.multicall.
MultiCallRequest
(client: merchantapi.abstract.Client = None, requests: list = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_operation
(operation: merchantapi.multicall.MultiCallOperation) → merchantapi.multicall.MultiCallRequest[source]¶ Add a operation to be sent.
- Parameters
operation – MultiCallOperation
- Returns
MultiCallRequest
-
add_operations
(operations: list) → merchantapi.multicall.MultiCallRequest[source]¶ Add an array of operations.
- Param
list[MultiCallOperation]
- Returns
MultiCallRequest
-
add_request
(request: merchantapi.abstract.Request) → merchantapi.multicall.MultiCallRequest[source]¶ Add a request to be sent.
- Parameters
request – Request
- Returns
MultiCallRequest
-
add_requests
(requests: list)[source]¶ Add requests to be sent.
:param :Array requests :returns:MultiCallRequest
-
create_response
(data: dict) → merchantapi.multicall.MultiCallResponse[source]¶ - Parameters
data – dict
-
operation
(request: merchantapi.abstract.Request = None, shared_data: dict = None) → merchantapi.multicall.MultiCallOperation[source]¶ Create an operation instance and add it to the request.
- Parameters
request – Request|list[Request]|None
shared_data – dict|None
- Returns
-
send
() → merchantapi.multicall.MultiCallResponse[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.multicall.
MultiCallResponse
(request: merchantapi.multicall.MultiCallRequest, data: dict)[source]¶
merchantapi.request module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
$Id: request.py 77709 2019-08-30 16:41:54Z gidriss $
-
class
merchantapi.request.
AvailabilityGroupBusinessAccountUpdateAssigned
(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
AvailabilityGroupBusinessAccountUpdateAssigned
-
set_availability_group_id
(availability_group_id: int) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Set AvailabilityGroup_ID.
- Parameters
availability_group_id – int
- Returns
AvailabilityGroupBusinessAccountUpdateAssigned
-
set_availability_group_name
(availability_group_name: str) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Set AvailabilityGroup_Name.
- Parameters
availability_group_name – str
- Returns
AvailabilityGroupBusinessAccountUpdateAssigned
-
set_business_account_id
(business_account_id: int) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Set BusinessAccount_ID.
- Parameters
business_account_id – int
- Returns
AvailabilityGroupBusinessAccountUpdateAssigned
-
set_business_account_title
(business_account_title: str) → merchantapi.request.AvailabilityGroupBusinessAccountUpdateAssigned[source]¶ Set BusinessAccount_Title.
- Parameters
business_account_title – str
- Returns
AvailabilityGroupBusinessAccountUpdateAssigned
-
-
class
merchantapi.request.
AvailabilityGroupCustomerUpdateAssigned
(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.AvailabilityGroupCustomerUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
set_availability_group_id
(availability_group_id: int) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set AvailabilityGroup_ID.
- Parameters
availability_group_id – int
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
set_availability_group_name
(availability_group_name: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set AvailabilityGroup_Name.
- Parameters
availability_group_name – str
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
set_customer_id
(customer_id: int) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
set_customer_login
(customer_login: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
set_edit_availability_group
(edit_availability_group: str) → merchantapi.request.AvailabilityGroupCustomerUpdateAssigned[source]¶ Set Edit_AvailabilityGroup.
- Parameters
edit_availability_group – str
- Returns
AvailabilityGroupCustomerUpdateAssigned
-
-
class
merchantapi.request.
AvailabilityGroupListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['id', 'name']¶
-
available_sort_fields
= ['id', 'name']¶
-
-
class
merchantapi.request.
AvailabilityGroupPaymentMethodUpdateAssigned
(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
set_availability_group_id
(availability_group_id: int) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set AvailabilityGroup_ID.
- Parameters
availability_group_id – int
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
set_availability_group_name
(availability_group_name: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set AvailabilityGroup_Name.
- Parameters
availability_group_name – str
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
set_edit_availability_group
(edit_availability_group: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set Edit_AvailabilityGroup.
- Parameters
edit_availability_group – str
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
set_method_code
(method_code: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set Method_Code.
- Parameters
method_code – str
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
set_module_code
(module_code: str) → merchantapi.request.AvailabilityGroupPaymentMethodUpdateAssigned[source]¶ Set Module_Code.
- Parameters
module_code – str
- Returns
AvailabilityGroupPaymentMethodUpdateAssigned
-
-
class
merchantapi.request.
AvailabilityGroupProductUpdateAssigned
(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.AvailabilityGroupProductUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_availability_group_id
(availability_group_id: int) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set AvailabilityGroup_ID.
- Parameters
availability_group_id – int
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_availability_group_name
(availability_group_name: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set AvailabilityGroup_Name.
- Parameters
availability_group_name – str
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_edit_availability_group
(edit_availability_group: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set Edit_AvailabilityGroup.
- Parameters
edit_availability_group – str
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_edit_product
(edit_product: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_product_code
(product_code: str) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
AvailabilityGroupProductUpdateAssigned
-
set_product_id
(product_id: int) → merchantapi.request.AvailabilityGroupProductUpdateAssigned[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
AvailabilityGroupProductUpdateAssigned
-
-
class
merchantapi.request.
AvailabilityGroupShippingMethodUpdateAssigned
(client: merchantapi.client.Client = None, availability_group: merchantapi.model.AvailabilityGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
AvailabilityGroupShippingMethodUpdateAssigned
-
set_availability_group_id
(availability_group_id: int) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Set AvailabilityGroup_ID.
- Parameters
availability_group_id – int
- Returns
AvailabilityGroupShippingMethodUpdateAssigned
-
set_availability_group_name
(availability_group_name: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Set AvailabilityGroup_Name.
- Parameters
availability_group_name – str
- Returns
AvailabilityGroupShippingMethodUpdateAssigned
-
set_edit_availability_group
(edit_availability_group: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Set Edit_AvailabilityGroup.
- Parameters
edit_availability_group – str
- Returns
AvailabilityGroupShippingMethodUpdateAssigned
-
set_method_code
(method_code: str) → merchantapi.request.AvailabilityGroupShippingMethodUpdateAssigned[source]¶ Set Method_Code.
- Parameters
method_code – str
- Returns
AvailabilityGroupShippingMethodUpdateAssigned
-
-
class
merchantapi.request.
CategoryDelete
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CategoryDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CategoryDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_category_code
(category_code: str) → merchantapi.request.CategoryDelete[source]¶ Set Category_Code.
- Parameters
category_code – str
- Returns
CategoryDelete
-
set_category_id
(category_id: int) → merchantapi.request.CategoryDelete[source]¶ Set Category_ID.
- Parameters
category_id – int
- Returns
CategoryDelete
-
-
class
merchantapi.request.
CategoryInsert
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CategoryInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_category_alternate_display_page
() → str[source]¶ Get Category_Alternate_Display_Page.
- Returns
str
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.CategoryInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_category_active
(category_active: bool) → merchantapi.request.CategoryInsert[source]¶ Set Category_Active.
- Parameters
category_active – bool
- Returns
CategoryInsert
-
set_category_alternate_display_page
(category_alternate_display_page: str) → merchantapi.request.CategoryInsert[source]¶ Set Category_Alternate_Display_Page.
- Parameters
category_alternate_display_page – str
- Returns
CategoryInsert
-
set_category_code
(category_code: str) → merchantapi.request.CategoryInsert[source]¶ Set Category_Code.
- Parameters
category_code – str
- Returns
CategoryInsert
-
set_category_name
(category_name: str) → merchantapi.request.CategoryInsert[source]¶ Set Category_Name.
- Parameters
category_name – str
- Returns
CategoryInsert
-
set_category_page_title
(category_page_title: str) → merchantapi.request.CategoryInsert[source]¶ Set Category_Page_Title.
- Parameters
category_page_title – str
- Returns
CategoryInsert
-
set_category_parent_category
(category_parent_category: str) → merchantapi.request.CategoryInsert[source]¶ Set Category_Parent_Category.
- Parameters
category_parent_category – str
- Returns
CategoryInsert
-
-
class
merchantapi.request.
CategoryListLoadParent
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CategoryListLoadParent[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CategoryListLoadParent[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
CategoryListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
CATEGORY_SHOW_ACTIVE
= 'Active'¶
-
CATEGORY_SHOW_ALL
= 'All'¶
-
available_custom_filters
= {'Category_Show': ['All', 'Active']}¶
-
available_search_fields
= ['id', 'code', 'name', 'page_title', 'parent_category', 'page_code', 'dt_created', 'dt_updated', 'depth']¶
-
available_sort_fields
= ['id', 'code', 'name', 'page_title', 'active', 'page_code', 'parent_category', 'disp_order', 'dt_created', 'dt_updated', 'depth']¶
-
-
class
merchantapi.request.
CategoryProductListLoadQuery
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.request.ProductListLoadQuery
-
create_response
(data) → merchantapi.request.CategoryProductListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CategoryProductListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.CategoryProductListLoadQuery[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
CategoryProductListLoadQuery
-
set_category_code
(category_code: str) → merchantapi.request.CategoryProductListLoadQuery[source]¶ Set Category_Code.
- Parameters
category_code – str
- Returns
CategoryProductListLoadQuery
-
set_category_id
(category_id: int) → merchantapi.request.CategoryProductListLoadQuery[source]¶ Set Category_ID.
- Parameters
category_id – int
- Returns
CategoryProductListLoadQuery
-
set_edit_category
(edit_category: str) → merchantapi.request.CategoryProductListLoadQuery[source]¶ Set Edit_Category.
- Parameters
edit_category – str
- Returns
CategoryProductListLoadQuery
-
-
class
merchantapi.request.
CategoryProductUpdateAssigned
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CategoryProductUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
CategoryProductUpdateAssigned
-
set_category_code
(category_code: str) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Category_Code.
- Parameters
category_code – str
- Returns
CategoryProductUpdateAssigned
-
set_category_id
(category_id: int) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Category_ID.
- Parameters
category_id – int
- Returns
CategoryProductUpdateAssigned
-
set_edit_category
(edit_category: str) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Edit_Category.
- Parameters
edit_category – str
- Returns
CategoryProductUpdateAssigned
-
set_edit_product
(edit_product: str) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
CategoryProductUpdateAssigned
-
set_product_code
(product_code: str) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
CategoryProductUpdateAssigned
-
set_product_id
(product_id: int) → merchantapi.request.CategoryProductUpdateAssigned[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
CategoryProductUpdateAssigned
-
-
class
merchantapi.request.
CategoryUpdate
(client: merchantapi.client.Client = None, category: merchantapi.model.Category = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CategoryUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_category_alternate_display_page
() → str[source]¶ Get Category_Alternate_Display_Page.
- Returns
str
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.CategoryUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_category_active
(category_active: bool) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Active.
- Parameters
category_active – bool
- Returns
CategoryUpdate
-
set_category_alternate_display_page
(category_alternate_display_page: str) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Alternate_Display_Page.
- Parameters
category_alternate_display_page – str
- Returns
CategoryUpdate
-
set_category_code
(category_code: str) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Code.
- Parameters
category_code – str
- Returns
CategoryUpdate
-
set_category_id
(category_id: int) → merchantapi.request.CategoryUpdate[source]¶ Set Category_ID.
- Parameters
category_id – int
- Returns
CategoryUpdate
-
set_category_name
(category_name: str) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Name.
- Parameters
category_name – str
- Returns
CategoryUpdate
-
set_category_page_title
(category_page_title: str) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Page_Title.
- Parameters
category_page_title – str
- Returns
CategoryUpdate
-
set_category_parent_category
(category_parent_category: str) → merchantapi.request.CategoryUpdate[source]¶ Set Category_Parent_Category.
- Parameters
category_parent_category – str
- Returns
CategoryUpdate
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CategoryUpdate[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
CategoryUpdate
-
-
class
merchantapi.request.
CouponInsert
(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CouponInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CouponInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_active
(active: bool) → merchantapi.request.CouponInsert[source]¶ Set Active.
- Parameters
active – bool
- Returns
CouponInsert
-
set_code
(code: str) → merchantapi.request.CouponInsert[source]¶ Set Code.
- Parameters
code – str
- Returns
CouponInsert
-
set_customer_scope
(customer_scope: str) → merchantapi.request.CouponInsert[source]¶ Set CustomerScope.
- Parameters
customer_scope – str
- Returns
CouponInsert
-
set_date_time_end
(date_time_end: int) → merchantapi.request.CouponInsert[source]¶ Set DateTime_End.
- Parameters
date_time_end – int
- Returns
CouponInsert
-
set_date_time_start
(date_time_start: int) → merchantapi.request.CouponInsert[source]¶ Set DateTime_Start.
- Parameters
date_time_start – int
- Returns
CouponInsert
-
set_description
(description: str) → merchantapi.request.CouponInsert[source]¶ Set Description.
- Parameters
description – str
- Returns
CouponInsert
-
set_max_per
(max_per: int) → merchantapi.request.CouponInsert[source]¶ Set Max_Per.
- Parameters
max_per – int
- Returns
CouponInsert
-
set_max_use
(max_use: int) → merchantapi.request.CouponInsert[source]¶ Set Max_Use.
- Parameters
max_use – int
- Returns
CouponInsert
-
-
class
merchantapi.request.
CouponListDelete
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_coupon
(coupon: merchantapi.model.Coupon) → merchantapi.request.CouponListDelete[source]¶ Add Coupon model.
- Parameters
coupon – Coupon
- Raises
Exception –
- Returns
CouponListDelete
-
add_coupon_id
(coupon_id) → merchantapi.request.CouponListDelete[source]¶ Add Coupon_IDs.
- Parameters
coupon_id – int
- Returns
{CouponListDelete}
-
create_response
(data) → merchantapi.request.CouponListDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
-
class
merchantapi.request.
CouponListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['id', 'code', 'descrip', 'custscope', 'dt_start', 'dt_end', 'max_use', 'max_per', 'active', 'use_count']¶
-
available_sort_fields
= ['id', 'code', 'descrip', 'custscope', 'dt_start', 'dt_end', 'max_use', 'max_per', 'active', 'use_count']¶
-
-
class
merchantapi.request.
CouponPriceGroupListLoadQuery
(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]¶ Bases:
merchantapi.request.PriceGroupListLoadQuery
-
create_response
(data) → merchantapi.request.CouponPriceGroupListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CouponPriceGroupListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.CouponPriceGroupListLoadQuery[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
CouponPriceGroupListLoadQuery
-
set_coupon_code
(coupon_code: str) → merchantapi.request.CouponPriceGroupListLoadQuery[source]¶ Set Coupon_Code.
- Parameters
coupon_code – str
- Returns
CouponPriceGroupListLoadQuery
-
set_coupon_id
(coupon_id: int) → merchantapi.request.CouponPriceGroupListLoadQuery[source]¶ Set Coupon_ID.
- Parameters
coupon_id – int
- Returns
CouponPriceGroupListLoadQuery
-
set_edit_coupon
(edit_coupon: str) → merchantapi.request.CouponPriceGroupListLoadQuery[source]¶ Set Edit_Coupon.
- Parameters
edit_coupon – str
- Returns
CouponPriceGroupListLoadQuery
-
-
class
merchantapi.request.
CouponPriceGroupUpdateAssigned
(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CouponPriceGroupUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
CouponPriceGroupUpdateAssigned
-
set_coupon_code
(coupon_code: str) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Set Coupon_Code.
- Parameters
coupon_code – str
- Returns
CouponPriceGroupUpdateAssigned
-
set_coupon_id
(coupon_id: int) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Set Coupon_ID.
- Parameters
coupon_id – int
- Returns
CouponPriceGroupUpdateAssigned
-
set_edit_coupon
(edit_coupon: str) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Set Edit_Coupon.
- Parameters
edit_coupon – str
- Returns
CouponPriceGroupUpdateAssigned
-
set_price_group_id
(price_group_id: int) → merchantapi.request.CouponPriceGroupUpdateAssigned[source]¶ Set PriceGroup_ID.
- Parameters
price_group_id – int
- Returns
CouponPriceGroupUpdateAssigned
-
-
class
merchantapi.request.
CouponUpdate
(client: merchantapi.client.Client = None, coupon: merchantapi.model.Coupon = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CouponUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CouponUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_active
(active: bool) → merchantapi.request.CouponUpdate[source]¶ Set Active.
- Parameters
active – bool
- Returns
CouponUpdate
-
set_code
(code: str) → merchantapi.request.CouponUpdate[source]¶ Set Code.
- Parameters
code – str
- Returns
CouponUpdate
-
set_coupon_code
(coupon_code: str) → merchantapi.request.CouponUpdate[source]¶ Set Coupon_Code.
- Parameters
coupon_code – str
- Returns
CouponUpdate
-
set_coupon_id
(coupon_id: int) → merchantapi.request.CouponUpdate[source]¶ Set Coupon_ID.
- Parameters
coupon_id – int
- Returns
CouponUpdate
-
set_customer_scope
(customer_scope: str) → merchantapi.request.CouponUpdate[source]¶ Set CustomerScope.
- Parameters
customer_scope – str
- Returns
CouponUpdate
-
set_date_time_end
(date_time_end: int) → merchantapi.request.CouponUpdate[source]¶ Set DateTime_End.
- Parameters
date_time_end – int
- Returns
CouponUpdate
-
set_date_time_start
(date_time_start: int) → merchantapi.request.CouponUpdate[source]¶ Set DateTime_Start.
- Parameters
date_time_start – int
- Returns
CouponUpdate
-
set_description
(description: str) → merchantapi.request.CouponUpdate[source]¶ Set Description.
- Parameters
description – str
- Returns
CouponUpdate
-
set_edit_coupon
(edit_coupon: str) → merchantapi.request.CouponUpdate[source]¶ Set Edit_Coupon.
- Parameters
edit_coupon – str
- Returns
CouponUpdate
-
set_max_per
(max_per: int) → merchantapi.request.CouponUpdate[source]¶ Set Max_Per.
- Parameters
max_per – int
- Returns
CouponUpdate
-
-
class
merchantapi.request.
CustomerAddressListLoadQuery
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['cust_id', 'id', 'descrip', 'fname', 'lname', 'email', 'comp', 'phone', 'fax', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'resdntl']¶
-
available_sort_fields
= ['cust_id', 'id', 'descrip', 'fname', 'lname', 'email', 'comp', 'phone', 'fax', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'resdntl']¶
-
create_response
(data) → merchantapi.request.CustomerAddressListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CustomerAddressListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerAddressListLoadQuery[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerAddressListLoadQuery
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerAddressListLoadQuery[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerAddressListLoadQuery
-
-
class
merchantapi.request.
CustomerDelete
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CustomerDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CustomerDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerDelete[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerDelete
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerDelete[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerDelete
-
-
class
merchantapi.request.
CustomerInsert
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CustomerInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.CustomerInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CustomerInsert[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
CustomerInsert
-
set_customer_bill_address1
(customer_bill_address1: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillAddress1.
- Parameters
customer_bill_address1 – str
- Returns
CustomerInsert
-
set_customer_bill_address2
(customer_bill_address2: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillAddress2.
- Parameters
customer_bill_address2 – str
- Returns
CustomerInsert
-
set_customer_bill_city
(customer_bill_city: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillCity.
- Parameters
customer_bill_city – str
- Returns
CustomerInsert
-
set_customer_bill_company
(customer_bill_company: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillCompany.
- Parameters
customer_bill_company – str
- Returns
CustomerInsert
-
set_customer_bill_country
(customer_bill_country: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillCountry.
- Parameters
customer_bill_country – str
- Returns
CustomerInsert
-
set_customer_bill_email
(customer_bill_email: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillEmail.
- Parameters
customer_bill_email – str
- Returns
CustomerInsert
-
set_customer_bill_fax
(customer_bill_fax: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillFax.
- Parameters
customer_bill_fax – str
- Returns
CustomerInsert
-
set_customer_bill_first_name
(customer_bill_first_name: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillFirstName.
- Parameters
customer_bill_first_name – str
- Returns
CustomerInsert
-
set_customer_bill_last_name
(customer_bill_last_name: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillLastName.
- Parameters
customer_bill_last_name – str
- Returns
CustomerInsert
-
set_customer_bill_phone
(customer_bill_phone: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillPhone.
- Parameters
customer_bill_phone – str
- Returns
CustomerInsert
-
set_customer_bill_state
(customer_bill_state: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillState.
- Parameters
customer_bill_state – str
- Returns
CustomerInsert
-
set_customer_bill_zip
(customer_bill_zip: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BillZip.
- Parameters
customer_bill_zip – str
- Returns
CustomerInsert
-
set_customer_business_account
(customer_business_account: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_BusinessAccount.
- Parameters
customer_business_account – str
- Returns
CustomerInsert
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerInsert
-
set_customer_password
(customer_password: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_Password.
- Parameters
customer_password – str
- Returns
CustomerInsert
-
set_customer_password_email
(customer_password_email: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_PasswordEmail.
- Parameters
customer_password_email – str
- Returns
CustomerInsert
-
set_customer_ship_address1
(customer_ship_address1: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipAddress1.
- Parameters
customer_ship_address1 – str
- Returns
CustomerInsert
-
set_customer_ship_address2
(customer_ship_address2: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipAddress2.
- Parameters
customer_ship_address2 – str
- Returns
CustomerInsert
-
set_customer_ship_city
(customer_ship_city: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipCity.
- Parameters
customer_ship_city – str
- Returns
CustomerInsert
-
set_customer_ship_company
(customer_ship_company: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipCompany.
- Parameters
customer_ship_company – str
- Returns
CustomerInsert
-
set_customer_ship_country
(customer_ship_country: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipCountry.
- Parameters
customer_ship_country – str
- Returns
CustomerInsert
-
set_customer_ship_email
(customer_ship_email: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipEmail.
- Parameters
customer_ship_email – str
- Returns
CustomerInsert
-
set_customer_ship_fax
(customer_ship_fax: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipFax.
- Parameters
customer_ship_fax – str
- Returns
CustomerInsert
-
set_customer_ship_first_name
(customer_ship_first_name: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipFirstName.
- Parameters
customer_ship_first_name – str
- Returns
CustomerInsert
-
set_customer_ship_last_name
(customer_ship_last_name: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipLastName.
- Parameters
customer_ship_last_name – str
- Returns
CustomerInsert
-
set_customer_ship_phone
(customer_ship_phone: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipPhone.
- Parameters
customer_ship_phone – str
- Returns
CustomerInsert
-
set_customer_ship_residential
(customer_ship_residential: bool) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipResidential.
- Parameters
customer_ship_residential – bool
- Returns
CustomerInsert
-
set_customer_ship_state
(customer_ship_state: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipState.
- Parameters
customer_ship_state – str
- Returns
CustomerInsert
-
set_customer_ship_zip
(customer_ship_zip: str) → merchantapi.request.CustomerInsert[source]¶ Set Customer_ShipZip.
- Parameters
customer_ship_zip – str
- Returns
CustomerInsert
-
-
class
merchantapi.request.
CustomerListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['id', 'login', 'pw_email', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'ship_res', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'business_title', 'note_count', 'dt_created', 'dt_login', 'credit']¶
-
available_sort_fields
= ['id', 'login', 'pw_email', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'ship_res', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'business_title', 'note_count', 'dt_created', 'dt_login', 'credit']¶
-
-
class
merchantapi.request.
CustomerPaymentCardListLoadQuery
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['fname', 'lname', 'exp_month', 'exp_year', 'lastfour', 'lastused', 'type', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'refcount', 'mod_code', 'meth_code', 'id']¶
-
available_sort_fields
= ['fname', 'lname', 'expires', 'lastfour', 'lastused', 'type', 'addr1', 'addr2', 'city', 'state', 'zip', 'cntry', 'refcount', 'mod_code', 'meth_code', 'id']¶
-
create_response
(data) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CustomerPaymentCardListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerPaymentCardListLoadQuery
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerPaymentCardListLoadQuery[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerPaymentCardListLoadQuery
-
-
class
merchantapi.request.
CustomerPaymentCardRegister
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CustomerPaymentCardRegister[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_address1
(address1: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Address1.
- Parameters
address1 – str
- Returns
CustomerPaymentCardRegister
-
set_address2
(address2: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Address2.
- Parameters
address2 – str
- Returns
CustomerPaymentCardRegister
-
set_card_number
(card_number: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set CardNumber.
- Parameters
card_number – str
- Returns
CustomerPaymentCardRegister
-
set_card_type
(card_type: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set CardType.
- Parameters
card_type – str
- Returns
CustomerPaymentCardRegister
-
set_city
(city: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set City.
- Parameters
city – str
- Returns
CustomerPaymentCardRegister
-
set_country
(country: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Country.
- Parameters
country – str
- Returns
CustomerPaymentCardRegister
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerPaymentCardRegister
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerPaymentCardRegister
-
set_edit_customer
(edit_customer: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set Edit_Customer.
- Parameters
edit_customer – str
- Returns
CustomerPaymentCardRegister
-
set_expiration_month
(expiration_month: int) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set ExpirationMonth.
- Parameters
expiration_month – int
- Returns
CustomerPaymentCardRegister
-
set_expiration_year
(expiration_year: int) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set ExpirationYear.
- Parameters
expiration_year – int
- Returns
CustomerPaymentCardRegister
-
set_first_name
(first_name: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set FirstName.
- Parameters
first_name – str
- Returns
CustomerPaymentCardRegister
-
set_last_name
(last_name: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set LastName.
- Parameters
last_name – str
- Returns
CustomerPaymentCardRegister
-
set_state
(state: str) → merchantapi.request.CustomerPaymentCardRegister[source]¶ Set State.
- Parameters
state – str
- Returns
CustomerPaymentCardRegister
-
-
class
merchantapi.request.
CustomerPriceGroupListLoadQuery
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.request.PriceGroupListLoadQuery
-
create_response
(data) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.CustomerPriceGroupListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
CustomerPriceGroupListLoadQuery
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerPriceGroupListLoadQuery
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerPriceGroupListLoadQuery
-
set_edit_customer
(edit_customer: str) → merchantapi.request.CustomerPriceGroupListLoadQuery[source]¶ Set Edit_Customer.
- Parameters
edit_customer – str
- Returns
CustomerPriceGroupListLoadQuery
-
-
class
merchantapi.request.
CustomerUpdate
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.CustomerUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.CustomerUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.CustomerUpdate[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
CustomerUpdate
-
set_customer_bill_address1
(customer_bill_address1: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillAddress1.
- Parameters
customer_bill_address1 – str
- Returns
CustomerUpdate
-
set_customer_bill_address2
(customer_bill_address2: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillAddress2.
- Parameters
customer_bill_address2 – str
- Returns
CustomerUpdate
-
set_customer_bill_city
(customer_bill_city: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillCity.
- Parameters
customer_bill_city – str
- Returns
CustomerUpdate
-
set_customer_bill_company
(customer_bill_company: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillCompany.
- Parameters
customer_bill_company – str
- Returns
CustomerUpdate
-
set_customer_bill_country
(customer_bill_country: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillCountry.
- Parameters
customer_bill_country – str
- Returns
CustomerUpdate
-
set_customer_bill_email
(customer_bill_email: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillEmail.
- Parameters
customer_bill_email – str
- Returns
CustomerUpdate
-
set_customer_bill_fax
(customer_bill_fax: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillFax.
- Parameters
customer_bill_fax – str
- Returns
CustomerUpdate
-
set_customer_bill_first_name
(customer_bill_first_name: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillFirstName.
- Parameters
customer_bill_first_name – str
- Returns
CustomerUpdate
-
set_customer_bill_last_name
(customer_bill_last_name: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillLastName.
- Parameters
customer_bill_last_name – str
- Returns
CustomerUpdate
-
set_customer_bill_phone
(customer_bill_phone: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillPhone.
- Parameters
customer_bill_phone – str
- Returns
CustomerUpdate
-
set_customer_bill_state
(customer_bill_state: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillState.
- Parameters
customer_bill_state – str
- Returns
CustomerUpdate
-
set_customer_bill_zip
(customer_bill_zip: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BillZip.
- Parameters
customer_bill_zip – str
- Returns
CustomerUpdate
-
set_customer_business_account
(customer_business_account: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_BusinessAccount.
- Parameters
customer_business_account – str
- Returns
CustomerUpdate
-
set_customer_id
(customer_id: int) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
CustomerUpdate
-
set_customer_login
(customer_login: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
CustomerUpdate
-
set_customer_password
(customer_password: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_Password.
- Parameters
customer_password – str
- Returns
CustomerUpdate
-
set_customer_password_email
(customer_password_email: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_PasswordEmail.
- Parameters
customer_password_email – str
- Returns
CustomerUpdate
-
set_customer_ship_address1
(customer_ship_address1: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipAddress1.
- Parameters
customer_ship_address1 – str
- Returns
CustomerUpdate
-
set_customer_ship_address2
(customer_ship_address2: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipAddress2.
- Parameters
customer_ship_address2 – str
- Returns
CustomerUpdate
-
set_customer_ship_city
(customer_ship_city: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipCity.
- Parameters
customer_ship_city – str
- Returns
CustomerUpdate
-
set_customer_ship_company
(customer_ship_company: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipCompany.
- Parameters
customer_ship_company – str
- Returns
CustomerUpdate
-
set_customer_ship_country
(customer_ship_country: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipCountry.
- Parameters
customer_ship_country – str
- Returns
CustomerUpdate
-
set_customer_ship_email
(customer_ship_email: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipEmail.
- Parameters
customer_ship_email – str
- Returns
CustomerUpdate
-
set_customer_ship_fax
(customer_ship_fax: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipFax.
- Parameters
customer_ship_fax – str
- Returns
CustomerUpdate
-
set_customer_ship_first_name
(customer_ship_first_name: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipFirstName.
- Parameters
customer_ship_first_name – str
- Returns
CustomerUpdate
-
set_customer_ship_last_name
(customer_ship_last_name: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipLastName.
- Parameters
customer_ship_last_name – str
- Returns
CustomerUpdate
-
set_customer_ship_phone
(customer_ship_phone: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipPhone.
- Parameters
customer_ship_phone – str
- Returns
CustomerUpdate
-
set_customer_ship_residential
(customer_ship_residential: bool) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipResidential.
- Parameters
customer_ship_residential – bool
- Returns
CustomerUpdate
-
set_customer_ship_state
(customer_ship_state: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipState.
- Parameters
customer_ship_state – str
- Returns
CustomerUpdate
-
set_customer_ship_zip
(customer_ship_zip: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_ShipZip.
- Parameters
customer_ship_zip – str
- Returns
CustomerUpdate
-
set_customer_tax_exempt
(customer_tax_exempt: str) → merchantapi.request.CustomerUpdate[source]¶ Set Customer_Tax_Exempt.
- Parameters
customer_tax_exempt – str
- Returns
CustomerUpdate
-
-
class
merchantapi.request.
Module
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.Module[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.Module[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_module_code
(module_code: str) → merchantapi.request.Module[source]¶ Set Module_Code.
- Parameters
module_code – str
- Returns
Module
-
set_module_field
(field: str, value) → merchantapi.request.Module[source]¶ Add custom data to the request.
- Parameters
field – str
value – mixed
- Returns
{Module}
-
set_module_fields
(module_fields) → merchantapi.request.Module[source]¶ Set Module_Fields.
- Parameters
module_fields – dict
- Returns
Module
-
-
class
merchantapi.request.
NoteDelete
(client: merchantapi.client.Client = None, note: merchantapi.model.Note = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.NoteDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.NoteDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
NoteInsert
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.NoteInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.NoteInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_account_id
(account_id: int) → merchantapi.request.NoteInsert[source]¶ Set Account_ID.
- Parameters
account_id – int
- Returns
NoteInsert
-
set_customer_id
(customer_id: int) → merchantapi.request.NoteInsert[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
NoteInsert
-
set_note_text
(note_text: str) → merchantapi.request.NoteInsert[source]¶ Set NoteText.
- Parameters
note_text – str
- Returns
NoteInsert
-
-
class
merchantapi.request.
NoteListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['id', 'notetext', 'dtstamp', 'cust_id', 'account_id', 'order_id', 'admin_user', 'cust_login', 'business_title']¶
-
available_sort_fields
= ['id', 'notetext', 'dtstamp', 'cust_id', 'account_id', 'order_id', 'admin_user', 'cust_login', 'business_title']¶
-
-
class
merchantapi.request.
NoteUpdate
(client: merchantapi.client.Client = None, note: merchantapi.model.Note = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.NoteUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.NoteUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_note_id
(note_id: int) → merchantapi.request.NoteUpdate[source]¶ Set Note_ID.
- Parameters
note_id – int
- Returns
NoteUpdate
-
-
class
merchantapi.request.
OrderAuthorize
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderAuthorize[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderAuthorize[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_amount
(amount: float) → merchantapi.request.OrderAuthorize[source]¶ Set Amount.
- Parameters
amount – float
- Returns
OrderAuthorize
-
set_module_data
(module_data: str) → merchantapi.request.OrderAuthorize[source]¶ Set Module_Data.
- Parameters
module_data – str
- Returns
OrderAuthorize
-
set_module_field
(field: str, value) → merchantapi.request.OrderAuthorize[source]¶ Add custom data to the request.
- Parameters
field – str
value – mixed
- Returns
{OrderAuthorize}
-
set_module_fields
(module_fields) → merchantapi.request.OrderAuthorize[source]¶ Set Module_Fields.
- Parameters
module_fields – dict
- Returns
OrderAuthorize
-
set_module_id
(module_id: int) → merchantapi.request.OrderAuthorize[source]¶ Set Module_ID.
- Parameters
module_id – int
- Returns
OrderAuthorize
-
-
class
merchantapi.request.
OrderCreate
(client: merchantapi.client.Client = None, customer: merchantapi.model.Customer = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_charge
(charge) → merchantapi.request.OrderCreate[source]¶ Add Charges.
- Parameters
charge – OrderCharge
- Raises
Exception –
- Returns
{OrderCreate}
-
add_charges
(charges: list) → merchantapi.request.OrderCreate[source]¶ Add many OrderCharge.
- Parameters
charges – List of OrderCharge
- Raises
Exception –
- Returns
OrderCreate
-
add_item
(item) → merchantapi.request.OrderCreate[source]¶ Add Items.
- Parameters
item – OrderItem
- Raises
Exception –
- Returns
{OrderCreate}
-
add_items
(items: list) → merchantapi.request.OrderCreate[source]¶ Add many OrderItem.
- Parameters
items – List of OrderItem
- Raises
Exception –
- Returns
OrderCreate
-
add_product
(product) → merchantapi.request.OrderCreate[source]¶ Add Products.
- Parameters
product – OrderProduct
- Raises
Exception –
- Returns
{OrderCreate}
-
add_products
(products: list) → merchantapi.request.OrderCreate[source]¶ Add many OrderProduct.
- Parameters
products – List of OrderProduct
- Raises
Exception –
- Returns
OrderCreate
-
create_response
(data) → merchantapi.request.OrderCreate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.OrderCreate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_bill_address1
(bill_address1: str) → merchantapi.request.OrderCreate[source]¶ Set BillAddress1.
- Parameters
bill_address1 – str
- Returns
OrderCreate
-
set_bill_address2
(bill_address2: str) → merchantapi.request.OrderCreate[source]¶ Set BillAddress2.
- Parameters
bill_address2 – str
- Returns
OrderCreate
-
set_bill_city
(bill_city: str) → merchantapi.request.OrderCreate[source]¶ Set BillCity.
- Parameters
bill_city – str
- Returns
OrderCreate
-
set_bill_company
(bill_company: str) → merchantapi.request.OrderCreate[source]¶ Set BillCompany.
- Parameters
bill_company – str
- Returns
OrderCreate
-
set_bill_country
(bill_country: str) → merchantapi.request.OrderCreate[source]¶ Set BillCountry.
- Parameters
bill_country – str
- Returns
OrderCreate
-
set_bill_email
(bill_email: str) → merchantapi.request.OrderCreate[source]¶ Set BillEmail.
- Parameters
bill_email – str
- Returns
OrderCreate
-
set_bill_fax
(bill_fax: str) → merchantapi.request.OrderCreate[source]¶ Set BillFax.
- Parameters
bill_fax – str
- Returns
OrderCreate
-
set_bill_first_name
(bill_first_name: str) → merchantapi.request.OrderCreate[source]¶ Set BillFirstName.
- Parameters
bill_first_name – str
- Returns
OrderCreate
-
set_bill_last_name
(bill_last_name: str) → merchantapi.request.OrderCreate[source]¶ Set BillLastName.
- Parameters
bill_last_name – str
- Returns
OrderCreate
-
set_bill_phone
(bill_phone: str) → merchantapi.request.OrderCreate[source]¶ Set BillPhone.
- Parameters
bill_phone – str
- Returns
OrderCreate
-
set_bill_state
(bill_state: str) → merchantapi.request.OrderCreate[source]¶ Set BillState.
- Parameters
bill_state – str
- Returns
OrderCreate
-
set_bill_zip
(bill_zip: str) → merchantapi.request.OrderCreate[source]¶ Set BillZip.
- Parameters
bill_zip – str
- Returns
OrderCreate
-
set_calculate_charges
(calculate_charges: bool) → merchantapi.request.OrderCreate[source]¶ Set CalculateCharges.
- Parameters
calculate_charges – bool
- Returns
OrderCreate
-
set_charges
(charges: list) → merchantapi.request.OrderCreate[source]¶ Set Charges.
- Parameters
charges – {OrderCharge[]}
- Raises
Exception –
- Returns
OrderCreate
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.OrderCreate[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
OrderCreate
-
set_customer_id
(customer_id: int) → merchantapi.request.OrderCreate[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
OrderCreate
-
set_customer_login
(customer_login: str) → merchantapi.request.OrderCreate[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
OrderCreate
-
set_items
(items: list) → merchantapi.request.OrderCreate[source]¶ Set Items.
- Parameters
items – {OrderItem[]}
- Raises
Exception –
- Returns
OrderCreate
-
set_products
(products: list) → merchantapi.request.OrderCreate[source]¶ Set Products.
- Parameters
products – {OrderProduct[]}
- Raises
Exception –
- Returns
OrderCreate
-
set_ship_address1
(ship_address1: str) → merchantapi.request.OrderCreate[source]¶ Set ShipAddress1.
- Parameters
ship_address1 – str
- Returns
OrderCreate
-
set_ship_address2
(ship_address2: str) → merchantapi.request.OrderCreate[source]¶ Set ShipAddress2.
- Parameters
ship_address2 – str
- Returns
OrderCreate
-
set_ship_city
(ship_city: str) → merchantapi.request.OrderCreate[source]¶ Set ShipCity.
- Parameters
ship_city – str
- Returns
OrderCreate
-
set_ship_company
(ship_company: str) → merchantapi.request.OrderCreate[source]¶ Set ShipCompany.
- Parameters
ship_company – str
- Returns
OrderCreate
-
set_ship_country
(ship_country: str) → merchantapi.request.OrderCreate[source]¶ Set ShipCountry.
- Parameters
ship_country – str
- Returns
OrderCreate
-
set_ship_email
(ship_email: str) → merchantapi.request.OrderCreate[source]¶ Set ShipEmail.
- Parameters
ship_email – str
- Returns
OrderCreate
-
set_ship_fax
(ship_fax: str) → merchantapi.request.OrderCreate[source]¶ Set ShipFax.
- Parameters
ship_fax – str
- Returns
OrderCreate
-
set_ship_first_name
(ship_first_name: str) → merchantapi.request.OrderCreate[source]¶ Set ShipFirstName.
- Parameters
ship_first_name – str
- Returns
OrderCreate
-
set_ship_last_name
(ship_last_name: str) → merchantapi.request.OrderCreate[source]¶ Set ShipLastName.
- Parameters
ship_last_name – str
- Returns
OrderCreate
-
set_ship_phone
(ship_phone: str) → merchantapi.request.OrderCreate[source]¶ Set ShipPhone.
- Parameters
ship_phone – str
- Returns
OrderCreate
-
set_ship_residential
(ship_residential: bool) → merchantapi.request.OrderCreate[source]¶ Set ShipResidential.
- Parameters
ship_residential – bool
- Returns
OrderCreate
-
set_ship_state
(ship_state: str) → merchantapi.request.OrderCreate[source]¶ Set ShipState.
- Parameters
ship_state – str
- Returns
OrderCreate
-
set_ship_zip
(ship_zip: str) → merchantapi.request.OrderCreate[source]¶ Set ShipZip.
- Parameters
ship_zip – str
- Returns
OrderCreate
-
set_shipping_module_code
(shipping_module_code: str) → merchantapi.request.OrderCreate[source]¶ Set Shipping_Module_Code.
- Parameters
shipping_module_code – str
- Returns
OrderCreate
-
set_shipping_module_data
(shipping_module_data: str) → merchantapi.request.OrderCreate[source]¶ Set Shipping_Module_Data.
- Parameters
shipping_module_data – str
- Returns
OrderCreate
-
-
class
merchantapi.request.
OrderCreateFromOrder
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderCreateFromOrder[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderCreateFromOrder[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderCustomFieldListLoad
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
class
merchantapi.request.
OrderCustomFieldsUpdate
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderCustomFieldsUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
send
() → merchantapi.response.OrderCustomFieldsUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.OrderCustomFieldsUpdate[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
OrderCustomFieldsUpdate
-
-
class
merchantapi.request.
OrderDelete
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderItemAdd
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_option
(option) → merchantapi.request.OrderItemAdd[source]¶ Add Options.
- Parameters
option – OrderItemOption
- Raises
Exception –
- Returns
{OrderItemAdd}
-
add_options
(options: list) → merchantapi.request.OrderItemAdd[source]¶ Add many OrderItemOption.
- Parameters
options – List of OrderItemOption
- Raises
Exception –
- Returns
OrderItemAdd
-
create_response
(data) → merchantapi.request.OrderItemAdd[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemAdd[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_code
(code: str) → merchantapi.request.OrderItemAdd[source]¶ Set Code.
- Parameters
code – str
- Returns
OrderItemAdd
-
set_name
(name: str) → merchantapi.request.OrderItemAdd[source]¶ Set Name.
- Parameters
name – str
- Returns
OrderItemAdd
-
set_options
(options: list) → merchantapi.request.OrderItemAdd[source]¶ Set Options.
- Parameters
options – {OrderItemOption[]}
- Raises
Exception –
- Returns
OrderItemAdd
-
set_order_id
(order_id: int) → merchantapi.request.OrderItemAdd[source]¶ Set Order_ID.
- Parameters
order_id – int
- Returns
OrderItemAdd
-
set_price
(price: float) → merchantapi.request.OrderItemAdd[source]¶ Set Price.
- Parameters
price – float
- Returns
OrderItemAdd
-
set_quantity
(quantity: int) → merchantapi.request.OrderItemAdd[source]¶ Set Quantity.
- Parameters
quantity – int
- Returns
OrderItemAdd
-
set_sku
(sku: str) → merchantapi.request.OrderItemAdd[source]¶ Set Sku.
- Parameters
sku – str
- Returns
OrderItemAdd
-
set_taxable
(taxable: bool) → merchantapi.request.OrderItemAdd[source]¶ Set Taxable.
- Parameters
taxable – bool
- Returns
OrderItemAdd
-
-
class
merchantapi.request.
OrderItemListBackOrder
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_line_id
(line_id) → merchantapi.request.OrderItemListBackOrder[source]¶ Add Line_IDs.
- Parameters
line_id – int
- Returns
{OrderItemListBackOrder}
-
add_order_item
(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListBackOrder[source]¶ Add OrderItem model.
- Parameters
order_item – OrderItem
- Raises
Exception –
- Returns
OrderItemListBackOrder
-
create_response
(data) → merchantapi.request.OrderItemListBackOrder[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemListBackOrder[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_date_in_stock
(date_in_stock: int) → merchantapi.request.OrderItemListBackOrder[source]¶ Set Date_InStock.
- Parameters
date_in_stock – int
- Returns
OrderItemListBackOrder
-
-
class
merchantapi.request.
OrderItemListCancel
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_line_id
(line_id) → merchantapi.request.OrderItemListCancel[source]¶ Add Line_IDs.
- Parameters
line_id – int
- Returns
{OrderItemListCancel}
-
add_order_item
(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListCancel[source]¶ Add OrderItem model.
- Parameters
order_item – OrderItem
- Raises
Exception –
- Returns
OrderItemListCancel
-
create_response
(data) → merchantapi.request.OrderItemListCancel[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemListCancel[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_order_id
(order_id: int) → merchantapi.request.OrderItemListCancel[source]¶ Set Order_ID.
- Parameters
order_id – int
- Returns
OrderItemListCancel
-
-
class
merchantapi.request.
OrderItemListCreateShipment
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_line_id
(line_id) → merchantapi.request.OrderItemListCreateShipment[source]¶ Add Line_IDs.
- Parameters
line_id – int
- Returns
{OrderItemListCreateShipment}
-
add_order_item
(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListCreateShipment[source]¶ Add OrderItem model.
- Parameters
order_item – OrderItem
- Raises
Exception –
- Returns
OrderItemListCreateShipment
-
create_response
(data) → merchantapi.request.OrderItemListCreateShipment[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemListCreateShipment[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderItemListDelete
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_line_id
(line_id) → merchantapi.request.OrderItemListDelete[source]¶ Add Line_IDs.
- Parameters
line_id – int
- Returns
{OrderItemListDelete}
-
add_order_item
(order_item: merchantapi.model.OrderItem) → merchantapi.request.OrderItemListDelete[source]¶ Add OrderItem model.
- Parameters
order_item – OrderItem
- Raises
Exception –
- Returns
OrderItemListDelete
-
create_response
(data) → merchantapi.request.OrderItemListDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemListDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderItemUpdate
(client: merchantapi.client.Client = None, order_item: merchantapi.model.OrderItem = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_option
(option) → merchantapi.request.OrderItemUpdate[source]¶ Add Options.
- Parameters
option – OrderItemOption
- Raises
Exception –
- Returns
{OrderItemUpdate}
-
add_options
(options: list) → merchantapi.request.OrderItemUpdate[source]¶ Add many OrderItemOption.
- Parameters
options – List of OrderItemOption
- Raises
Exception –
- Returns
OrderItemUpdate
-
create_response
(data) → merchantapi.request.OrderItemUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderItemUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_code
(code: str) → merchantapi.request.OrderItemUpdate[source]¶ Set Code.
- Parameters
code – str
- Returns
OrderItemUpdate
-
set_line_id
(line_id: int) → merchantapi.request.OrderItemUpdate[source]¶ Set Line_ID.
- Parameters
line_id – int
- Returns
OrderItemUpdate
-
set_name
(name: str) → merchantapi.request.OrderItemUpdate[source]¶ Set Name.
- Parameters
name – str
- Returns
OrderItemUpdate
-
set_options
(options: list) → merchantapi.request.OrderItemUpdate[source]¶ Set Options.
- Parameters
options – {OrderItemOption[]}
- Raises
Exception –
- Returns
OrderItemUpdate
-
set_order_id
(order_id: int) → merchantapi.request.OrderItemUpdate[source]¶ Set Order_ID.
- Parameters
order_id – int
- Returns
OrderItemUpdate
-
set_price
(price: float) → merchantapi.request.OrderItemUpdate[source]¶ Set Price.
- Parameters
price – float
- Returns
OrderItemUpdate
-
set_quantity
(quantity: int) → merchantapi.request.OrderItemUpdate[source]¶ Set Quantity.
- Parameters
quantity – int
- Returns
OrderItemUpdate
-
set_sku
(sku: str) → merchantapi.request.OrderItemUpdate[source]¶ Set Sku.
- Parameters
sku – str
- Returns
OrderItemUpdate
-
set_taxable
(taxable: bool) → merchantapi.request.OrderItemUpdate[source]¶ Set Taxable.
- Parameters
taxable – bool
- Returns
OrderItemUpdate
-
-
class
merchantapi.request.
OrderListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
PAY_STATUS_FILTER_AUTH_ONLY
= 'auth_0_capt'¶
-
PAY_STATUS_FILTER_CAPTURED_NOT_SHIPPED
= 'capt_not_ship'¶
-
PAY_STATUS_FILTER_PARTIAL_CAPTURE
= 'partial_capt'¶
-
PAY_STATUS_FILTER_SHIPPED_NOT_CAPTURED
= 'ship_not_capt'¶
-
available_custom_filters
= {'BusinessAccount_ID': 'int', 'Customer_ID': 'int', 'pay_id': 'int', 'payment': ['auth_0_capt', 'partial_capt', 'capt_not_ship', 'ship_not_capt'], 'product_code': 'str'}¶
-
available_on_demand_columns
= ['ship_method', 'cust_login', 'cust_pw_email', 'business_title', 'payment_module', 'customer', 'items', 'charges', 'coupons', 'discounts', 'payments', 'notes']¶
-
available_search_fields
= ['id', 'batch_id', 'status', 'pay_status', 'orderdate', 'dt_instock', 'ship_res', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'ship_id', 'ship_data', 'source', 'source_id', 'total', 'total_ship', 'total_tax', 'total_auth', 'total_capt', 'total_rfnd', 'net_capt', 'pend_count', 'bord_count', 'cust_login', 'cust_pw_email', 'business_title', 'note_count']¶
-
available_sort_fields
= ['id', 'batch_id', 'status', 'pay_status', 'orderdate', 'dt_instock', 'ship_res', 'ship_fname', 'ship_lname', 'ship_email', 'ship_comp', 'ship_phone', 'ship_fax', 'ship_addr1', 'ship_addr2', 'ship_city', 'ship_state', 'ship_zip', 'ship_cntry', 'bill_fname', 'bill_lname', 'bill_email', 'bill_comp', 'bill_phone', 'bill_fax', 'bill_addr1', 'bill_addr2', 'bill_city', 'bill_state', 'bill_zip', 'bill_cntry', 'ship_data', 'source', 'source_id', 'total', 'total_ship', 'total_tax', 'total_auth', 'total_capt', 'total_rfnd', 'net_capt', 'pend_count', 'bord_count', 'cust_login', 'cust_pw_email', 'business_title', 'note_count', 'payment_module']¶
-
create_response
(data) → merchantapi.request.OrderListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderPaymentCapture
(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderPaymentCapture[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderPaymentCapture[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_amount
(amount: float) → merchantapi.request.OrderPaymentCapture[source]¶ Set Amount.
- Parameters
amount – float
- Returns
OrderPaymentCapture
-
-
class
merchantapi.request.
OrderPaymentRefund
(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderPaymentRefund[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderPaymentRefund[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_amount
(amount: float) → merchantapi.request.OrderPaymentRefund[source]¶ Set Amount.
- Parameters
amount – float
- Returns
OrderPaymentRefund
-
-
class
merchantapi.request.
OrderPaymentVoid
(client: merchantapi.client.Client = None, order_payment: merchantapi.model.OrderPayment = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderPaymentVoid[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderPaymentVoid[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_amount
(amount: float) → merchantapi.request.OrderPaymentVoid[source]¶ Set Amount.
- Parameters
amount – float
- Returns
OrderPaymentVoid
-
-
class
merchantapi.request.
OrderShipmentListUpdate
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_shipment_update
(shipment_update) → merchantapi.request.OrderShipmentListUpdate[source]¶ Add Shipment_Updates.
- Parameters
shipment_update – OrderShipmentUpdate
- Raises
Exception –
- Returns
{OrderShipmentListUpdate}
-
add_shipment_updates
(shipment_updates: list) → merchantapi.request.OrderShipmentListUpdate[source]¶ Add many OrderShipmentUpdate.
- Parameters
shipment_updates – List of OrderShipmentUpdate
- Raises
Exception –
- Returns
OrderShipmentListUpdate
-
create_response
(data) → merchantapi.request.OrderShipmentListUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderShipmentListUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
OrderUpdateCustomerInformation
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.OrderUpdateCustomerInformation[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_bill_address1
(bill_address1: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Address1.
- Parameters
bill_address1 – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_address2
(bill_address2: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Address2.
- Parameters
bill_address2 – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_city
(bill_city: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_City.
- Parameters
bill_city – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_company
(bill_company: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Company.
- Parameters
bill_company – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_country
(bill_country: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Country.
- Parameters
bill_country – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_email
(bill_email: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Email.
- Parameters
bill_email – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_fax
(bill_fax: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Fax.
- Parameters
bill_fax – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_first_name
(bill_first_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_FirstName.
- Parameters
bill_first_name – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_last_name
(bill_last_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_LastName.
- Parameters
bill_last_name – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_phone
(bill_phone: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Phone.
- Parameters
bill_phone – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_state
(bill_state: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_State.
- Parameters
bill_state – str
- Returns
OrderUpdateCustomerInformation
-
set_bill_zip
(bill_zip: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Bill_Zip.
- Parameters
bill_zip – str
- Returns
OrderUpdateCustomerInformation
-
set_customer_id
(customer_id: int) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
OrderUpdateCustomerInformation
-
set_order_id
(order_id: int) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Order_ID.
- Parameters
order_id – int
- Returns
OrderUpdateCustomerInformation
-
set_ship_address1
(ship_address1: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Address1.
- Parameters
ship_address1 – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_address2
(ship_address2: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Address2.
- Parameters
ship_address2 – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_city
(ship_city: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_City.
- Parameters
ship_city – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_company
(ship_company: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Company.
- Parameters
ship_company – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_country
(ship_country: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Country.
- Parameters
ship_country – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_email
(ship_email: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Email.
- Parameters
ship_email – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_fax
(ship_fax: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Fax.
- Parameters
ship_fax – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_first_name
(ship_first_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_FirstName.
- Parameters
ship_first_name – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_last_name
(ship_last_name: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_LastName.
- Parameters
ship_last_name – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_phone
(ship_phone: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Phone.
- Parameters
ship_phone – str
- Returns
OrderUpdateCustomerInformation
-
set_ship_residential
(ship_residential: bool) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_Residential.
- Parameters
ship_residential – bool
- Returns
OrderUpdateCustomerInformation
-
set_ship_state
(ship_state: str) → merchantapi.request.OrderUpdateCustomerInformation[source]¶ Set Ship_State.
- Parameters
ship_state – str
- Returns
OrderUpdateCustomerInformation
-
-
class
merchantapi.request.
PaymentMethodListLoad
(client: merchantapi.client.Client = None, order: merchantapi.model.Order = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PaymentMethodListLoad[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PaymentMethodListLoad[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
PriceGroupCustomerListLoadQuery
(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]¶ Bases:
merchantapi.request.CustomerListLoadQuery
-
create_response
(data) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PriceGroupCustomerListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
PriceGroupCustomerListLoadQuery
-
set_price_group_id
(price_group_id: int) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]¶ Set PriceGroup_ID.
- Parameters
price_group_id – int
- Returns
PriceGroupCustomerListLoadQuery
-
set_price_group_name
(price_group_name: str) → merchantapi.request.PriceGroupCustomerListLoadQuery[source]¶ Set PriceGroup_Name.
- Parameters
price_group_name – str
- Returns
PriceGroupCustomerListLoadQuery
-
-
class
merchantapi.request.
PriceGroupCustomerUpdateAssigned
(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PriceGroupCustomerUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
PriceGroupCustomerUpdateAssigned
-
set_customer_id
(customer_id: int) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Set Customer_ID.
- Parameters
customer_id – int
- Returns
PriceGroupCustomerUpdateAssigned
-
set_customer_login
(customer_login: str) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Set Customer_Login.
- Parameters
customer_login – str
- Returns
PriceGroupCustomerUpdateAssigned
-
set_edit_customer
(edit_customer: str) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Set Edit_Customer.
- Parameters
edit_customer – str
- Returns
PriceGroupCustomerUpdateAssigned
-
set_price_group_id
(price_group_id: int) → merchantapi.request.PriceGroupCustomerUpdateAssigned[source]¶ Set PriceGroup_ID.
- Parameters
price_group_id – int
- Returns
PriceGroupCustomerUpdateAssigned
-
-
class
merchantapi.request.
PriceGroupListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['id', 'name', 'type', 'module_id', 'custscope', 'rate', 'discount', 'markup', 'dt_start', 'dt_end', 'priority', 'exclusion', 'descrip', 'display', 'qmn_subtot', 'qmx_subtot', 'qmn_quan', 'qmx_quan', 'qmn_weight', 'qmx_weight', 'bmn_subtot', 'bmx_subtot', 'bmn_quan', 'bmx_quan', 'bmn_weight', 'bmx_weight']¶
-
available_sort_fields
= ['id', 'name', 'type', 'module_id', 'custscope', 'rate', 'discount', 'markup', 'dt_start', 'dt_end', 'priority', 'exclusion', 'descrip', 'display', 'qmn_subtot', 'qmx_subtot', 'qmn_quan', 'qmx_quan', 'qmn_weight', 'qmx_weight', 'bmn_subtot', 'bmx_subtot', 'bmn_quan', 'bmx_quan', 'bmn_weight', 'bmx_weight']¶
-
-
class
merchantapi.request.
PriceGroupProductListLoadQuery
(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]¶ Bases:
merchantapi.request.ProductListLoadQuery
-
create_response
(data) → merchantapi.request.PriceGroupProductListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PriceGroupProductListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.PriceGroupProductListLoadQuery[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
PriceGroupProductListLoadQuery
-
set_price_group_id
(price_group_id: int) → merchantapi.request.PriceGroupProductListLoadQuery[source]¶ Set PriceGroup_ID.
- Parameters
price_group_id – int
- Returns
PriceGroupProductListLoadQuery
-
set_price_group_name
(price_group_name: str) → merchantapi.request.PriceGroupProductListLoadQuery[source]¶ Set PriceGroup_Name.
- Parameters
price_group_name – str
- Returns
PriceGroupProductListLoadQuery
-
-
class
merchantapi.request.
PriceGroupProductUpdateAssigned
(client: merchantapi.client.Client = None, price_group: merchantapi.model.PriceGroup = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PriceGroupProductUpdateAssigned[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_assigned
(assigned: bool) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set Assigned.
- Parameters
assigned – bool
- Returns
PriceGroupProductUpdateAssigned
-
set_edit_product
(edit_product: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
PriceGroupProductUpdateAssigned
-
set_price_group_id
(price_group_id: int) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set PriceGroup_ID.
- Parameters
price_group_id – int
- Returns
PriceGroupProductUpdateAssigned
-
set_price_group_name
(price_group_name: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set PriceGroup_Name.
- Parameters
price_group_name – str
- Returns
PriceGroupProductUpdateAssigned
-
set_product_code
(product_code: str) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
PriceGroupProductUpdateAssigned
-
set_product_id
(product_id: int) → merchantapi.request.PriceGroupProductUpdateAssigned[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
PriceGroupProductUpdateAssigned
-
-
class
merchantapi.request.
PrintQueueJobDelete
(client: merchantapi.client.Client = None, print_queue_job: merchantapi.model.PrintQueueJob = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PrintQueueJobDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PrintQueueJobDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
PrintQueueJobInsert
(client: merchantapi.client.Client = None, print_queue: merchantapi.model.PrintQueue = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PrintQueueJobInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PrintQueueJobInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_edit_print_queue
(edit_print_queue: str) → merchantapi.request.PrintQueueJobInsert[source]¶ Set Edit_PrintQueue.
- Parameters
edit_print_queue – str
- Returns
PrintQueueJobInsert
-
set_print_queue_description
(print_queue_description: str) → merchantapi.request.PrintQueueJobInsert[source]¶ Set PrintQueue_Description.
- Parameters
print_queue_description – str
- Returns
PrintQueueJobInsert
-
set_print_queue_id
(print_queue_id: int) → merchantapi.request.PrintQueueJobInsert[source]¶ Set PrintQueue_ID.
- Parameters
print_queue_id – int
- Returns
PrintQueueJobInsert
-
set_print_queue_job_data
(print_queue_job_data: str) → merchantapi.request.PrintQueueJobInsert[source]¶ Set PrintQueueJob_Data.
- Parameters
print_queue_job_data – str
- Returns
PrintQueueJobInsert
-
set_print_queue_job_description
(print_queue_job_description: str) → merchantapi.request.PrintQueueJobInsert[source]¶ Set PrintQueueJob_Description.
- Parameters
print_queue_job_description – str
- Returns
PrintQueueJobInsert
-
-
class
merchantapi.request.
PrintQueueJobListLoadQuery
(client: merchantapi.client.Client = None, print_queue: merchantapi.model.PrintQueue = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_on_demand_columns
= ['job_data']¶
-
available_search_fields
= ['id', 'queue_id', 'store_id', 'user_id', 'descrip', 'job_fmt', 'job_data', 'dt_created']¶
-
available_sort_fields
= ['id', 'queue_id', 'store_id', 'user_id', 'descrip', 'job_fmt', 'job_data', 'dt_created']¶
-
create_response
(data) → merchantapi.request.PrintQueueJobListLoadQuery[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PrintQueueJobListLoadQuery[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_edit_print_queue
(edit_print_queue: str) → merchantapi.request.PrintQueueJobListLoadQuery[source]¶ Set Edit_PrintQueue.
- Parameters
edit_print_queue – str
- Returns
PrintQueueJobListLoadQuery
-
set_print_queue_description
(print_queue_description: str) → merchantapi.request.PrintQueueJobListLoadQuery[source]¶ Set PrintQueue_Description.
- Parameters
print_queue_description – str
- Returns
PrintQueueJobListLoadQuery
-
-
class
merchantapi.request.
PrintQueueJobStatus
(client: merchantapi.client.Client = None, print_queue_job: merchantapi.model.PrintQueueJob = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.PrintQueueJobStatus[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.PrintQueueJobStatus[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
PrintQueueListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
available_search_fields
= ['descrip']¶
-
available_sort_fields
= ['descrip']¶
-
-
class
merchantapi.request.
ProductDelete
(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProductDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProductDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_edit_product
(edit_product: str) → merchantapi.request.ProductDelete[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
ProductDelete
-
set_product_code
(product_code: str) → merchantapi.request.ProductDelete[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
ProductDelete
-
set_product_id
(product_id: int) → merchantapi.request.ProductDelete[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
ProductDelete
-
-
class
merchantapi.request.
ProductImageAdd
(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProductImageAdd[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProductImageAdd[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_edit_product
(edit_product: str) → merchantapi.request.ProductImageAdd[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
ProductImageAdd
-
set_filepath
(filepath: str) → merchantapi.request.ProductImageAdd[source]¶ Set Filepath.
- Parameters
filepath – str
- Returns
ProductImageAdd
-
set_image_type_id
(image_type_id: int) → merchantapi.request.ProductImageAdd[source]¶ Set ImageType_ID.
- Parameters
image_type_id – int
- Returns
ProductImageAdd
-
set_product_code
(product_code: str) → merchantapi.request.ProductImageAdd[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
ProductImageAdd
-
set_product_id
(product_id: int) → merchantapi.request.ProductImageAdd[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
ProductImageAdd
-
-
class
merchantapi.request.
ProductImageDelete
(client: merchantapi.client.Client = None, product_image_data: merchantapi.model.ProductImageData = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProductImageDelete[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProductImageDelete[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
ProductInsert
(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProductInsert[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
get_product_canonical_category_code
() → str[source]¶ Get Product_Canonical_Category_Code.
- Returns
str
-
send
() → merchantapi.response.ProductInsert[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.ProductInsert[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
ProductInsert
-
set_product_active
(product_active: bool) → merchantapi.request.ProductInsert[source]¶ Set Product_Active.
- Parameters
product_active – bool
- Returns
ProductInsert
-
set_product_alternate_display_page
(product_alternate_display_page: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Alternate_Display_Page.
- Parameters
product_alternate_display_page – str
- Returns
ProductInsert
-
set_product_canonical_category_code
(product_canonical_category_code: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Canonical_Category_Code.
- Parameters
product_canonical_category_code – str
- Returns
ProductInsert
-
set_product_code
(product_code: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
ProductInsert
-
set_product_cost
(product_cost: float) → merchantapi.request.ProductInsert[source]¶ Set Product_Cost.
- Parameters
product_cost – float
- Returns
ProductInsert
-
set_product_description
(product_description: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Description.
- Parameters
product_description – str
- Returns
ProductInsert
-
set_product_image
(product_image: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Image.
- Parameters
product_image – str
- Returns
ProductInsert
-
set_product_inventory
(product_inventory: int) → merchantapi.request.ProductInsert[source]¶ Set Product_Inventory.
- Parameters
product_inventory – int
- Returns
ProductInsert
-
set_product_name
(product_name: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Name.
- Parameters
product_name – str
- Returns
ProductInsert
-
set_product_page_title
(product_page_title: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Page_Title.
- Parameters
product_page_title – str
- Returns
ProductInsert
-
set_product_price
(product_price: float) → merchantapi.request.ProductInsert[source]¶ Set Product_Price.
- Parameters
product_price – float
- Returns
ProductInsert
-
set_product_sku
(product_sku: str) → merchantapi.request.ProductInsert[source]¶ Set Product_SKU.
- Parameters
product_sku – str
- Returns
ProductInsert
-
set_product_taxable
(product_taxable: bool) → merchantapi.request.ProductInsert[source]¶ Set Product_Taxable.
- Parameters
product_taxable – bool
- Returns
ProductInsert
-
set_product_thumbnail
(product_thumbnail: str) → merchantapi.request.ProductInsert[source]¶ Set Product_Thumbnail.
- Parameters
product_thumbnail – str
- Returns
ProductInsert
-
-
class
merchantapi.request.
ProductListAdjustInventory
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_inventory_adjustment
(inventory_adjustment) → merchantapi.request.ProductListAdjustInventory[source]¶ Add Inventory_Adjustments.
- Parameters
inventory_adjustment – ProductInventoryAdjustment
- Raises
Exception –
- Returns
{ProductListAdjustInventory}
-
add_inventory_adjustments
(inventory_adjustments: list) → merchantapi.request.ProductListAdjustInventory[source]¶ Add many ProductInventoryAdjustment.
- Parameters
inventory_adjustments – List of ProductInventoryAdjustment
- Raises
Exception –
- Returns
ProductListAdjustInventory
-
create_response
(data) → merchantapi.request.ProductListAdjustInventory[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_inventory_adjustments
() → list[source]¶ Get Inventory_Adjustments.
- Returns
List of ProductInventoryAdjustment
-
send
() → merchantapi.response.ProductListAdjustInventory[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
ProductListLoadQuery
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.listquery.ListQueryRequest
-
PRODUCT_SHOW_ACTIVE
= 'Active'¶
-
PRODUCT_SHOW_ALL
= 'All'¶
-
PRODUCT_SHOW_UNCATEGORIZED
= 'Uncategorized'¶
-
available_custom_filters
= {'Product_Show': ['All', 'Uncategorized', 'Active']}¶
-
available_on_demand_columns
= ['descrip', 'catcount', 'productinventorysettings', 'attributes', 'productimagedata', 'categories', 'productshippingrules', 'relatedproducts', 'uris']¶
-
available_search_fields
= ['id', 'code', 'sku', 'cancat_code', 'page_code', 'name', 'thumbnail', 'image', 'price', 'cost', 'descrip', 'weight', 'taxable', 'active', 'page_title', 'dt_created', 'dt_updated', 'category', 'product_inventory']¶
-
available_sort_fields
= ['id', 'code', 'sku', 'cancat_code', 'page_code', 'name', 'thumbnail', 'image', 'price', 'cost', 'descrip', 'weight', 'taxable', 'active', 'page_title', 'dt_created', 'dt_updated']¶
-
-
class
merchantapi.request.
ProductUpdate
(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProductUpdate[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get_custom_field_values
() → merchantapi.model.CustomFieldValues[source]¶ Get CustomField_Values.
- Returns
CustomFieldValues}|None
-
get_product_canonical_category_code
() → str[source]¶ Get Product_Canonical_Category_Code.
- Returns
str
-
send
() → merchantapi.response.ProductUpdate[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_custom_field_values
(custom_field_values: merchantapi.model.CustomFieldValues) → merchantapi.request.ProductUpdate[source]¶ Set CustomField_Values.
- Parameters
custom_field_values – CustomFieldValues}|None
- Raises
Exception –
- Returns
ProductUpdate
-
set_edit_product
(edit_product: str) → merchantapi.request.ProductUpdate[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
ProductUpdate
-
set_product_active
(product_active: bool) → merchantapi.request.ProductUpdate[source]¶ Set Product_Active.
- Parameters
product_active – bool
- Returns
ProductUpdate
-
set_product_alternate_display_page
(product_alternate_display_page: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Alternate_Display_Page.
- Parameters
product_alternate_display_page – str
- Returns
ProductUpdate
-
set_product_canonical_category_code
(product_canonical_category_code: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Canonical_Category_Code.
- Parameters
product_canonical_category_code – str
- Returns
ProductUpdate
-
set_product_code
(product_code: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
ProductUpdate
-
set_product_cost
(product_cost: float) → merchantapi.request.ProductUpdate[source]¶ Set Product_Cost.
- Parameters
product_cost – float
- Returns
ProductUpdate
-
set_product_description
(product_description: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Description.
- Parameters
product_description – str
- Returns
ProductUpdate
-
set_product_id
(product_id: int) → merchantapi.request.ProductUpdate[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
ProductUpdate
-
set_product_image
(product_image: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Image.
- Parameters
product_image – str
- Returns
ProductUpdate
-
set_product_inventory
(product_inventory: int) → merchantapi.request.ProductUpdate[source]¶ Set Product_Inventory.
- Parameters
product_inventory – int
- Returns
ProductUpdate
-
set_product_name
(product_name: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Name.
- Parameters
product_name – str
- Returns
ProductUpdate
-
set_product_page_title
(product_page_title: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Page_Title.
- Parameters
product_page_title – str
- Returns
ProductUpdate
-
set_product_price
(product_price: float) → merchantapi.request.ProductUpdate[source]¶ Set Product_Price.
- Parameters
product_price – float
- Returns
ProductUpdate
-
set_product_sku
(product_sku: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_SKU.
- Parameters
product_sku – str
- Returns
ProductUpdate
-
set_product_taxable
(product_taxable: bool) → merchantapi.request.ProductUpdate[source]¶ Set Product_Taxable.
- Parameters
product_taxable – bool
- Returns
ProductUpdate
-
set_product_thumbnail
(product_thumbnail: str) → merchantapi.request.ProductUpdate[source]¶ Set Product_Thumbnail.
- Parameters
product_thumbnail – str
- Returns
ProductUpdate
-
-
class
merchantapi.request.
ProductVariantListLoadProduct
(client: merchantapi.client.Client = None, product: merchantapi.model.Product = None)[source]¶ Bases:
merchantapi.abstract.Request
-
add_exclusion
(exclusion) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Add Exclusions.
- Parameters
exclusion – ProductVariantExclusion
- Raises
Exception –
- Returns
{ProductVariantListLoadProduct}
-
add_exclusions
(exclusions: list) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Add many ProductVariantExclusion.
- Parameters
exclusions – List of ProductVariantExclusion
- Raises
Exception –
- Returns
ProductVariantListLoadProduct
-
add_limit
(limit) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Add Limits.
- Parameters
limit – ProductVariantLimit
- Raises
Exception –
- Returns
{ProductVariantListLoadProduct}
-
add_limits
(limits: list) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Add many ProductVariantLimit.
- Parameters
limits – List of ProductVariantLimit
- Raises
Exception –
- Returns
ProductVariantListLoadProduct
-
create_response
(data) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProductVariantListLoadProduct[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set_edit_product
(edit_product: str) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Edit_Product.
- Parameters
edit_product – str
- Returns
ProductVariantListLoadProduct
-
set_exclusions
(exclusions: list) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Exclusions.
- Parameters
exclusions – {ProductVariantExclusion[]}
- Raises
Exception –
- Returns
ProductVariantListLoadProduct
-
set_include_default_variant
(include_default_variant: bool) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Include_Default_Variant.
- Parameters
include_default_variant – bool
- Returns
ProductVariantListLoadProduct
-
set_limits
(limits: list) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Limits.
- Parameters
limits – {ProductVariantLimit[]}
- Raises
Exception –
- Returns
ProductVariantListLoadProduct
-
set_product_code
(product_code: str) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Product_Code.
- Parameters
product_code – str
- Returns
ProductVariantListLoadProduct
-
set_product_id
(product_id: int) → merchantapi.request.ProductVariantListLoadProduct[source]¶ Set Product_ID.
- Parameters
product_id – int
- Returns
ProductVariantListLoadProduct
-
-
class
merchantapi.request.
ProvisionDomain
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProvisionDomain[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProvisionDomain[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
ProvisionStore
(client: merchantapi.client.Client = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.request.ProvisionStore[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
send
() → merchantapi.response.ProvisionStore[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
-
class
merchantapi.request.
RequestBuilder
(client: merchantapi.client.Client, function: str, data: dict = None)[source]¶ Bases:
merchantapi.abstract.Request
-
create_response
(data) → merchantapi.response.RequestBuilder[source]¶ Create a response object from the response data
- Parameters
data –
- Returns
Response
-
get
(field: str, default_value=None)[source]¶ Get a field value
- Parameters
field – str
default_value – mixed
- Returns
mixed
-
remove
(field: str) → merchantapi.request.RequestBuilder[source]¶ Remove a field if it exists
- Parameters
field – str
-
send
() → merchantapi.response.RequestBuilder[source]¶ Send this object via the assigned client.
- Returns
Response
- Raises
Exception – when no client assigned
-
set
(field: str, value) → merchantapi.request.RequestBuilder[source]¶ Set a field value
- Parameters
field – str
value – mixed
-
set_function
(function: str) → merchantapi.request.RequestBuilder[source]¶ Set the request function
- Parameters
function – str
-
merchantapi.response module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
$Id: response.py 77709 2019-08-30 16:41:54Z gidriss $
-
class
merchantapi.response.
AvailabilityGroupBusinessAccountUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
AvailabilityGroupCustomerUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
AvailabilityGroupListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
AvailabilityGroupPaymentMethodUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
AvailabilityGroupProductUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
AvailabilityGroupShippingMethodUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CategoryDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CategoryInsert
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CategoryListLoadParent
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CategoryListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CategoryProductListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CategoryProductUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CategoryUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CouponListDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CouponListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CouponPriceGroupListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CouponPriceGroupUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CustomerAddressListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CustomerDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CustomerInsert
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CustomerListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CustomerPaymentCardListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CustomerPaymentCardRegister
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
CustomerPriceGroupListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
CustomerUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
NoteListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
OrderAuthorize
(request: merchantapi.abstract.Request, data: dict)[source]¶ Bases:
merchantapi.abstract.Response
Get order_payment_authorize.
- Returns
OrderPaymentAuthorize
-
class
merchantapi.response.
OrderCreateFromOrder
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderCustomFieldListLoad
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderCustomFieldsUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderItemListBackOrder
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderItemListCancel
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderItemListCreateShipment
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderItemListDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderItemUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
OrderPaymentCapture
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderPaymentRefund
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderPaymentVoid
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderShipmentListUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
OrderUpdateCustomerInformation
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PaymentMethodListLoad
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PriceGroupCustomerListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
PriceGroupCustomerUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PriceGroupListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
PriceGroupProductListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
PriceGroupProductUpdateAssigned
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PrintQueueJobDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PrintQueueJobInsert
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PrintQueueJobListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
PrintQueueJobStatus
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
PrintQueueListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
ProductDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductImageAdd
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductImageDelete
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductInsert
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductListAdjustInventory
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductListLoadQuery
(request: merchantapi.listquery.ListQueryRequest, data: dict)[source]¶
-
class
merchantapi.response.
ProductUpdate
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProductVariantListLoadProduct
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProvisionDomain
(request: merchantapi.abstract.Request, data: dict)[source]¶
-
class
merchantapi.response.
ProvisionStore
(request: merchantapi.abstract.Request, data: dict)[source]¶
merchantapi.version module¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with self source code.
$Id: version.py 77666 2019-08-29 19:17:24Z gidriss $
Module contents¶
This file is part of the MerchantAPI package.
Miva Inc <https://www.miva.com/>
For the full copyright and license information, please view the LICENSE file that was distributed with self source code.
$Id: __init__.py 77670 2019-08-29 19:21:43Z gidriss $