Skip to content

Commit ef93ff0

Browse files
committed
Update buyer journey API for cart & checkout validation functions
1 parent 3eccdef commit ef93ff0

File tree

2 files changed

+22
-200
lines changed

2 files changed

+22
-200
lines changed

checkout/javascript/cart-checkout-validation/default/schema.graphql

Lines changed: 11 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ Different steps in the buyer journey.
5252
"""
5353
enum BuyerJourneyStep {
5454
"""
55-
Buyer is in cart.
55+
Buyer is interacting with the cart.
5656
"""
57-
CART
57+
CART_INTERACTION
5858

5959
"""
60-
Buyer completed checkout.
60+
Buyer is completing the checkout.
6161
"""
62-
CHECKOUT_COMPLETE
62+
CHECKOUT_COMPLETION
6363

6464
"""
65-
Buyer is in the process of checking out.
65+
Buyer is interacting with the checkout.
6666
"""
67-
CHECKOUT_PROGRESS
67+
CHECKOUT_INTERACTION
6868
}
6969

7070
"""
@@ -1755,10 +1755,7 @@ enum CurrencyCode {
17551755
"""
17561756
Belarusian Ruble (BYR).
17571757
"""
1758-
BYR
1759-
@deprecated(
1760-
reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead."
1761-
)
1758+
BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.")
17621759

17631760
"""
17641761
Belize Dollar (BZD).
@@ -2283,10 +2280,7 @@ enum CurrencyCode {
22832280
"""
22842281
Sao Tome And Principe Dobra (STD).
22852282
"""
2286-
STD
2287-
@deprecated(
2288-
reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead."
2289-
)
2283+
STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.")
22902284

22912285
"""
22922286
Sao Tome And Principe Dobra (STN).
@@ -2381,10 +2375,7 @@ enum CurrencyCode {
23812375
"""
23822376
Venezuelan Bolivares (VEF).
23832377
"""
2384-
VEF
2385-
@deprecated(
2386-
reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead."
2387-
)
2378+
VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.")
23882379

23892380
"""
23902381
Venezuelan Bolivares (VES).
@@ -2602,61 +2593,6 @@ input FunctionResult {
26022593
errors: [FunctionError!]!
26032594
}
26042595

2605-
"""
2606-
Represents a gate configuration.
2607-
"""
2608-
type GateConfiguration implements HasMetafields {
2609-
"""
2610-
An optional string identifier.
2611-
"""
2612-
appId: String
2613-
2614-
"""
2615-
The ID of the gate configuration.
2616-
"""
2617-
id: ID!
2618-
2619-
"""
2620-
Returns a metafield by namespace and key that belongs to the resource.
2621-
"""
2622-
metafield(
2623-
"""
2624-
The key for the metafield.
2625-
"""
2626-
key: String!
2627-
2628-
"""
2629-
The namespace for the metafield.
2630-
"""
2631-
namespace: String!
2632-
): Metafield
2633-
}
2634-
2635-
"""
2636-
Represents a connection from a subject to a gate configuration.
2637-
"""
2638-
type GateSubject {
2639-
"""
2640-
The bound gate configuration.
2641-
"""
2642-
configuration: GateConfiguration!
2643-
2644-
"""
2645-
The ID of the gate subject.
2646-
"""
2647-
id: ID!
2648-
}
2649-
2650-
"""
2651-
Gate subjects associated to the specified resource.
2652-
"""
2653-
interface HasGates {
2654-
"""
2655-
Returns active gate subjects bound to the resource.
2656-
"""
2657-
gates: [GateSubject!]!
2658-
}
2659-
26602596
"""
26612597
Represents information about the metafields associated to the specified resource.
26622598
"""
@@ -2689,7 +2625,7 @@ type Input {
26892625
"""
26902626
The buyer journey step.
26912627
"""
2692-
buyerJourney: BuyerJourney
2628+
buyerJourney: BuyerJourney!
26932629

26942630
"""
26952631
The cart.
@@ -2796,11 +2732,6 @@ enum LanguageCode {
27962732
"""
27972733
CE
27982734

2799-
"""
2800-
Central Kurdish.
2801-
"""
2802-
CKB
2803-
28042735
"""
28052736
Czech.
28062737
"""
@@ -2881,11 +2812,6 @@ enum LanguageCode {
28812812
"""
28822813
FI
28832814

2884-
"""
2885-
Filipino.
2886-
"""
2887-
FIL
2888-
28892815
"""
28902816
Faroese.
28912817
"""
@@ -3236,16 +3162,6 @@ enum LanguageCode {
32363162
"""
32373163
RW
32383164

3239-
"""
3240-
Sanskrit.
3241-
"""
3242-
SA
3243-
3244-
"""
3245-
Sardinian.
3246-
"""
3247-
SC
3248-
32493165
"""
32503166
Sindhi.
32513167
"""
@@ -3561,12 +3477,7 @@ type MutationRoot {
35613477
"""
35623478
Represents a product.
35633479
"""
3564-
type Product implements HasGates & HasMetafields {
3565-
"""
3566-
Returns active gate subjects bound to the resource.
3567-
"""
3568-
gates: [GateSubject!]!
3569-
3480+
type Product implements HasMetafields {
35703481
"""
35713482
A unique human-friendly string of the product's title.
35723483
"""

checkout/rust/cart-checkout-validation/default/schema.graphql

Lines changed: 11 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ Different steps in the buyer journey.
5252
"""
5353
enum BuyerJourneyStep {
5454
"""
55-
Buyer is in cart.
55+
Buyer is interacting with the cart.
5656
"""
57-
CART
57+
CART_INTERACTION
5858

5959
"""
60-
Buyer completed checkout.
60+
Buyer is completing the checkout.
6161
"""
62-
CHECKOUT_COMPLETE
62+
CHECKOUT_COMPLETION
6363

6464
"""
65-
Buyer is in the process of checking out.
65+
Buyer is interacting with the checkout.
6666
"""
67-
CHECKOUT_PROGRESS
67+
CHECKOUT_INTERACTION
6868
}
6969

7070
"""
@@ -1755,10 +1755,7 @@ enum CurrencyCode {
17551755
"""
17561756
Belarusian Ruble (BYR).
17571757
"""
1758-
BYR
1759-
@deprecated(
1760-
reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead."
1761-
)
1758+
BYR @deprecated(reason: "`BYR` is deprecated. Use `BYN` available from version `2021-01` onwards instead.")
17621759

17631760
"""
17641761
Belize Dollar (BZD).
@@ -2283,10 +2280,7 @@ enum CurrencyCode {
22832280
"""
22842281
Sao Tome And Principe Dobra (STD).
22852282
"""
2286-
STD
2287-
@deprecated(
2288-
reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead."
2289-
)
2283+
STD @deprecated(reason: "`STD` is deprecated. Use `STN` available from version `2022-07` onwards instead.")
22902284

22912285
"""
22922286
Sao Tome And Principe Dobra (STN).
@@ -2381,10 +2375,7 @@ enum CurrencyCode {
23812375
"""
23822376
Venezuelan Bolivares (VEF).
23832377
"""
2384-
VEF
2385-
@deprecated(
2386-
reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead."
2387-
)
2378+
VEF @deprecated(reason: "`VEF` is deprecated. Use `VES` available from version `2020-10` onwards instead.")
23882379

23892380
"""
23902381
Venezuelan Bolivares (VES).
@@ -2602,61 +2593,6 @@ input FunctionResult {
26022593
errors: [FunctionError!]!
26032594
}
26042595

2605-
"""
2606-
Represents a gate configuration.
2607-
"""
2608-
type GateConfiguration implements HasMetafields {
2609-
"""
2610-
An optional string identifier.
2611-
"""
2612-
appId: String
2613-
2614-
"""
2615-
The ID of the gate configuration.
2616-
"""
2617-
id: ID!
2618-
2619-
"""
2620-
Returns a metafield by namespace and key that belongs to the resource.
2621-
"""
2622-
metafield(
2623-
"""
2624-
The key for the metafield.
2625-
"""
2626-
key: String!
2627-
2628-
"""
2629-
The namespace for the metafield.
2630-
"""
2631-
namespace: String!
2632-
): Metafield
2633-
}
2634-
2635-
"""
2636-
Represents a connection from a subject to a gate configuration.
2637-
"""
2638-
type GateSubject {
2639-
"""
2640-
The bound gate configuration.
2641-
"""
2642-
configuration: GateConfiguration!
2643-
2644-
"""
2645-
The ID of the gate subject.
2646-
"""
2647-
id: ID!
2648-
}
2649-
2650-
"""
2651-
Gate subjects associated to the specified resource.
2652-
"""
2653-
interface HasGates {
2654-
"""
2655-
Returns active gate subjects bound to the resource.
2656-
"""
2657-
gates: [GateSubject!]!
2658-
}
2659-
26602596
"""
26612597
Represents information about the metafields associated to the specified resource.
26622598
"""
@@ -2689,7 +2625,7 @@ type Input {
26892625
"""
26902626
The buyer journey step.
26912627
"""
2692-
buyerJourney: BuyerJourney
2628+
buyerJourney: BuyerJourney!
26932629

26942630
"""
26952631
The cart.
@@ -2796,11 +2732,6 @@ enum LanguageCode {
27962732
"""
27972733
CE
27982734

2799-
"""
2800-
Central Kurdish.
2801-
"""
2802-
CKB
2803-
28042735
"""
28052736
Czech.
28062737
"""
@@ -2881,11 +2812,6 @@ enum LanguageCode {
28812812
"""
28822813
FI
28832814

2884-
"""
2885-
Filipino.
2886-
"""
2887-
FIL
2888-
28892815
"""
28902816
Faroese.
28912817
"""
@@ -3236,16 +3162,6 @@ enum LanguageCode {
32363162
"""
32373163
RW
32383164

3239-
"""
3240-
Sanskrit.
3241-
"""
3242-
SA
3243-
3244-
"""
3245-
Sardinian.
3246-
"""
3247-
SC
3248-
32493165
"""
32503166
Sindhi.
32513167
"""
@@ -3561,12 +3477,7 @@ type MutationRoot {
35613477
"""
35623478
Represents a product.
35633479
"""
3564-
type Product implements HasGates & HasMetafields {
3565-
"""
3566-
Returns active gate subjects bound to the resource.
3567-
"""
3568-
gates: [GateSubject!]!
3569-
3480+
type Product implements HasMetafields {
35703481
"""
35713482
A unique human-friendly string of the product's title.
35723483
"""

0 commit comments

Comments
 (0)