pichaya_om

Single Gen Preset

May 29th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.58 KB | None | 0 0
  1. Preset Data Render
  2. preset = [{
  3.     id: 1
  4.     title : 'present1',
  5.     data: [{
  6.         course_slug: 'toeic',
  7.         sales_amount: 1000,
  8.         days_limit: 50,
  9.         promotion_code: 'code1234',
  10.     },
  11.     {
  12.         course_slug: 'toeic_krudew',
  13.         sales_amount: 3000,
  14.         days_limit: 60,
  15.         promotion_code: 'code1234',
  16.     }] 
  17. }]
  18.  
  19. Preset Data Create/Update API
  20. preset = [{
  21.     title : 'present1',
  22.     data: [{
  23.         course_slug: 'toeic',
  24.         sales_amount: 1000,
  25.         days_limit: 50,
  26.         promotion_code: 'code1234',
  27.     },
  28.     {
  29.         course_slug: 'toeic_krudew',
  30.         sales_amount: 3000,
  31.         days_limit: 60,
  32.         promotion_code: 'code1234',
  33.     }] 
  34. }]
Advertisement
Add Comment
Please, Sign In to add comment