Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Request while validating promocode(UserId present):
- {
- "promoCode": "BOOSTCTBAPC123",
- "currency": "MYR",
- "amount": 12.0,
- "operatorCode": "APC",
- "toCityId": 34,
- "fromCityId": 2,
- "userEmailId": "shh@rh.com",
- "numberOfPax": 1,
- "departJourneyDate": "Nov 22, 2018 8:00:00 AM",
- "isReturnJourney": false,
- "channelId": 0,
- "userId": "5aaf56bbd4a374000725e9af",
- "orderQuantity": 0
- }
- 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]
- ======================================================================================================================================================================================================================================
- #Request while initiating payment (UserId missing):
- {
- "id": 0,
- "amount": 2.0,
- "currency": "MYR",
- "customerName": "Ahhhh",
- "customerPhone": "+60155565555",
- "customerAddress": "NOT_REQUIRED",
- "customerEmail": "shh@rh.com",
- "countryCode": "MY",
- "paymentDescription": "NOT_REQUIRED",
- "paymentType": "boost",
- "paymentReferenceNumber": "9858-2044447-1122-CBQMNLreedmzoq2RWdpKzGh460c\u003d",
- "itineraryId": 9858,
- "ctbKey": "f5a7055e6c1553fba188bf7d09fdc5a2",
- "consumerId": 15,
- "promoCode": "BOOSTCTBAPC123",
- "actualAmount": 12.0,
- "numberOfPax": 1,
- "walletCashback": 0.0,
- "instantCashback": 0.0,
- "walletAmountUsed": 0.0,
- "orderQuantity": 0,
- "fromCityId": 2,
- "toCityId": 34,
- "operatorCode": "APC",
- "journeyDate": "2018-11-21T16:00:00Z"
- }
- {
- "promoCode": "BOOSTCTBAPC123",
- "currency": "MYR",
- "amount": 2.0,
- "operatorCode": "APC",
- "toCityId": 34,
- "fromCityId": 2,
- "numberOfPax": 1,
- "departJourneyDate": "Nov 21, 2018 12:00:00 AM",
- "isReturnJourney": false,
- "channelId": 0,
- "orderQuantity": 1
- }
- 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