use of com.stripe.model.DeletedInvoiceItem in project stripe-java by stripe.
the class InvoiceTest method testInvoiceItemDeletePerCallAPIKey.
@Test
public void testInvoiceItemDeletePerCallAPIKey() throws StripeException {
Customer customer = Customer.create(defaultCustomerParams, Stripe.apiKey);
InvoiceItem createdInvoiceItem = createDefaultInvoiceItem(customer);
DeletedInvoiceItem deletedInvoiceItem = createdInvoiceItem.delete(Stripe.apiKey);
assertTrue(deletedInvoiceItem.getDeleted());
assertEquals(deletedInvoiceItem.getId(), createdInvoiceItem.getId());
}
use of com.stripe.model.DeletedInvoiceItem in project stripe-java by stripe.
the class InvoiceTest method testInvoiceItemDelete.
@Test
public void testInvoiceItemDelete() throws StripeException {
Customer customer = Customer.create(defaultCustomerParams);
InvoiceItem createdInvoiceItem = createDefaultInvoiceItem(customer);
DeletedInvoiceItem deletedInvoiceItem = createdInvoiceItem.delete();
assertTrue(deletedInvoiceItem.getDeleted());
assertEquals(deletedInvoiceItem.getId(), createdInvoiceItem.getId());
}
Aggregations