use of com.stripe.model.DeletedPlan in project stripe-java by stripe.
the class PlanTest method testPlanDeletePerCallAPIKey.
@Test
public void testPlanDeletePerCallAPIKey() throws StripeException {
Plan createdPlan = Plan.create(getUniquePlanParams(), Stripe.apiKey);
DeletedPlan deletedPlan = createdPlan.delete(Stripe.apiKey);
assertTrue(deletedPlan.getDeleted());
assertEquals(deletedPlan.getId(), createdPlan.getId());
}
use of com.stripe.model.DeletedPlan in project stripe-java by stripe.
the class PlanTest method testPlanDelete.
@Test
public void testPlanDelete() throws StripeException {
Plan createdPlan = Plan.create(getUniquePlanParams());
DeletedPlan deletedPlan = createdPlan.delete();
assertTrue(deletedPlan.getDeleted());
assertEquals(deletedPlan.getId(), createdPlan.getId());
}
Aggregations