Agreement
Schema: agreement.json
It represents an agreement where the user selects a plan and indicates how to pay for it.
Input example
{
"planName": "PLAN-60K",
"paymentMethod": {
"creditCard": {
"cardNumber": "1234123412341234",
"verificationCode": "123",
"expiryDate": "0518",
"cardHoldersName": "Juan Perez"
}
},
"billingInformation": {
"name": "Juan Perez",
"companyName": "JP & Co.",
"address": "Calle Falsa 123",
"city": "Springfield",
"zipCode": "65804",
"countryCode": "US"
}
}
Output example
{
"planName": "PLAN-60K",
"paymentMethod": {
"creditCard": {
"cardHoldersName": "Juan Perez",
"cardNumber": "************1234",
"cardBrand": "visa"
}
},
"billingInformation": {
"name": "Juan Perez",
"companyName": "JP & Co.",
"address": "Calle Falsa 123",
"city": "Springfield",
"zipCode": "65804",
"countryCode": "US"
},
"startDate": "2017-05-20",
"currency": "USD",
"fee": 57.90,
"includedDeliveries": 60000,
"extraDeliveryCost": 0.0001
}