Skip to content

Instantly share code, notes, and snippets.

@tcha-tcho
Last active January 31, 2024 21:11
Show Gist options
  • Save tcha-tcho/8e10f772bd7e2786740a63c5af5d51c5 to your computer and use it in GitHub Desktop.
Save tcha-tcho/8e10f772bd7e2786740a63c5af5d51c5 to your computer and use it in GitHub Desktop.
Invoice_data.js
// [bucket]/<userID>/invoices/invoiceID.json
{
"invoiceID": "Number"
,"by": "UID"
,"createdAt": "Date"
,"legacyLogin": "String"
,"chargeType": "String[event|recurrent|occasional]"
,"userToCharge": {
"name": "String"
,"CPFCNPJ": "String"
,"userID": "String"
}
,"paymentGateway": {
"name": "String"
,"callback": "String"
,"accountID": "String"
,"billingType": "String"
,"maxInstallmentCount": "String"
}
,"currentStatus": "String"
,"statusHistory": [
{}
]
,"notification": "String"
,"notificationHistory": [
{}
]
,"tax": "Number"
,"taxesDetails": [
{}
]
,"value": "Number"
,"name": "String"
,"description": "String"
,"dueDate": "Date"
,"dueDateLimitDays": "Date"
,"amountsDetails": [
[
"imei"
,"name"
,[ [ "plano", "endtimestamp" ] ]
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment