createInvoice abstract method

  1. @Headers(<String, dynamic>{"Accept" : "application/json"})
  2. @POST("/api/invoice")
Future<ChargilyResponse> createInvoice(
  1. @Header("X-Authorization") dynamic apiKey,
  2. Invoice invoice
)

Implementation

@Headers(<String, dynamic>{"Accept": "application/json"})
@POST("/api/invoice")
Future<ChargilyResponse> createInvoice(
    @Header("X-Authorization") apiKey, Invoice invoice);