Invoice class

Os clientes efetuam pagamentos através das faturas. As faturas contém itens que representam o que o cliente está pagando, o serviço ou produto.

Inheritance

Constructors

Invoice(IuguClient client)

Properties

apiResource APIResource
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

cancel({String id, String customApiToken}) Future<InvoiceModel>
capture({String id}) Future<InvoiceModel>
Captura uma fatura com estado 'Em Análise'
create({String email, DateTime dueDate, List<Item> items, String returnUrl, String expiredUrl, String notificationUrl, int taxCents: 0, int discountCents: 0, String customerId, bool ignoreDueEmail: false, String subscriptionId, int credits, Logs logs, List<CustomVariables> customVariables, PayerModel payer, bool earlyPaymentDiscount: false, List<EarlyPaymentDiscounts> earlyPaymentDiscounts, String customApiToken}) Future<InvoiceModel>
Cria uma Fatura para um Cliente (Podendo ser apenas um e-mail).
delete({String id}) Future<InvoiceModel>
dispose() → void
Disposes controllers, streams, etc.
override
duplicate({String id, InvoiceDuplicateRequestMessage data, String customApiToken}) Future<InvoiceModel>
Gera segunda via de uma Fatura. Somente faturas pendentes podem ter segunda via gerada. A fatura atual é cancelada e uma nova é gerada com status ‘pending’.
getAll({String filter: "?limit=1000", String customApiToken}) Future<PaggedResponseMessage<InvoiceModel>>
Lista todas as ultimas(1000) faturas possibilitando enviar um ApiToken de subconta, geralmente utilizado em marketplaces
getById({String id, String apiUserToken}) Future<InvoiceModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
put({String id, InvoiceModel model}) Future<InvoiceModel>
refund({String id}) Future<InvoiceModel>
resendInvoiceMail({String id, String customApiToken}) Future<InvoiceModel>
Reenviar fatura para o email do cliente
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited