Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Who ? => transaction.payer
- * Where ? => transaction.venue -> gives venue information
- * => transaction.venue.organization -> gives merchant information
- * What ? => transaction.currency -> gives information about the currency
- * => transaction.
- /
- var transaction = {
- // uuid
- id: '81f60cbd-857c-472b-8074-da0b190962a2',
- // re_user object
- payer: {
- id: '81f60cbd-857c-472b-8074-da0b190962a2',
- username: 'mp3por',
- email: 'omgomg@omg.com',
- password: 'nqkav hash deto trqq da go ne davam realno',
- // location object
- location: {
- country,
- state,
- city,
- street,
- number,
- post_code,
- lat,
- lng,
- timezone
- },
- // contact info object
- contact_info: {
- first_name,
- last_name,
- title,
- phone
- }
- },
- // venue object
- venue: {
- id: '81f60cbd-857c-472b-8074-da0b190962a2',
- name: 'Pret A Manger Conary Warf ( ili ne6to takova )',
- // contact info object
- contact_info: {
- first_name,
- last_name,
- title,
- phone
- },
- // location object
- location: {
- country,
- state,
- city,
- street,
- number,
- post_code,
- lat,
- lng,
- timezone
- },
- // contract object
- re_info: {
- commission_fee,
- commission_percent
- },
- // currency object
- currency: { name, ticker },
- // amount
- amount: 'number',
- // TODO: WHAT WILL WE HOLD THE MONEY IN ?
- inner_currency: {},
- // status object
- status: { ACTIVE, COOMING_SOON, DISABLED },
- // the organization which owns the venue
- organization: {
- id: '81f60cbd-857c-472b-8074-da0b190962a2',
- name: 'Pret A Manger Big',
- // re_user object
- creator: {
- id: '81f60cbd-857c-472b-8074-da0b190962a2',
- username: 'mp3por',
- email: 'omgomg@omg.com',
- password: 'nqkav hash deto trqq da go ne davam realno',
- location: {
- country,
- state,
- city,
- street,
- number,
- post_code,
- lat,
- lng,
- timezone
- },
- contact_info: {
- first_name,
- last_name,
- title,
- phone
- }
- },
- contact_info: {
- first_name,
- last_name,
- title,
- phone
- },
- location: {
- country,
- state,
- city,
- street,
- number,
- post_code,
- lat,
- lng,
- timezone
- },
- re_info: {
- commission_fee,
- commission_percent
- },
- currency: { name, ticker },
- status: { REGISTERED, SIGNED, OPERATIONAL, SUSPENDED, REMOVED },
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement