checkout.ts 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Checkout Types
  2. export interface PaymentMethod {
  3. method: string;
  4. title: string;
  5. description?: string;
  6. sort?: number;
  7. }
  8. export interface ShippingMethod {
  9. code: string;
  10. method: string;
  11. label: string;
  12. price: number;
  13. basePrice?: number;
  14. formattedPrice?: string;
  15. }
  16. export interface CheckoutAddress {
  17. id?: string;
  18. firstName: string;
  19. lastName: string;
  20. email: string;
  21. address: string;
  22. city: string;
  23. country: string;
  24. state: string;
  25. postcode: string;
  26. phoneNumber: string;
  27. companyName?: string;
  28. }
  29. export interface BillingAddress extends CheckoutAddress {
  30. useForShipping?: boolean;
  31. }
  32. export type ShippingAddress = CheckoutAddress;
  33. export interface CheckoutStepperProps {
  34. billingAddress?: BillingAddress;
  35. shippingAddress?: ShippingAddress;
  36. currentStep: string;
  37. selectedPayment?: string;
  38. selectedPaymentTitle?: string;
  39. selectedShippingRate?: string;
  40. selectedShippingRateTitle?: string;
  41. }
  42. export type CheckOutProps = CheckoutStepperProps;