@epilot/pricing-client 3.61.1 → 3.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi.d.ts +263 -59
- package/dist/openapi.json +205 -8
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -203,7 +203,12 @@ declare namespace Components {
|
|
|
203
203
|
* }
|
|
204
204
|
*/
|
|
205
205
|
conditions?: {
|
|
206
|
-
[name: string]:
|
|
206
|
+
[name: string]: /**
|
|
207
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
208
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
PinnedConditionValue;
|
|
207
212
|
};
|
|
208
213
|
}
|
|
209
214
|
/**
|
|
@@ -1029,8 +1034,8 @@ declare namespace Components {
|
|
|
1029
1034
|
/**
|
|
1030
1035
|
* Present for a composite price that serves at least one component: the components this
|
|
1031
1036
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
1032
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
1033
|
-
*
|
|
1037
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
1038
|
+
* A component line item carries no reference of its own.
|
|
1034
1039
|
*
|
|
1035
1040
|
*/
|
|
1036
1041
|
price_components?: /**
|
|
@@ -1040,8 +1045,8 @@ declare namespace Components {
|
|
|
1040
1045
|
*/
|
|
1041
1046
|
CatalogReferenceMember[];
|
|
1042
1047
|
/**
|
|
1043
|
-
* Present when coupons apply to the price.
|
|
1044
|
-
*
|
|
1048
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
1049
|
+
* carries no `variant`.
|
|
1045
1050
|
*
|
|
1046
1051
|
*/
|
|
1047
1052
|
coupons?: /**
|
|
@@ -1458,8 +1463,8 @@ declare namespace Components {
|
|
|
1458
1463
|
/**
|
|
1459
1464
|
* Present for a composite price that serves at least one component: the components this
|
|
1460
1465
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
1461
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
1462
|
-
*
|
|
1466
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
1467
|
+
* A component line item carries no reference of its own.
|
|
1463
1468
|
*
|
|
1464
1469
|
*/
|
|
1465
1470
|
price_components?: /**
|
|
@@ -1469,8 +1474,8 @@ declare namespace Components {
|
|
|
1469
1474
|
*/
|
|
1470
1475
|
CatalogReferenceMember[];
|
|
1471
1476
|
/**
|
|
1472
|
-
* Present when coupons apply to the price.
|
|
1473
|
-
*
|
|
1477
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
1478
|
+
* carries no `variant`.
|
|
1474
1479
|
*
|
|
1475
1480
|
*/
|
|
1476
1481
|
coupons?: /**
|
|
@@ -1767,8 +1772,8 @@ declare namespace Components {
|
|
|
1767
1772
|
/**
|
|
1768
1773
|
* Present for a composite price that serves at least one component: the components this
|
|
1769
1774
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
1770
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
1771
|
-
*
|
|
1775
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
1776
|
+
* A component line item carries no reference of its own.
|
|
1772
1777
|
*
|
|
1773
1778
|
*/
|
|
1774
1779
|
price_components?: /**
|
|
@@ -1778,8 +1783,8 @@ declare namespace Components {
|
|
|
1778
1783
|
*/
|
|
1779
1784
|
CatalogReferenceMember[];
|
|
1780
1785
|
/**
|
|
1781
|
-
* Present when coupons apply to the price.
|
|
1782
|
-
*
|
|
1786
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
1787
|
+
* carries no `variant`.
|
|
1783
1788
|
*
|
|
1784
1789
|
*/
|
|
1785
1790
|
coupons?: /**
|
|
@@ -6906,9 +6911,9 @@ declare namespace Components {
|
|
|
6906
6911
|
export type CashbackPeriod = "0" | "12";
|
|
6907
6912
|
/**
|
|
6908
6913
|
* One context per entity type, each the authenticated resolve's context and checked against
|
|
6909
|
-
* that type's schema alone. A product resolves against `product`, a price and each of a
|
|
6910
|
-
* composite's components against `price
|
|
6911
|
-
*
|
|
6914
|
+
* that type's schema alone. A product resolves against `product`, and a price and each of a
|
|
6915
|
+
* composite's components against `price`. A type left out resolves against an empty context,
|
|
6916
|
+
* which serves the `default` variant.
|
|
6912
6917
|
*
|
|
6913
6918
|
* example:
|
|
6914
6919
|
* {
|
|
@@ -7379,7 +7384,12 @@ declare namespace Components {
|
|
|
7379
7384
|
* }
|
|
7380
7385
|
*/
|
|
7381
7386
|
_conditions: {
|
|
7382
|
-
[name: string]:
|
|
7387
|
+
[name: string]: /**
|
|
7388
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
7389
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
7390
|
+
*
|
|
7391
|
+
*/
|
|
7392
|
+
PinnedConditionValue;
|
|
7383
7393
|
default: boolean;
|
|
7384
7394
|
};
|
|
7385
7395
|
/**
|
|
@@ -7618,7 +7628,12 @@ declare namespace Components {
|
|
|
7618
7628
|
* }
|
|
7619
7629
|
*/
|
|
7620
7630
|
_conditions: {
|
|
7621
|
-
[name: string]:
|
|
7631
|
+
[name: string]: /**
|
|
7632
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
7633
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
7634
|
+
*
|
|
7635
|
+
*/
|
|
7636
|
+
PinnedConditionValue;
|
|
7622
7637
|
default: boolean;
|
|
7623
7638
|
};
|
|
7624
7639
|
/**
|
|
@@ -7804,7 +7819,12 @@ declare namespace Components {
|
|
|
7804
7819
|
* }
|
|
7805
7820
|
*/
|
|
7806
7821
|
_conditions: {
|
|
7807
|
-
[name: string]:
|
|
7822
|
+
[name: string]: /**
|
|
7823
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
7824
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
7825
|
+
*
|
|
7826
|
+
*/
|
|
7827
|
+
PinnedConditionValue;
|
|
7808
7828
|
default: boolean;
|
|
7809
7829
|
};
|
|
7810
7830
|
/**
|
|
@@ -8134,8 +8154,8 @@ declare namespace Components {
|
|
|
8134
8154
|
/**
|
|
8135
8155
|
* Present for a composite price that serves at least one component: the components this
|
|
8136
8156
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
8137
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
8138
|
-
*
|
|
8157
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
8158
|
+
* A component line item carries no reference of its own.
|
|
8139
8159
|
*
|
|
8140
8160
|
*/
|
|
8141
8161
|
price_components?: /**
|
|
@@ -8145,8 +8165,8 @@ declare namespace Components {
|
|
|
8145
8165
|
*/
|
|
8146
8166
|
CatalogReferenceMember[];
|
|
8147
8167
|
/**
|
|
8148
|
-
* Present when coupons apply to the price.
|
|
8149
|
-
*
|
|
8168
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
8169
|
+
* carries no `variant`.
|
|
8150
8170
|
*
|
|
8151
8171
|
*/
|
|
8152
8172
|
coupons?: /**
|
|
@@ -9937,8 +9957,8 @@ declare namespace Components {
|
|
|
9937
9957
|
/**
|
|
9938
9958
|
* Present for a composite price that serves at least one component: the components this
|
|
9939
9959
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
9940
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
9941
|
-
*
|
|
9960
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
9961
|
+
* A component line item carries no reference of its own.
|
|
9942
9962
|
*
|
|
9943
9963
|
*/
|
|
9944
9964
|
price_components?: /**
|
|
@@ -9948,8 +9968,8 @@ declare namespace Components {
|
|
|
9948
9968
|
*/
|
|
9949
9969
|
CatalogReferenceMember[];
|
|
9950
9970
|
/**
|
|
9951
|
-
* Present when coupons apply to the price.
|
|
9952
|
-
*
|
|
9971
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
9972
|
+
* carries no `variant`.
|
|
9953
9973
|
*
|
|
9954
9974
|
*/
|
|
9955
9975
|
coupons?: /**
|
|
@@ -10637,8 +10657,8 @@ declare namespace Components {
|
|
|
10637
10657
|
/**
|
|
10638
10658
|
* Present for a composite price that serves at least one component: the components this
|
|
10639
10659
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
10640
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
10641
|
-
*
|
|
10660
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
10661
|
+
* A component line item carries no reference of its own.
|
|
10642
10662
|
*
|
|
10643
10663
|
*/
|
|
10644
10664
|
price_components?: /**
|
|
@@ -10648,8 +10668,8 @@ declare namespace Components {
|
|
|
10648
10668
|
*/
|
|
10649
10669
|
CatalogReferenceMember[];
|
|
10650
10670
|
/**
|
|
10651
|
-
* Present when coupons apply to the price.
|
|
10652
|
-
*
|
|
10671
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
10672
|
+
* carries no `variant`.
|
|
10653
10673
|
*
|
|
10654
10674
|
*/
|
|
10655
10675
|
coupons?: /**
|
|
@@ -11086,6 +11106,23 @@ declare namespace Components {
|
|
|
11086
11106
|
export interface ComputedPriceComponents {
|
|
11087
11107
|
[name: string]: /* The computed price */ ComputedBasePrice;
|
|
11088
11108
|
}
|
|
11109
|
+
/**
|
|
11110
|
+
* The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an
|
|
11111
|
+
* open end; stored, an open end is an empty string.
|
|
11112
|
+
*
|
|
11113
|
+
*/
|
|
11114
|
+
export interface ConditionDateRange {
|
|
11115
|
+
/**
|
|
11116
|
+
* example:
|
|
11117
|
+
* 2026-01-01
|
|
11118
|
+
*/
|
|
11119
|
+
from?: string | null;
|
|
11120
|
+
/**
|
|
11121
|
+
* example:
|
|
11122
|
+
* 2027-01-01
|
|
11123
|
+
*/
|
|
11124
|
+
until?: string | null;
|
|
11125
|
+
}
|
|
11089
11126
|
/**
|
|
11090
11127
|
* One condition dimension, in the shape a schema's `conditions` array holds it — copy it in verbatim.
|
|
11091
11128
|
*/
|
|
@@ -11153,6 +11190,27 @@ declare namespace Components {
|
|
|
11153
11190
|
*/
|
|
11154
11191
|
format?: "postal_code" | "postal_code_city";
|
|
11155
11192
|
}
|
|
11193
|
+
/**
|
|
11194
|
+
* A single-operator predicate.
|
|
11195
|
+
*/
|
|
11196
|
+
export type ConditionPredicate = /* A single-operator predicate. */ {
|
|
11197
|
+
lt: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
|
|
11198
|
+
} | {
|
|
11199
|
+
lte: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
|
|
11200
|
+
} | {
|
|
11201
|
+
gt: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
|
|
11202
|
+
} | {
|
|
11203
|
+
gte: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
|
|
11204
|
+
} | {
|
|
11205
|
+
in: (string | number)[];
|
|
11206
|
+
} | {
|
|
11207
|
+
/**
|
|
11208
|
+
* The instant a `daterange` condition's range must contain.
|
|
11209
|
+
*/
|
|
11210
|
+
between: string;
|
|
11211
|
+
} | {
|
|
11212
|
+
exists: boolean;
|
|
11213
|
+
};
|
|
11156
11214
|
/**
|
|
11157
11215
|
* A named bundle of condition definitions, built in for one entity type.
|
|
11158
11216
|
*/
|
|
@@ -12936,6 +12994,26 @@ declare namespace Components {
|
|
|
12936
12994
|
status: "PROVISIONING" | "ACTIVE";
|
|
12937
12995
|
}
|
|
12938
12996
|
export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
|
|
12997
|
+
/**
|
|
12998
|
+
* One condition's value in a resolve context or listing filter: an exact value, or a predicate.
|
|
12999
|
+
* Which of these a condition takes is set by its type in the entity's schema, and a value of
|
|
13000
|
+
* another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
|
|
13001
|
+
* predicate its type does not support.
|
|
13002
|
+
*
|
|
13003
|
+
*/
|
|
13004
|
+
export type ContextConditionValue = /**
|
|
13005
|
+
* One condition's value in a resolve context or listing filter: an exact value, or a predicate.
|
|
13006
|
+
* Which of these a condition takes is set by its type in the entity's schema, and a value of
|
|
13007
|
+
* another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
|
|
13008
|
+
* predicate its type does not support.
|
|
13009
|
+
*
|
|
13010
|
+
*/
|
|
13011
|
+
string | number | boolean | /**
|
|
13012
|
+
* The value of a `location` condition of format `postal_code_city`, its parts named as an entity
|
|
13013
|
+
* address names them.
|
|
13014
|
+
*
|
|
13015
|
+
*/
|
|
13016
|
+
PostalCodeCity | /* A single-operator predicate. */ ConditionPredicate;
|
|
12939
13017
|
/**
|
|
12940
13018
|
* The coupon entity
|
|
12941
13019
|
* example:
|
|
@@ -13357,7 +13435,12 @@ declare namespace Components {
|
|
|
13357
13435
|
* }
|
|
13358
13436
|
*/
|
|
13359
13437
|
conditions: {
|
|
13360
|
-
[name: string]:
|
|
13438
|
+
[name: string]: /**
|
|
13439
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
13440
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
13441
|
+
*
|
|
13442
|
+
*/
|
|
13443
|
+
PinnedConditionValue;
|
|
13361
13444
|
default: boolean;
|
|
13362
13445
|
};
|
|
13363
13446
|
/**
|
|
@@ -16153,6 +16236,10 @@ declare namespace Components {
|
|
|
16153
16236
|
*
|
|
16154
16237
|
*/
|
|
16155
16238
|
export type OrderStatus = "draft" | "quote" | "placed" | "cancelled" | "completed";
|
|
16239
|
+
/**
|
|
16240
|
+
* A number, or a date as an RFC 3339 date or date-time.
|
|
16241
|
+
*/
|
|
16242
|
+
export type OrderedConditionOperand = /* A number, or a date as an RFC 3339 date or date-time. */ number | string;
|
|
16156
16243
|
export interface PatchVersionRequest {
|
|
16157
16244
|
/**
|
|
16158
16245
|
* Only the overrides to change; everything not mentioned is left as stored. `null` sets a
|
|
@@ -16187,7 +16274,12 @@ declare namespace Components {
|
|
|
16187
16274
|
* }
|
|
16188
16275
|
*/
|
|
16189
16276
|
conditions?: {
|
|
16190
|
-
[name: string]:
|
|
16277
|
+
[name: string]: /**
|
|
16278
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
16279
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
16280
|
+
*
|
|
16281
|
+
*/
|
|
16282
|
+
PinnedConditionValue;
|
|
16191
16283
|
};
|
|
16192
16284
|
}
|
|
16193
16285
|
/**
|
|
@@ -16206,6 +16298,27 @@ declare namespace Components {
|
|
|
16206
16298
|
[name: string]: any;
|
|
16207
16299
|
};
|
|
16208
16300
|
}
|
|
16301
|
+
/**
|
|
16302
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
16303
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
16304
|
+
*
|
|
16305
|
+
*/
|
|
16306
|
+
export type PinnedConditionValue = /**
|
|
16307
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
16308
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
16309
|
+
*
|
|
16310
|
+
*/
|
|
16311
|
+
string | number | boolean | /**
|
|
16312
|
+
* The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an
|
|
16313
|
+
* open end; stored, an open end is an empty string.
|
|
16314
|
+
*
|
|
16315
|
+
*/
|
|
16316
|
+
ConditionDateRange | /**
|
|
16317
|
+
* The value of a `location` condition of format `postal_code_city`, its parts named as an entity
|
|
16318
|
+
* address names them.
|
|
16319
|
+
*
|
|
16320
|
+
*/
|
|
16321
|
+
PostalCodeCity;
|
|
16209
16322
|
/**
|
|
16210
16323
|
* The situation this variant applies to: a flat map keyed by condition name. A condition left
|
|
16211
16324
|
* out is a wildcard, which is what makes adding a condition to a schema non-breaking for
|
|
@@ -16225,7 +16338,12 @@ declare namespace Components {
|
|
|
16225
16338
|
* }
|
|
16226
16339
|
*/
|
|
16227
16340
|
export interface PinnedConditions {
|
|
16228
|
-
[name: string]:
|
|
16341
|
+
[name: string]: /**
|
|
16342
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
16343
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
16344
|
+
*
|
|
16345
|
+
*/
|
|
16346
|
+
PinnedConditionValue;
|
|
16229
16347
|
}
|
|
16230
16348
|
/**
|
|
16231
16349
|
* The options a pinned resolve accepts — `hydrate` and nothing else. `resolve_one` has nothing
|
|
@@ -16307,6 +16425,23 @@ declare namespace Components {
|
|
|
16307
16425
|
journey_target_block?: string;
|
|
16308
16426
|
}[];
|
|
16309
16427
|
}
|
|
16428
|
+
/**
|
|
16429
|
+
* The value of a `location` condition of format `postal_code_city`, its parts named as an entity
|
|
16430
|
+
* address names them.
|
|
16431
|
+
*
|
|
16432
|
+
*/
|
|
16433
|
+
export interface PostalCodeCity {
|
|
16434
|
+
/**
|
|
16435
|
+
* example:
|
|
16436
|
+
* 50667
|
|
16437
|
+
*/
|
|
16438
|
+
postal_code: string;
|
|
16439
|
+
/**
|
|
16440
|
+
* example:
|
|
16441
|
+
* Köln
|
|
16442
|
+
*/
|
|
16443
|
+
city: string;
|
|
16444
|
+
}
|
|
16310
16445
|
/**
|
|
16311
16446
|
* Market area details for power
|
|
16312
16447
|
*/
|
|
@@ -17170,8 +17305,8 @@ declare namespace Components {
|
|
|
17170
17305
|
/**
|
|
17171
17306
|
* Present for a composite price that serves at least one component: the components this
|
|
17172
17307
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
17173
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
17174
|
-
*
|
|
17308
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
17309
|
+
* A component line item carries no reference of its own.
|
|
17175
17310
|
*
|
|
17176
17311
|
*/
|
|
17177
17312
|
price_components?: /**
|
|
@@ -17181,8 +17316,8 @@ declare namespace Components {
|
|
|
17181
17316
|
*/
|
|
17182
17317
|
CatalogReferenceMember[];
|
|
17183
17318
|
/**
|
|
17184
|
-
* Present when coupons apply to the price.
|
|
17185
|
-
*
|
|
17319
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
17320
|
+
* carries no `variant`.
|
|
17186
17321
|
*
|
|
17187
17322
|
*/
|
|
17188
17323
|
coupons?: /**
|
|
@@ -17657,8 +17792,8 @@ declare namespace Components {
|
|
|
17657
17792
|
/**
|
|
17658
17793
|
* Present for a composite price that serves at least one component: the components this
|
|
17659
17794
|
* pair is the combination of, each with its variant where one produced it. A conditional
|
|
17660
|
-
* component with no variant in effect is left out of the composite and is not named here
|
|
17661
|
-
*
|
|
17795
|
+
* component with no variant in effect is left out of the composite and is not named here.
|
|
17796
|
+
* A component line item carries no reference of its own.
|
|
17662
17797
|
*
|
|
17663
17798
|
*/
|
|
17664
17799
|
price_components?: /**
|
|
@@ -17668,8 +17803,8 @@ declare namespace Components {
|
|
|
17668
17803
|
*/
|
|
17669
17804
|
CatalogReferenceMember[];
|
|
17670
17805
|
/**
|
|
17671
|
-
* Present when coupons apply to the price.
|
|
17672
|
-
*
|
|
17806
|
+
* Present when coupons apply to the price. Coupons are served as stored, so a coupon member
|
|
17807
|
+
* carries no `variant`.
|
|
17673
17808
|
*
|
|
17674
17809
|
*/
|
|
17675
17810
|
coupons?: /**
|
|
@@ -19496,7 +19631,12 @@ declare namespace Components {
|
|
|
19496
19631
|
* }
|
|
19497
19632
|
*/
|
|
19498
19633
|
conditions?: {
|
|
19499
|
-
[name: string]:
|
|
19634
|
+
[name: string]: /**
|
|
19635
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
19636
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
19637
|
+
*
|
|
19638
|
+
*/
|
|
19639
|
+
PinnedConditionValue;
|
|
19500
19640
|
};
|
|
19501
19641
|
}
|
|
19502
19642
|
/**
|
|
@@ -20323,9 +20463,9 @@ declare namespace Components {
|
|
|
20323
20463
|
];
|
|
20324
20464
|
context: /**
|
|
20325
20465
|
* One context per entity type, each the authenticated resolve's context and checked against
|
|
20326
|
-
* that type's schema alone. A product resolves against `product`, a price and each of a
|
|
20327
|
-
* composite's components against `price
|
|
20328
|
-
*
|
|
20466
|
+
* that type's schema alone. A product resolves against `product`, and a price and each of a
|
|
20467
|
+
* composite's components against `price`. A type left out resolves against an empty context,
|
|
20468
|
+
* which serves the `default` variant.
|
|
20329
20469
|
*
|
|
20330
20470
|
* example:
|
|
20331
20471
|
* {
|
|
@@ -20422,7 +20562,14 @@ declare namespace Components {
|
|
|
20422
20562
|
* }
|
|
20423
20563
|
*/
|
|
20424
20564
|
export interface ResolveContext {
|
|
20425
|
-
[name: string]:
|
|
20565
|
+
[name: string]: /**
|
|
20566
|
+
* One condition's value in a resolve context or listing filter: an exact value, or a predicate.
|
|
20567
|
+
* Which of these a condition takes is set by its type in the entity's schema, and a value of
|
|
20568
|
+
* another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
|
|
20569
|
+
* predicate its type does not support.
|
|
20570
|
+
*
|
|
20571
|
+
*/
|
|
20572
|
+
ContextConditionValue;
|
|
20426
20573
|
}
|
|
20427
20574
|
/**
|
|
20428
20575
|
* The options a context resolve accepts. A pin takes `PinnedResolveOptions` instead.
|
|
@@ -20449,8 +20596,7 @@ declare namespace Components {
|
|
|
20449
20596
|
* The components of a composite price as the v2 catalog serves them: hydrated in place, and
|
|
20450
20597
|
* a component that is itself conditional resolved against the same context, carrying the
|
|
20451
20598
|
* discriminators a resolved payload carries. A conditional component with no variant in
|
|
20452
|
-
* effect — nothing matches and there is no default — is left out, as a deleted component is
|
|
20453
|
-
* (ADR 0048).
|
|
20599
|
+
* effect — nothing matches and there is no default — is left out, as a deleted component is.
|
|
20454
20600
|
*
|
|
20455
20601
|
*/
|
|
20456
20602
|
export interface ResolvedPriceComponents {
|
|
@@ -20657,7 +20803,12 @@ declare namespace Components {
|
|
|
20657
20803
|
* }
|
|
20658
20804
|
*/
|
|
20659
20805
|
_conditions: {
|
|
20660
|
-
[name: string]:
|
|
20806
|
+
[name: string]: /**
|
|
20807
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
20808
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
20809
|
+
*
|
|
20810
|
+
*/
|
|
20811
|
+
PinnedConditionValue;
|
|
20661
20812
|
default: boolean;
|
|
20662
20813
|
};
|
|
20663
20814
|
/**
|
|
@@ -20737,7 +20888,12 @@ declare namespace Components {
|
|
|
20737
20888
|
* }
|
|
20738
20889
|
*/
|
|
20739
20890
|
_conditions: {
|
|
20740
|
-
[name: string]:
|
|
20891
|
+
[name: string]: /**
|
|
20892
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
20893
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
20894
|
+
*
|
|
20895
|
+
*/
|
|
20896
|
+
PinnedConditionValue;
|
|
20741
20897
|
default: boolean;
|
|
20742
20898
|
};
|
|
20743
20899
|
/**
|
|
@@ -21172,7 +21328,14 @@ declare namespace Components {
|
|
|
21172
21328
|
* }
|
|
21173
21329
|
*/
|
|
21174
21330
|
export interface VariantConditionFilter {
|
|
21175
|
-
[name: string]:
|
|
21331
|
+
[name: string]: /**
|
|
21332
|
+
* One condition's value in a resolve context or listing filter: an exact value, or a predicate.
|
|
21333
|
+
* Which of these a condition takes is set by its type in the entity's schema, and a value of
|
|
21334
|
+
* another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
|
|
21335
|
+
* predicate its type does not support.
|
|
21336
|
+
*
|
|
21337
|
+
*/
|
|
21338
|
+
ContextConditionValue;
|
|
21176
21339
|
}
|
|
21177
21340
|
/**
|
|
21178
21341
|
* A variant's pinned conditions as a reader sees them: the pins the schema declares, plus a
|
|
@@ -21185,7 +21348,12 @@ declare namespace Components {
|
|
|
21185
21348
|
* }
|
|
21186
21349
|
*/
|
|
21187
21350
|
export interface VariantConditions {
|
|
21188
|
-
[name: string]:
|
|
21351
|
+
[name: string]: /**
|
|
21352
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21353
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21354
|
+
*
|
|
21355
|
+
*/
|
|
21356
|
+
PinnedConditionValue;
|
|
21189
21357
|
default: boolean;
|
|
21190
21358
|
}
|
|
21191
21359
|
export interface VariantList {
|
|
@@ -21231,7 +21399,12 @@ declare namespace Components {
|
|
|
21231
21399
|
* }
|
|
21232
21400
|
*/
|
|
21233
21401
|
conditions: {
|
|
21234
|
-
[name: string]:
|
|
21402
|
+
[name: string]: /**
|
|
21403
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21404
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21405
|
+
*
|
|
21406
|
+
*/
|
|
21407
|
+
PinnedConditionValue;
|
|
21235
21408
|
default: boolean;
|
|
21236
21409
|
};
|
|
21237
21410
|
}
|
|
@@ -21359,7 +21532,12 @@ declare namespace Components {
|
|
|
21359
21532
|
* }
|
|
21360
21533
|
*/
|
|
21361
21534
|
conditions: {
|
|
21362
|
-
[name: string]:
|
|
21535
|
+
[name: string]: /**
|
|
21536
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21537
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21538
|
+
*
|
|
21539
|
+
*/
|
|
21540
|
+
PinnedConditionValue;
|
|
21363
21541
|
default: boolean;
|
|
21364
21542
|
};
|
|
21365
21543
|
status: /**
|
|
@@ -21398,7 +21576,12 @@ declare namespace Components {
|
|
|
21398
21576
|
* }
|
|
21399
21577
|
*/
|
|
21400
21578
|
conditions: {
|
|
21401
|
-
[name: string]:
|
|
21579
|
+
[name: string]: /**
|
|
21580
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21581
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21582
|
+
*
|
|
21583
|
+
*/
|
|
21584
|
+
PinnedConditionValue;
|
|
21402
21585
|
default: boolean;
|
|
21403
21586
|
};
|
|
21404
21587
|
/**
|
|
@@ -21502,7 +21685,12 @@ declare namespace Components {
|
|
|
21502
21685
|
* }
|
|
21503
21686
|
*/
|
|
21504
21687
|
conditions: {
|
|
21505
|
-
[name: string]:
|
|
21688
|
+
[name: string]: /**
|
|
21689
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21690
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21691
|
+
*
|
|
21692
|
+
*/
|
|
21693
|
+
PinnedConditionValue;
|
|
21506
21694
|
default: boolean;
|
|
21507
21695
|
};
|
|
21508
21696
|
/**
|
|
@@ -21598,7 +21786,12 @@ declare namespace Components {
|
|
|
21598
21786
|
* }
|
|
21599
21787
|
*/
|
|
21600
21788
|
conditions: {
|
|
21601
|
-
[name: string]:
|
|
21789
|
+
[name: string]: /**
|
|
21790
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21791
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21792
|
+
*
|
|
21793
|
+
*/
|
|
21794
|
+
PinnedConditionValue;
|
|
21602
21795
|
default: boolean;
|
|
21603
21796
|
};
|
|
21604
21797
|
/**
|
|
@@ -21746,7 +21939,12 @@ declare namespace Components {
|
|
|
21746
21939
|
* }
|
|
21747
21940
|
*/
|
|
21748
21941
|
conditions: {
|
|
21749
|
-
[name: string]:
|
|
21942
|
+
[name: string]: /**
|
|
21943
|
+
* One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
21944
|
+
* entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
21945
|
+
*
|
|
21946
|
+
*/
|
|
21947
|
+
PinnedConditionValue;
|
|
21750
21948
|
default: boolean;
|
|
21751
21949
|
};
|
|
21752
21950
|
/**
|
|
@@ -25548,7 +25746,9 @@ export type ComputePriceResult = Components.Schemas.ComputePriceResult;
|
|
|
25548
25746
|
export type ComputedBasePrice = Components.Schemas.ComputedBasePrice;
|
|
25549
25747
|
export type ComputedPriceBreakdown = Components.Schemas.ComputedPriceBreakdown;
|
|
25550
25748
|
export type ComputedPriceComponents = Components.Schemas.ComputedPriceComponents;
|
|
25749
|
+
export type ConditionDateRange = Components.Schemas.ConditionDateRange;
|
|
25551
25750
|
export type ConditionDefinition = Components.Schemas.ConditionDefinition;
|
|
25751
|
+
export type ConditionPredicate = Components.Schemas.ConditionPredicate;
|
|
25552
25752
|
export type ConditionSet = Components.Schemas.ConditionSet;
|
|
25553
25753
|
export type ConditionSetCatalog = Components.Schemas.ConditionSetCatalog;
|
|
25554
25754
|
export type ConditionType = Components.Schemas.ConditionType;
|
|
@@ -25557,6 +25757,7 @@ export type ConditionalPricingError = Components.Schemas.ConditionalPricingError
|
|
|
25557
25757
|
export type ConditionalPricingErrorCode = Components.Schemas.ConditionalPricingErrorCode;
|
|
25558
25758
|
export type ConditionalPricingOptIn = Components.Schemas.ConditionalPricingOptIn;
|
|
25559
25759
|
export type ConsumptionTypeGetAg = Components.Schemas.ConsumptionTypeGetAg;
|
|
25760
|
+
export type ContextConditionValue = Components.Schemas.ContextConditionValue;
|
|
25560
25761
|
export type Coupon = Components.Schemas.Coupon;
|
|
25561
25762
|
export type CouponItem = Components.Schemas.CouponItem;
|
|
25562
25763
|
export type CouponWithoutPromoCodes = Components.Schemas.CouponWithoutPromoCodes;
|
|
@@ -25614,11 +25815,14 @@ export type OrderPayload = Components.Schemas.OrderPayload;
|
|
|
25614
25815
|
export type OrderRelation = Components.Schemas.OrderRelation;
|
|
25615
25816
|
export type OrderSource = Components.Schemas.OrderSource;
|
|
25616
25817
|
export type OrderStatus = Components.Schemas.OrderStatus;
|
|
25818
|
+
export type OrderedConditionOperand = Components.Schemas.OrderedConditionOperand;
|
|
25617
25819
|
export type PatchVersionRequest = Components.Schemas.PatchVersionRequest;
|
|
25618
25820
|
export type PaymentMethod = Components.Schemas.PaymentMethod;
|
|
25821
|
+
export type PinnedConditionValue = Components.Schemas.PinnedConditionValue;
|
|
25619
25822
|
export type PinnedConditions = Components.Schemas.PinnedConditions;
|
|
25620
25823
|
export type PinnedResolveOptions = Components.Schemas.PinnedResolveOptions;
|
|
25621
25824
|
export type PortalContext = Components.Schemas.PortalContext;
|
|
25825
|
+
export type PostalCodeCity = Components.Schemas.PostalCodeCity;
|
|
25622
25826
|
export type PowerMarketAreaDetails = Components.Schemas.PowerMarketAreaDetails;
|
|
25623
25827
|
export type PowerMeterType = Components.Schemas.PowerMeterType;
|
|
25624
25828
|
export type Price = Components.Schemas.Price;
|
package/dist/openapi.json
CHANGED
|
@@ -6134,7 +6134,9 @@
|
|
|
6134
6134
|
},
|
|
6135
6135
|
"ResolveContext": {
|
|
6136
6136
|
"type": "object",
|
|
6137
|
-
"additionalProperties":
|
|
6137
|
+
"additionalProperties": {
|
|
6138
|
+
"$ref": "#/components/schemas/ContextConditionValue"
|
|
6139
|
+
},
|
|
6138
6140
|
"description": "The situation to resolve for: a flat map keyed by condition name. A condition left out\nmatches only variants that leave it unpinned; an empty map therefore returns the `default`\nvariant.\n\nEach value is an exact value, typed by its condition, or a single-operator predicate:\n\n- `{ \"lt\": v }`, `{ \"lte\": v }`, `{ \"gt\": v }`, `{ \"gte\": v }` — order, against a `number`\n or `date` condition\n- `{ \"in\": [...] }` — membership, against a `string`, `select` or `number` condition\n- `{ \"between\": \"2026-03-01\" }` — `daterange` containment, which a plain date also means\n- `{ \"exists\": true }` — pinned to any value; `{ \"exists\": false }` — left unpinned\n\nAn `in` list carries at most 50,000 values. A `string` or `select` matches exactly and\ncase-sensitively. A `location` of format\n`postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying\n`postal_code` and `city`, named as an entity address names them, whose city is compared\ncase- and whitespace-insensitively.\n\n`default` and names beginning with `_` are reserved and cannot be supplied.\n",
|
|
6139
6141
|
"example": {
|
|
6140
6142
|
"postal_code": "46045",
|
|
@@ -6258,7 +6260,9 @@
|
|
|
6258
6260
|
},
|
|
6259
6261
|
"VariantConditions": {
|
|
6260
6262
|
"type": "object",
|
|
6261
|
-
"additionalProperties":
|
|
6263
|
+
"additionalProperties": {
|
|
6264
|
+
"$ref": "#/components/schemas/PinnedConditionValue"
|
|
6265
|
+
},
|
|
6262
6266
|
"required": [
|
|
6263
6267
|
"default"
|
|
6264
6268
|
],
|
|
@@ -6275,12 +6279,203 @@
|
|
|
6275
6279
|
},
|
|
6276
6280
|
"PinnedConditions": {
|
|
6277
6281
|
"type": "object",
|
|
6278
|
-
"additionalProperties":
|
|
6282
|
+
"additionalProperties": {
|
|
6283
|
+
"$ref": "#/components/schemas/PinnedConditionValue"
|
|
6284
|
+
},
|
|
6279
6285
|
"description": "The situation this variant applies to: a flat map keyed by condition name. A condition left\nout is a wildcard, which is what makes adding a condition to a schema non-breaking for\nexisting variants.\n\nExact values only; predicates belong to reads. Values are stored canonicalized for their\ntype: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`\nand `until` where an empty string is an open end, a `location` of format `postal_code` the\npostal code itself and one of format `postal_code_city` an object carrying `postal_code` and\n`city`.\n\n`default` and names beginning with `_` are reserved; use the request's `default` flag.\n",
|
|
6280
6286
|
"example": {
|
|
6281
6287
|
"postal_code": "46045"
|
|
6282
6288
|
}
|
|
6283
6289
|
},
|
|
6290
|
+
"PinnedConditionValue": {
|
|
6291
|
+
"description": "One condition's exact value. Which of these shapes a condition takes is set by its type in the\nentity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.\n",
|
|
6292
|
+
"anyOf": [
|
|
6293
|
+
{
|
|
6294
|
+
"type": "string"
|
|
6295
|
+
},
|
|
6296
|
+
{
|
|
6297
|
+
"type": "number"
|
|
6298
|
+
},
|
|
6299
|
+
{
|
|
6300
|
+
"type": "boolean"
|
|
6301
|
+
},
|
|
6302
|
+
{
|
|
6303
|
+
"$ref": "#/components/schemas/ConditionDateRange"
|
|
6304
|
+
},
|
|
6305
|
+
{
|
|
6306
|
+
"$ref": "#/components/schemas/PostalCodeCity"
|
|
6307
|
+
}
|
|
6308
|
+
]
|
|
6309
|
+
},
|
|
6310
|
+
"ConditionDateRange": {
|
|
6311
|
+
"type": "object",
|
|
6312
|
+
"additionalProperties": false,
|
|
6313
|
+
"description": "The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an\nopen end; stored, an open end is an empty string.\n",
|
|
6314
|
+
"properties": {
|
|
6315
|
+
"from": {
|
|
6316
|
+
"type": "string",
|
|
6317
|
+
"nullable": true,
|
|
6318
|
+
"example": "2026-01-01"
|
|
6319
|
+
},
|
|
6320
|
+
"until": {
|
|
6321
|
+
"type": "string",
|
|
6322
|
+
"nullable": true,
|
|
6323
|
+
"example": "2027-01-01"
|
|
6324
|
+
}
|
|
6325
|
+
}
|
|
6326
|
+
},
|
|
6327
|
+
"PostalCodeCity": {
|
|
6328
|
+
"type": "object",
|
|
6329
|
+
"additionalProperties": false,
|
|
6330
|
+
"description": "The value of a `location` condition of format `postal_code_city`, its parts named as an entity\naddress names them.\n",
|
|
6331
|
+
"required": [
|
|
6332
|
+
"postal_code",
|
|
6333
|
+
"city"
|
|
6334
|
+
],
|
|
6335
|
+
"properties": {
|
|
6336
|
+
"postal_code": {
|
|
6337
|
+
"type": "string",
|
|
6338
|
+
"minLength": 1,
|
|
6339
|
+
"example": "50667"
|
|
6340
|
+
},
|
|
6341
|
+
"city": {
|
|
6342
|
+
"type": "string",
|
|
6343
|
+
"minLength": 1,
|
|
6344
|
+
"example": "Köln"
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
"ContextConditionValue": {
|
|
6349
|
+
"description": "One condition's value in a resolve context or listing filter: an exact value, or a predicate.\nWhich of these a condition takes is set by its type in the entity's schema, and a value of\nanother shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a\npredicate its type does not support.\n",
|
|
6350
|
+
"anyOf": [
|
|
6351
|
+
{
|
|
6352
|
+
"type": "string"
|
|
6353
|
+
},
|
|
6354
|
+
{
|
|
6355
|
+
"type": "number"
|
|
6356
|
+
},
|
|
6357
|
+
{
|
|
6358
|
+
"type": "boolean"
|
|
6359
|
+
},
|
|
6360
|
+
{
|
|
6361
|
+
"$ref": "#/components/schemas/PostalCodeCity"
|
|
6362
|
+
},
|
|
6363
|
+
{
|
|
6364
|
+
"$ref": "#/components/schemas/ConditionPredicate"
|
|
6365
|
+
}
|
|
6366
|
+
]
|
|
6367
|
+
},
|
|
6368
|
+
"ConditionPredicate": {
|
|
6369
|
+
"description": "A single-operator predicate.",
|
|
6370
|
+
"oneOf": [
|
|
6371
|
+
{
|
|
6372
|
+
"type": "object",
|
|
6373
|
+
"additionalProperties": false,
|
|
6374
|
+
"required": [
|
|
6375
|
+
"lt"
|
|
6376
|
+
],
|
|
6377
|
+
"properties": {
|
|
6378
|
+
"lt": {
|
|
6379
|
+
"$ref": "#/components/schemas/OrderedConditionOperand"
|
|
6380
|
+
}
|
|
6381
|
+
}
|
|
6382
|
+
},
|
|
6383
|
+
{
|
|
6384
|
+
"type": "object",
|
|
6385
|
+
"additionalProperties": false,
|
|
6386
|
+
"required": [
|
|
6387
|
+
"lte"
|
|
6388
|
+
],
|
|
6389
|
+
"properties": {
|
|
6390
|
+
"lte": {
|
|
6391
|
+
"$ref": "#/components/schemas/OrderedConditionOperand"
|
|
6392
|
+
}
|
|
6393
|
+
}
|
|
6394
|
+
},
|
|
6395
|
+
{
|
|
6396
|
+
"type": "object",
|
|
6397
|
+
"additionalProperties": false,
|
|
6398
|
+
"required": [
|
|
6399
|
+
"gt"
|
|
6400
|
+
],
|
|
6401
|
+
"properties": {
|
|
6402
|
+
"gt": {
|
|
6403
|
+
"$ref": "#/components/schemas/OrderedConditionOperand"
|
|
6404
|
+
}
|
|
6405
|
+
}
|
|
6406
|
+
},
|
|
6407
|
+
{
|
|
6408
|
+
"type": "object",
|
|
6409
|
+
"additionalProperties": false,
|
|
6410
|
+
"required": [
|
|
6411
|
+
"gte"
|
|
6412
|
+
],
|
|
6413
|
+
"properties": {
|
|
6414
|
+
"gte": {
|
|
6415
|
+
"$ref": "#/components/schemas/OrderedConditionOperand"
|
|
6416
|
+
}
|
|
6417
|
+
}
|
|
6418
|
+
},
|
|
6419
|
+
{
|
|
6420
|
+
"type": "object",
|
|
6421
|
+
"additionalProperties": false,
|
|
6422
|
+
"required": [
|
|
6423
|
+
"in"
|
|
6424
|
+
],
|
|
6425
|
+
"properties": {
|
|
6426
|
+
"in": {
|
|
6427
|
+
"type": "array",
|
|
6428
|
+
"items": {
|
|
6429
|
+
"anyOf": [
|
|
6430
|
+
{
|
|
6431
|
+
"type": "string"
|
|
6432
|
+
},
|
|
6433
|
+
{
|
|
6434
|
+
"type": "number"
|
|
6435
|
+
}
|
|
6436
|
+
]
|
|
6437
|
+
}
|
|
6438
|
+
}
|
|
6439
|
+
}
|
|
6440
|
+
},
|
|
6441
|
+
{
|
|
6442
|
+
"type": "object",
|
|
6443
|
+
"additionalProperties": false,
|
|
6444
|
+
"required": [
|
|
6445
|
+
"between"
|
|
6446
|
+
],
|
|
6447
|
+
"properties": {
|
|
6448
|
+
"between": {
|
|
6449
|
+
"type": "string",
|
|
6450
|
+
"description": "The instant a `daterange` condition's range must contain."
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
6454
|
+
{
|
|
6455
|
+
"type": "object",
|
|
6456
|
+
"additionalProperties": false,
|
|
6457
|
+
"required": [
|
|
6458
|
+
"exists"
|
|
6459
|
+
],
|
|
6460
|
+
"properties": {
|
|
6461
|
+
"exists": {
|
|
6462
|
+
"type": "boolean"
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
}
|
|
6466
|
+
]
|
|
6467
|
+
},
|
|
6468
|
+
"OrderedConditionOperand": {
|
|
6469
|
+
"description": "A number, or a date as an RFC 3339 date or date-time.",
|
|
6470
|
+
"anyOf": [
|
|
6471
|
+
{
|
|
6472
|
+
"type": "number"
|
|
6473
|
+
},
|
|
6474
|
+
{
|
|
6475
|
+
"type": "string"
|
|
6476
|
+
}
|
|
6477
|
+
]
|
|
6478
|
+
},
|
|
6284
6479
|
"VariantValues": {
|
|
6285
6480
|
"type": "object",
|
|
6286
6481
|
"additionalProperties": true,
|
|
@@ -6907,7 +7102,9 @@
|
|
|
6907
7102
|
},
|
|
6908
7103
|
"VariantConditionFilter": {
|
|
6909
7104
|
"type": "object",
|
|
6910
|
-
"additionalProperties":
|
|
7105
|
+
"additionalProperties": {
|
|
7106
|
+
"$ref": "#/components/schemas/ContextConditionValue"
|
|
7107
|
+
},
|
|
6911
7108
|
"description": "Which pins a variant must carry to be listed: a flat map keyed by condition name, taking the\nsame exact values and predicates a resolve context does. A condition left out is not\nfiltered on. An `in` list carries at most 50,000 values.\n\nA variant matches only where it pins the condition — unlike `:resolve`, where an unpinned\ncondition matches any value. `{ \"exists\": false }` selects the variants that leave it\nunpinned.\n\n`default` is accepted as an exact boolean and takes no predicate: `true` selects the\nentity's fallback variant, `false` every variant that is not it. Names beginning with `_`\nare reserved.\n",
|
|
6912
7109
|
"example": {
|
|
6913
7110
|
"postal_code": "46045",
|
|
@@ -11276,7 +11473,7 @@
|
|
|
11276
11473
|
"CatalogContext": {
|
|
11277
11474
|
"type": "object",
|
|
11278
11475
|
"additionalProperties": false,
|
|
11279
|
-
"description": "One context per entity type, each the authenticated resolve's context and checked against\nthat type's schema alone. A product resolves against `product`, a price and each of a\ncomposite's components against `price
|
|
11476
|
+
"description": "One context per entity type, each the authenticated resolve's context and checked against\nthat type's schema alone. A product resolves against `product`, and a price and each of a\ncomposite's components against `price`. A type left out resolves against an empty context,\nwhich serves the `default` variant.\n",
|
|
11280
11477
|
"properties": {
|
|
11281
11478
|
"product": {
|
|
11282
11479
|
"$ref": "#/components/schemas/ResolveContext"
|
|
@@ -11424,7 +11621,7 @@
|
|
|
11424
11621
|
},
|
|
11425
11622
|
"ResolvedPriceComponents": {
|
|
11426
11623
|
"type": "object",
|
|
11427
|
-
"description": "The components of a composite price as the v2 catalog serves them: hydrated in place, and\na component that is itself conditional resolved against the same context, carrying the\ndiscriminators a resolved payload carries. A conditional component with no variant in\neffect — nothing matches and there is no default — is left out, as a deleted component is
|
|
11624
|
+
"description": "The components of a composite price as the v2 catalog serves them: hydrated in place, and\na component that is itself conditional resolved against the same context, carrying the\ndiscriminators a resolved payload carries. A conditional component with no variant in\neffect — nothing matches and there is no default — is left out, as a deleted component is.\n",
|
|
11428
11625
|
"properties": {
|
|
11429
11626
|
"price_components": {
|
|
11430
11627
|
"type": "array",
|
|
@@ -11575,14 +11772,14 @@
|
|
|
11575
11772
|
},
|
|
11576
11773
|
"price_components": {
|
|
11577
11774
|
"type": "array",
|
|
11578
|
-
"description": "Present for a composite price that serves at least one component: the components this\npair is the combination of, each with its variant where one produced it. A conditional\ncomponent with no variant in effect is left out of the composite and is not named here
|
|
11775
|
+
"description": "Present for a composite price that serves at least one component: the components this\npair is the combination of, each with its variant where one produced it. A conditional\ncomponent with no variant in effect is left out of the composite and is not named here.\nA component line item carries no reference of its own.\n",
|
|
11579
11776
|
"items": {
|
|
11580
11777
|
"$ref": "#/components/schemas/CatalogReferenceMember"
|
|
11581
11778
|
}
|
|
11582
11779
|
},
|
|
11583
11780
|
"coupons": {
|
|
11584
11781
|
"type": "array",
|
|
11585
|
-
"description": "Present when coupons apply to the price.
|
|
11782
|
+
"description": "Present when coupons apply to the price. Coupons are served as stored, so a coupon member\ncarries no `variant`.\n",
|
|
11586
11783
|
"items": {
|
|
11587
11784
|
"$ref": "#/components/schemas/CatalogReferenceMember"
|
|
11588
11785
|
}
|