CartVM.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // CartVM.h
  3. // Asteria
  4. //
  5. // Created by 王猛 on 2024/1/26.
  6. //
  7. #import "RYBaseVM.h"
  8. #import "CartTotalsM.h"
  9. #import "ASCheckoutModel.h"
  10. ///获取购物车列表
  11. #define Cart_cartsMineTotals BaseRequestrUrl(@"carts/mine/totals")
  12. //添加或修改商品数量
  13. #define Cart_cartsMineItems_Post BaseRequestrUrl(@"carts/mine/items")
  14. //删除购物车商品
  15. #define DEL_cartsMineItems BaseRequestrUrl(@"carts/mine/items")
  16. //添加优惠券
  17. #define PUT_cartsMineCoupons BaseRequestrUrl(@"carts/mine/coupons")
  18. //删除购物车优惠券
  19. #define DEL_cartsMineCoupons BaseRequestrUrl(@"carts/mine/coupons")
  20. //购物车信息(获取邮寄地址)
  21. #define Cart_cartInfo BaseRequestrUrl(@"carts/mine")
  22. //结算中心
  23. //获取支付方式
  24. #define Chectout_getPaymentMode BaseRequestrUrl(@"carts/mine/payment-methods")
  25. //添加邮寄地址
  26. #define Chectout_addShipAddress_id BaseRequestrUrl(@"carts/mine/estimate-shipping-methods-by-address-id")
  27. //添加账单地址
  28. #define Chectout_addBillingAddress BaseRequestrUrl(@"carts/mine/billing-address")
  29. //根据邮寄地址获取邮寄方式
  30. #define Chectout_getShipMethod BaseRequestrUrl(@"carts/mine/shipping-methods")
  31. //根据邮寄地址设置邮寄方式
  32. #define Chectout_setShipMethod BaseRequestrUrl(@"carts/mine/shipping-information")
  33. //使用指定积分
  34. #define Chectout_PUT_usePoints BaseRequestrUrl(@"mw-rewardpoints/mine/points")
  35. ////取消使用积分
  36. #define Chectout_DEL_cancelusePoints BaseRequestrUrl(@"mw-rewardpoints/mine/points")
  37. //下单
  38. #define Chectout_PUT_sureOrder BaseRequestrUrl(@"carts/mine/order")
  39. //赠品手动加车
  40. #define Chectout_giftAddCart BaseRequestrUrl(@"addGiftProduct")
  41. //丢件险
  42. #define Chectout_lost_extrafee @"rest/en/V1/amasty_extrafee/carts/mine/totals-information"
  43. //paypal根据支付返回的token去服务端校验
  44. #define Chectout_Verify_PayToken BaseRequestrUrl(@"rewrite/paypal/return")
  45. //Klarna支付购物车验证
  46. #define Chectout_Verify_KlarnaCart BaseRequestrUrl(@"rewrite/klarna/checkoutQuoteStatus")
  47. //Klarna根据支付返回的token去服务端校验
  48. #define Chectout_Verify_KlarnaToken BaseRequestrUrl(@"carts/mine/payment-information")
  49. NS_ASSUME_NONNULL_BEGIN
  50. @interface CartVM : RYBaseVM
  51. @end
  52. NS_ASSUME_NONNULL_END