Skip to content

Commit 290cd43

Browse files
author
Artem
committed
Fmt
1 parent cb922ef commit 290cd43

12 files changed

Lines changed: 10 additions & 22 deletions

File tree

types/api/address.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export type Region = {
32
id: number,
43
countryId: number,

types/api/cart.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import type { Address } from './address';
32
import type { Customer } from './customer';
43
import type { Promotion } from './promotion';

types/api/cord/base.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2-
export type PaymentState = 'auth' | 'cart' | 'fullCapture' | 'failedCapture' | 'expiredAuth';
1+
export type PaymentState = 'auth' | 'cart' | 'fullCapture' | 'failedCapture' | 'expiredAuth';

types/api/cord/line-items.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
import type { CreateAddressPayload } from '../address';
32

43
export type LineItemAdjustment = {
54
adjustmentType: string,
65
subtract: number,
76
lineItemRefNum?: string,
8-
}
7+
};
98

109
export 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

2019
export type LineItemAttributes = {
2120
giftCard?: GiftCardLineItemAttributes,
2221
subscription?: CreateAddressPayload,
23-
}
22+
};
2423

2524
export type LineItem = {
2625
imagePath: string,
@@ -35,4 +34,4 @@ export type LineItem = {
3534
trackInventory: boolean,
3635
state: LineItemState,
3736
attributes?: LineItemAttributes,
38-
}
37+
};

types/api/cord/payments.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import type { Address } from '../address';
32

43
export 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;

types/api/cord/promotions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
import type { Coupon } from '../coupon';
32

43
export type CordResponseCouponPair = {
54
coupon: Coupon,
65
code: string,
7-
}
6+
};

types/api/cord/totals.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
21
export type OrderTotals = {
32
subTotal: number,
43
taxes: number,
54
shipping: number,
65
adjustments: number,
76
total: number,
8-
}
7+
};
98

109
export type CartTotals = OrderTotals & {
1110
customersExpenses: number,
12-
}
11+
};

types/api/coupon.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import type { Context, Attributes } from './base';
32

43
export type Coupon = {

types/api/customer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export type Customer = {
32
id: number,
43
createdAt: string,

types/api/order.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import type { Address } from './address';
32
import type { Customer } from './customer';
43
import 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,

0 commit comments

Comments
 (0)