コード例 #1
0
 public static CreditCard createDummyCreditCard() {
   CreditCard creditCard = new CreditCard();
   creditCard.setBillingAddress(BILLINGADDRESS);
   creditCard.setExpireMonth(EXPMONTH);
   creditCard.setExpireYear(EXPYEAR);
   creditCard.setFirstName(FIRSTNAME);
   creditCard.setLastName(LASTNAME);
   creditCard.setNumber(NUMBER);
   creditCard.setType(TYPE);
   creditCard.setCvv2(CVV2);
   creditCard.setBillingAddress(BILLINGADDRESS);
   creditCard.setId(ID);
   creditCard.setExternalCustomerId(EXTERNAL_CUSTOMER_ID);
   creditCard.setState(STATE);
   creditCard.setValidUntil(VALIDUNTIL);
   List<Links> links = new ArrayList<Links>();
   links.add(LinksTestCase.createLinks());
   creditCard.setLinks(links);
   return creditCard;
 }
コード例 #2
0
 public static CreditCard createCreditCard() {
   CreditCard creditCard = new CreditCard();
   creditCard
       .setBillingAddress(BILLINGADDRESS)
       .setExpireMonth(EXPMONTH)
       .setExpireYear(EXPYEAR)
       .setFirstName(FIRSTNAME)
       .setLastName(LASTNAME)
       .setNumber(NUMBER)
       .setType(TYPE)
       .setCvv2(CVV2)
       .setBillingAddress(BILLINGADDRESS)
       .setId(ID)
       .setState(STATE)
       .setValidUntil(VALIDUNTIL);
   return creditCard;
 }