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
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel({required String id, String customApiToken = ''}) Future<InvoiceModel>
capture({required String id}) Future<InvoiceModel>
Captura uma fatura com estado 'Em Análise'
create({required String email, required DateTime dueDate, required List<Item> items, String? returnUrl, String? expiredUrl, String? notificationUrl, String? customerId, String? subscriptionId, int? credits, Logs? logs, List<CustomVariables>? customVariables, PayerModel? payer, List<EarlyPaymentDiscounts>? earlyPaymentDiscounts, int? taxCents, int? discountCents, bool ignoreDueEmail = false, bool earlyPaymentDiscount = false, String? customApiToken, String paymentMethod = 'bank_slip'}) Future<InvoiceModel>
Cria uma Fatura para um Cliente (Podendo ser apenas um e-mail).
delete({required String id}) Future<InvoiceModel>
dispose() → void
Disposes controllers, streams, etc.
override
duplicate({required String id, required 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({required String id, String apiUserToken = ''}) Future<InvoiceModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put({required String id, required InvoiceModel model}) Future<InvoiceModel>
refund({required String id}) Future<InvoiceModel>
resendInvoiceMail({required String id, String customApiToken = ''}) Future<InvoiceModel>
Reenviar fatura para o email do cliente
toString() String
A string representation of this object.
inherited

Operators

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