File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21export type Region = {
32 id : number ,
43 countryId : number ,
Original file line number Diff line number Diff line change 1-
21import type { Address } from './address' ;
32import type { Customer } from './customer' ;
43import type { Promotion } from './promotion' ;
Original file line number Diff line number Diff line change 1-
2- export type PaymentState = 'auth' | 'cart' | 'fullCapture' | 'failedCapture' | 'expiredAuth' ;
1+ export type PaymentState = 'auth' | 'cart' | 'fullCapture' | 'failedCapture' | 'expiredAuth' ;
Original file line number Diff line number Diff line change 1-
21import type { CreateAddressPayload } from '../address' ;
32
43export type LineItemAdjustment = {
54 adjustmentType : string ,
65 subtract : number ,
76 lineItemRefNum ?: string ,
8- }
7+ } ;
98
109export type LineItemState = 'cart' | 'pending' | 'preOrdered' | 'backOrdered' | 'canceled' | 'shipped' ;
1110
@@ -15,12 +14,12 @@ export type GiftCardLineItemAttributes = {
1514 recipientEmail : string ,
1615 message ?: string ,
1716 code ?: string ,
18- }
17+ } ;
1918
2019export type LineItemAttributes = {
2120 giftCard ?: GiftCardLineItemAttributes ,
2221 subscription ?: CreateAddressPayload ,
23- }
22+ } ;
2423
2524export type LineItem = {
2625 imagePath : string ,
@@ -35,4 +34,4 @@ export type LineItem = {
3534 trackInventory : boolean ,
3635 state : LineItemState ,
3736 attributes ?: LineItemAttributes ,
38- }
37+ } ;
Original file line number Diff line number Diff line change 1-
21import type { Address } from '../address' ;
32
43export type CreditCardPayment = { |
@@ -32,4 +31,4 @@ export type StoreCreditPayment = {|
3231 type : 'storeCredit' ,
3332| } ;
3433
35- export type CordPayment = CreditCardPayment | GiftCardPayment | StoreCreditPayment ;
34+ export type CordPayment = CreditCardPayment | GiftCardPayment | StoreCreditPayment ;
Original file line number Diff line number Diff line change 1-
21import type { Coupon } from '../coupon' ;
32
43export type CordResponseCouponPair = {
54 coupon : Coupon ,
65 code : string ,
7- }
6+ } ;
Original file line number Diff line number Diff line change 1-
21export type OrderTotals = {
32 subTotal : number ,
43 taxes : number ,
54 shipping : number ,
65 adjustments : number ,
76 total : number ,
8- }
7+ } ;
98
109export type CartTotals = OrderTotals & {
1110 customersExpenses : number ,
12- }
11+ } ;
Original file line number Diff line number Diff line change 1-
21import type { Context , Attributes } from './base' ;
32
43export type Coupon = {
Original file line number Diff line number Diff line change 1-
21export type Customer = {
32 id : number ,
43 createdAt : string ,
Original file line number Diff line number Diff line change 1-
21import type { Address } from './address' ;
32import type { Customer } from './customer' ;
43import type { Promotion } from './promotion' ;
@@ -15,7 +14,7 @@ export type Order = {
1514 referenceNumber : string ,
1615 paymentState : PaymentState ,
1716 lineItems : {
18- skus : Array < LineItem >
17+ skus : Array < LineItem > ,
1918 } ,
2019 lineItemAdjustments : Array < LineItemAdjustment > ,
2120 promotion ? : Promotion ,
You can’t perform that action at this time.
0 commit comments