wepay.calls.subscription
Module¶
-
class
wepay.calls.subscription.
Subscription
(api)[source]¶ The /subscription API calls
-
__call__
(subscription_id, **kwargs)[source]¶ Call documentation: /subscription, plus extra keyword parameters:
Parameters: - access_token (str) – will be used instead of instance’s
access_token
, withbatch_mode=True
will set authorization param to it’s value. - batch_mode (bool) – turn on/off the batch_mode, see
wepay.api.WePay
- batch_reference_id (str) – reference_id param for batch call,
see
wepay.api.WePay
- api_version (str) – WePay API version, see
wepay.api.WePay
- access_token (str) – will be used instead of instance’s
-
find
(subscription_plan_id, **kwargs)¶ Call documentation: /subscription/find, plus extra keyword parameters:
Parameters: - access_token (str) – will be used instead of instance’s
access_token
, withbatch_mode=True
will set authorization param to it’s value. - batch_mode (bool) – turn on/off the batch_mode, see
wepay.api.WePay
- batch_reference_id (str) – reference_id param for batch call,
see
wepay.api.WePay
- api_version (str) – WePay API version, see
wepay.api.WePay
- access_token (str) – will be used instead of instance’s
-
create
(subscription_plan_id, **kwargs)¶ Call documentation: /subscription/create, plus extra keyword parameters:
Parameters: - access_token (str) – will be used instead of instance’s
access_token
, withbatch_mode=True
will set authorization param to it’s value. - batch_mode (bool) – turn on/off the batch_mode, see
wepay.api.WePay
- batch_reference_id (str) – reference_id param for batch call,
see
wepay.api.WePay
- api_version (str) – WePay API version, see
wepay.api.WePay
- access_token (str) – will be used instead of instance’s
-
cancel
(subscription_id, **kwargs)¶ Call documentation: /subscription/cancel, plus extra keyword parameters:
Parameters: - access_token (str) – will be used instead of instance’s
access_token
, withbatch_mode=True
will set authorization param to it’s value. - batch_mode (bool) – turn on/off the batch_mode, see
wepay.api.WePay
- batch_reference_id (str) – reference_id param for batch call,
see
wepay.api.WePay
- api_version (str) – WePay API version, see
wepay.api.WePay
- access_token (str) – will be used instead of instance’s
-
modify
(subscription_id, **kwargs)¶ Call documentation: /subscription/modify, plus extra keyword parameters:
Parameters: - access_token (str) – will be used instead of instance’s
access_token
, withbatch_mode=True
will set authorization param to it’s value. - batch_mode (bool) – turn on/off the batch_mode, see
wepay.api.WePay
- batch_reference_id (str) – reference_id param for batch call,
see
wepay.api.WePay
- api_version (str) – WePay API version, see
wepay.api.WePay
- access_token (str) – will be used instead of instance’s
-