Skip to content

Instantly share code, notes, and snippets.

@sbailliez
Created June 2, 2014 22:05
Show Gist options
  • Save sbailliez/06ebfdbabf9b382f66df to your computer and use it in GitHub Desktop.
Save sbailliez/06ebfdbabf9b382f66df to your computer and use it in GitHub Desktop.
Customer customer = new Customer();
.... save customer ...
Card card = new Card(cardHref);
if (card.customer == null) {
card.associateToCustomer(customer);
}
Debit debit = card.debit(...);
DebitResult result = from(debit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment