Package com.stripe.model

Examples of com.stripe.model.Transfer


    assertNull(Customer.retrieve(customer.getId()).getDiscount());
  }

  @Test
  public void testTransferCreate() throws StripeException {
    Transfer createdTransfer = Transfer.create(getTransferParams());
    assertEquals("pending", createdTransfer.getStatus());
  }
View Full Code Here


    assertEquals("pending", createdTransfer.getStatus());
  }

  @Test(expected=InvalidRequestException.class)
  public void testTransferCancel() throws StripeException {
    Transfer createdTransfer = Transfer.create(getTransferParams());
    createdTransfer.cancel();

    // post-condition: we expect an InvalidRequestException here (caught by JUnit),
    // because in test mode, transfers are automatically sent
  }
View Full Code Here

    // because in test mode, transfers are automatically sent
  }

  @Test
  public void testTransferRetrieve() throws StripeException {
    Transfer createdTransfer = Transfer.create(getTransferParams());
    Transfer retrievedTransfer= Transfer.retrieve(createdTransfer.getId());
    assertEquals(createdTransfer.getDate(), retrievedTransfer.getDate());
    assertEquals(createdTransfer.getId(), retrievedTransfer.getId());
  }
View Full Code Here

TOP

Related Classes of com.stripe.model.Transfer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.