Class: Creator

Creator

new Creator()

A helper for the complex creation method
Source:

Methods

create() → {Promise}

Create a transaction with this creator.
Source:
Returns:
a promise, which will be fulfilled with a Transaction or rejected with a PMError.
Type
Promise

withClient(client) → {TransactionService.Creator}

Add a client
Parameters:
Name Type Description
client string | Client
Source:
Returns:
the same creator
Type
TransactionService.Creator

withDescription(description) → {TransactionService.Creator}

Add a description
Parameters:
Name Type Description
description string
Source:
Returns:
the same creator
Type
TransactionService.Creator

withFeeAmount(fee_amount) → {TransactionService.Creator}

Add a fee amount
Parameters:
Name Type Description
fee_amount string | Client
Source:
Returns:
the same creator
Type
TransactionService.Creator

withFeeCurrency(fee_currency) → {TransactionService.Creator}

Add a fee currency
Parameters:
Name Type Description
fee_currency string
Source:
Returns:
the same creator
Type
TransactionService.Creator

withFeePayment(client) → {TransactionService.Creator}

Add a fee payment
Parameters:
Name Type Description
client string | Client
Source:
Returns:
the same creator
Type
TransactionService.Creator

withMandateReference(mandate_reference) → {TransactionService.Creator}

Add a mandate reference
Parameters:
Name Type Description
mandate_reference string
Source:
Returns:
the same creator
Type
TransactionService.Creator