public interface InvoicePaymentService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
estId |
static String |
path |
static String |
paymentId |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<InvoicePayment> |
create(long invoiceId,
InvoicePayment creationInfo) |
retrofit2.Call<Void> |
delete(long invoiceId,
long invoicePaymentId) |
retrofit2.Call<PaginatedList> |
list(long invoiceId,
Instant updatedSince,
int page,
int perPage) |
static final String paymentId
static final String estId
static final String basePath
static final String path
@GET(value="invoices/{invoiceId}/payments")
retrofit2.Call<PaginatedList> list(@Path(value="invoiceId")
long invoiceId,
@Query(value="updated_since")
Instant updatedSince,
@Query(value="page")
int page,
@Query(value="per_page")
int perPage)
@POST(value="invoices/{invoiceId}/payments")
retrofit2.Call<InvoicePayment> create(@Path(value="invoiceId")
long invoiceId,
@Body
InvoicePayment creationInfo)
@DELETE(value="invoices/{invoiceId}/payments/{id}")
retrofit2.Call<Void> delete(@Path(value="invoiceId")
long invoiceId,
@Path(value="id")
long invoicePaymentId)