Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. * Who ? => transaction.payer
  3. * Where ? => transaction.venue -> gives venue information
  4. *         => transaction.venue.organization -> gives merchant information
  5. * What ?  => transaction.currency -> gives information about the currency
  6. *         => transaction.
  7. /
  8.  
  9.  
  10. var transaction = {
  11.   // uuid
  12.   id: '81f60cbd-857c-472b-8074-da0b190962a2',
  13.  
  14.   // re_user object
  15.   payer: {
  16.     id: '81f60cbd-857c-472b-8074-da0b190962a2',
  17.     username: 'mp3por',
  18.     email: 'omgomg@omg.com',
  19.     password: 'nqkav hash deto trqq da go ne davam realno',
  20.    
  21.     // location object
  22.     location: {
  23.       country,
  24.       state,
  25.       city,
  26.       street,
  27.       number,
  28.       post_code,
  29.       lat,
  30.       lng,
  31.       timezone
  32.     },
  33.  
  34.     // contact info object
  35.     contact_info: {
  36.       first_name,
  37.       last_name,
  38.       title,
  39.       phone
  40.     }
  41.   },
  42.  
  43.   // venue object
  44.   venue: {
  45.     id: '81f60cbd-857c-472b-8074-da0b190962a2',
  46.     name: 'Pret A Manger Conary Warf ( ili ne6to takova )',
  47.  
  48.     // contact info object
  49.     contact_info: {
  50.       first_name,
  51.       last_name,
  52.       title,
  53.       phone
  54.     },
  55.  
  56.     // location object
  57.     location: {
  58.       country,
  59.       state,
  60.       city,
  61.       street,
  62.       number,
  63.       post_code,
  64.       lat,
  65.       lng,
  66.       timezone
  67.     },
  68.  
  69.     // contract object
  70.     re_info: {
  71.       commission_fee,
  72.       commission_percent
  73.     },
  74.  
  75.     // currency object
  76.     currency: { name, ticker },
  77.  
  78.     // amount
  79.     amount: 'number',
  80.  
  81.     // TODO: WHAT WILL WE HOLD THE MONEY IN ?
  82.     inner_currency: {},
  83.  
  84.     // status object
  85.     status: { ACTIVE, COOMING_SOON, DISABLED },
  86.  
  87.     // the organization which owns the venue
  88.     organization: {
  89.       id: '81f60cbd-857c-472b-8074-da0b190962a2',
  90.       name: 'Pret A Manger Big',
  91.  
  92.       // re_user object
  93.       creator: {
  94.         id: '81f60cbd-857c-472b-8074-da0b190962a2',
  95.         username: 'mp3por',
  96.         email: 'omgomg@omg.com',
  97.         password: 'nqkav hash deto trqq da go ne davam realno',
  98.         location: {
  99.           country,
  100.           state,
  101.           city,
  102.           street,
  103.           number,
  104.           post_code,
  105.           lat,
  106.           lng,
  107.           timezone
  108.         },
  109.         contact_info: {
  110.           first_name,
  111.           last_name,
  112.           title,
  113.           phone
  114.         }
  115.       },
  116.       contact_info: {
  117.         first_name,
  118.         last_name,
  119.         title,
  120.         phone
  121.       },
  122.       location: {
  123.         country,
  124.         state,
  125.         city,
  126.         street,
  127.         number,
  128.         post_code,
  129.         lat,
  130.         lng,
  131.         timezone
  132.       },
  133.       re_info: {
  134.         commission_fee,
  135.         commission_percent
  136.       },
  137.       currency: { name, ticker },
  138.       status: { REGISTERED, SIGNED, OPERATIONAL, SUSPENDED, REMOVED },
  139.     }
  140.   }
  141. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement