Skip to content

fix: Add cart snapshot_date and order order_number option fields. #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# This job uses skip-duplicate-actions to skip one of the duplicate workflow runs when you push to a branch with an open PR.
check_duplicate_workflow:
needs: []
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
Expand All @@ -24,7 +24,7 @@ jobs:

lint:
needs: [check_duplicate_workflow]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
steps:
- name: Check out repository code
Expand All @@ -40,7 +40,7 @@ jobs:

build:
needs: [check_duplicate_workflow]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
steps:
- name: Check out repository code
Expand All @@ -62,7 +62,7 @@ jobs:

test:
needs: [check_duplicate_workflow]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ needs.check_duplicate_workflow.outputs.should_skip != 'true' }}
env:
MOCHA_FILE: test-results/mocha/test-results.xml
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:

release:
needs: [lint, build, test]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELASTICPATH }}
Expand Down
1 change: 1 addition & 0 deletions src/types/cart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export interface Cart {
discount_settings: {
custom_discounts_enabled: boolean
}
snapshot_date?: string
}

export interface CartItemBase {
Expand Down
1 change: 1 addition & 0 deletions src/types/order.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface OrderBase {
shipping_address: OrderShippingAddress
billing_address: OrderBillingAddress
external_ref?: string
order_number?: string
}

export interface Order extends Identifiable, OrderBase {
Expand Down
Loading