wepay.calls.preapproval Module

class wepay.calls.preapproval.Preapproval(api)[source]

The /preapproval API calls

__call__(preapproval_id, **kwargs)[source]

Call documentation: /preapproval, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_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
find(**kwargs)

Call documentation: /preapproval/find, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_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
create(short_description, period, **kwargs)

Call documentation: /preapproval/create, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_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
cancel(preapproval_id, **kwargs)

Call documentation: /preapproval/cancel, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_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
modify(preapproval_id, **kwargs)

Call documentation: /preapproval/modify, plus extra keyword parameters:

Parameters:
  • access_token (str) – will be used instead of instance’s access_token, with batch_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