AMA for “The Underdog Founder” by Edrizio de La Cruz (YC S13)
3 pointsby mtamizi0 comments
Given(/^I have sufficient funds in my marketplace$/) do
step 'I have tokenized a card'
@client.post("/cards/#{@card_id}/debits", {
amount: 500000
})
end
Here's another example from the scenario above: Given(/^I have a tokenized debit card$/) do
@client.post('/cards',
{
name: "Johannes Bach",
number: "4342561111111118",
expiration_month: "05",
expiration_year: "2015"
}
)
@debit_card_id = @client['cards']['id']
@client.add_hydrate(:debit_card_id, @debit_card_id)
end Scenario: Push money to an existing debit card
Given I have sufficient funds in my marketplace
And I have a tokenized debit card
When I POST to /cards/:debit_card_id/credits with the JSON API body:
"""
{
"credits": [{
"amount": 1234
}]
}
"""
Then I should get a 201 Created status code
And the response is valid according to the "credits" schema
And the fields on this credit match:
"""
{
"status": "succeeded"
}
"""
And the credit was successfully created
There's several things in there like "And I have a tokenized debit card" that setup the scenario to be able to do things like "/cards/:debit_card_id/credits", which refers to an actual card ID created in the test API.
He’s publishing his new book, The Underdog Founder, on September 19th where he shares his odyssey from when he sold guavas in his Dominican barrio all the way to when he sold his company to Mastercard.
Edrizio will present the book in a YC off-the-record founder story format. Then, we’ll do an AMA to answer any questions you may have. We’ll cover topics like fundraising, M&A, mental health, overcoming extreme obstacles, and more.
The advanced preview copy of the book impacted me in it’s brutal honesty about the challenges Edrizio had to overcome. It’s a version of the founder story that’s rarely told and refreshing to read.
Leave your questions in the comments for the AMA.
More about the book: edriziodelacruz.com