Пример #1
0
  @Test
  public void testMerchantStatusNoMatch() throws HTTPError {
    Map<String, Object> payload = new HashMap<String, Object>();

    payload.put("name", "John Lee Hooker");
    payload.put("phone", "(904) 555-1796");

    Map<String, String> address = new HashMap<String, String>();
    address.put("city", "San Francisco");
    address.put("state", "CA");
    address.put("postal_code", "94103");
    address.put("line1", "965 Mission St");
    address.put("country_code", "US");
    payload.put("address", address);

    payload.put("ssn_last4", "3209");

    Customer merchant = new Customer(payload);
    merchant.save();
    assertEquals("no-match", merchant.merchant_status);
  }
Пример #2
0
 @Test
 public void testCreateBusinessCustomer() throws HTTPError {
   Map<String, Object> payload = businessCustomerPayload();
   Customer customer = new Customer(payload);
   customer.save();
 }