Skip to content

Commit 5ce719f

Browse files
authored
fix: Add cart snapshot_date and order order_number option fields. (#58)
1 parent dad3c87 commit 5ce719f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# This job uses skip-duplicate-actions to skip one of the duplicate workflow runs when you push to a branch with an open PR.
1212
check_duplicate_workflow:
1313
needs: []
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515
outputs:
1616
should_skip: ${{ steps.skip_check.outputs.should_skip }}
1717
steps:
@@ -24,7 +24,7 @@ jobs:
2424

2525
lint:
2626
needs: [check_duplicate_workflow]
27-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-22.04
2828
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
2929
steps:
3030
- name: Check out repository code
@@ -40,7 +40,7 @@ jobs:
4040
4141
build:
4242
needs: [check_duplicate_workflow]
43-
runs-on: ubuntu-20.04
43+
runs-on: ubuntu-22.04
4444
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
4545
steps:
4646
- name: Check out repository code
@@ -62,7 +62,7 @@ jobs:
6262

6363
test:
6464
needs: [check_duplicate_workflow]
65-
runs-on: ubuntu-20.04
65+
runs-on: ubuntu-22.04
6666
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
6767
env:
6868
MOCHA_FILE: test-results/mocha/test-results.xml
@@ -90,7 +90,7 @@ jobs:
9090

9191
release:
9292
needs: [lint, build, test]
93-
runs-on: ubuntu-20.04
93+
runs-on: ubuntu-22.04
9494
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
9595
env:
9696
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELASTICPATH }}

src/types/cart.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface Cart {
7171
discount_settings: {
7272
custom_discounts_enabled: boolean
7373
}
74+
snapshot_date?: string
7475
}
7576

7677
export interface CartItemBase {

src/types/order.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface OrderBase {
7474
shipping_address: OrderShippingAddress
7575
billing_address: OrderBillingAddress
7676
external_ref?: string
77+
order_number?: string
7778
}
7879

7980
export interface Order extends Identifiable, OrderBase {

0 commit comments

Comments
 (0)