- Finalised Listing of CartList - Added pull to refresh and swipe to delete - Handled manual delete on icon click - Made CouponCart listing view controller - Added api to fetch the coupons - Added api to apply coupon with model - Made a coupon discount stack , will show up
20 lines
437 B
Swift
20 lines
437 B
Swift
//
|
|
// CouponApplyDM.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 23/07/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
// MARK: - CouponApplyDM
|
|
struct CouponApplyDM: Codable {
|
|
let cartTotalAmount, discountValue, cartDiscountedAmount: String?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case cartTotalAmount = "cart_total_amount"
|
|
case discountValue = "discount_value"
|
|
case cartDiscountedAmount = "cart_discounted_amount"
|
|
}
|
|
}
|