Guest User

Untitled

a guest
Nov 21st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. #Request while validating promocode(UserId present):
  2. {
  3. "promoCode": "BOOSTCTBAPC123",
  4. "currency": "MYR",
  5. "amount": 12.0,
  6. "operatorCode": "APC",
  7. "toCityId": 34,
  8. "fromCityId": 2,
  9. "userEmailId": "shh@rh.com",
  10. "numberOfPax": 1,
  11. "departJourneyDate": "Nov 22, 2018 8:00:00 AM",
  12. "isReturnJourney": false,
  13. "channelId": 0,
  14. "userId": "5aaf56bbd4a374000725e9af",
  15. "orderQuantity": 0
  16. }
  17.  
  18. INFO 2018-11-21 13:09:55,205-[com.ctb.payment.service.PromoValidationService:143]: isPromoValid() --> PromoCodeResponse: PromoCodeResponse [code=0, message=Congratulations!!. You have successfully applied discount, discountAmount=10.0, discount=10.0, allowedGateways=null, totalBookingAmount=12.0, totalPayableAmount=2.0, promoCode=BOOSTCTBAPC123, promoCodeDesc=null, cashBackAmount=0.0, instantCashbackAmount=0.0, instantCashback=0.0, hasCashback=false, promoCurrency=MYR, promoValidFrom=null, promoValidTo=null, minBookingAmount=0.0]
  19.  
  20. ======================================================================================================================================================================================================================================
  21.  
  22. #Request while initiating payment (UserId missing):
  23. {
  24. "id": 0,
  25. "amount": 2.0,
  26. "currency": "MYR",
  27. "customerName": "Ahhhh",
  28. "customerPhone": "+60155565555",
  29. "customerAddress": "NOT_REQUIRED",
  30. "customerEmail": "shh@rh.com",
  31. "countryCode": "MY",
  32. "paymentDescription": "NOT_REQUIRED",
  33. "paymentType": "boost",
  34. "paymentReferenceNumber": "9858-2044447-1122-CBQMNLreedmzoq2RWdpKzGh460c\u003d",
  35. "itineraryId": 9858,
  36. "ctbKey": "f5a7055e6c1553fba188bf7d09fdc5a2",
  37. "consumerId": 15,
  38. "promoCode": "BOOSTCTBAPC123",
  39. "actualAmount": 12.0,
  40. "numberOfPax": 1,
  41. "walletCashback": 0.0,
  42. "instantCashback": 0.0,
  43. "walletAmountUsed": 0.0,
  44. "orderQuantity": 0,
  45. "fromCityId": 2,
  46. "toCityId": 34,
  47. "operatorCode": "APC",
  48. "journeyDate": "2018-11-21T16:00:00Z"
  49. }
  50.  
  51.  
  52. {
  53. "promoCode": "BOOSTCTBAPC123",
  54. "currency": "MYR",
  55. "amount": 2.0,
  56. "operatorCode": "APC",
  57. "toCityId": 34,
  58. "fromCityId": 2,
  59. "numberOfPax": 1,
  60. "departJourneyDate": "Nov 21, 2018 12:00:00 AM",
  61. "isReturnJourney": false,
  62. "channelId": 0,
  63. "orderQuantity": 1
  64. }
  65.  
  66. INFO 2018-11-21 13:10:03,700-[com.ctb.payment.service.PromoValidationService:143]: isPromoValid() --> PromoCodeResponse: PromoCodeResponse [code=-1, message=You have reached the maximum allowed limit for this promo, discountAmount=0.0, discount=0.0, allowedGateways=null, totalBookingAmount=2.0, totalPayableAmount=2.0, promoCode=BOOSTCTBAPC123, promoCodeDesc=null, cashBackAmount=0.0, instantCashbackAmount=0.0, instantCashback=0.0, hasCashback=false, promoCurrency=null, promoValidFrom=null, promoValidTo=null, minBookingAmount=0.0]
Add Comment
Please, Sign In to add comment