/** * Mark an invoice as uncollectible. */ public Invoice markUncollectible() throws StripeException { return this.markUncollectible((RequestOptions) null); }
/** * Mark an invoice as uncollectible. */ public Invoice markUncollectible(RequestOptions options) throws StripeException { return markUncollectible(null, options); }
/** * Mark an invoice as uncollectible. */ public Invoice markUncollectible(Map<String, Object> params) throws StripeException { return this.markUncollectible(params, null); }
@Test public void testMarkUncollectible() throws StripeException { final Invoice invoice = getInvoiceFixture(); final Invoice uncollectibleInvoice = invoice.markUncollectible(); assertNotNull(uncollectibleInvoice); verifyRequest( ApiResource.RequestMethod.POST, String.format("/v1/invoices/%s/mark_uncollectible", invoice.getId()) ); }