@lana-commerce/core 14.0.0-alpha.21 → 14.0.0-alpha.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lana-commerce/core",
3
- "version": "14.0.0-alpha.21",
3
+ "version": "14.0.0-alpha.22",
4
4
  "description": "Lana JS Core",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -1172,6 +1172,10 @@ export interface CustomerFavorite {
1172
1172
  inventory_notification: boolean;
1173
1173
  /** Whether price notifications are enabled */
1174
1174
  price_notification: boolean;
1175
+ /** Sales channel associated with this item */
1176
+ sales_channel?: {
1177
+ id: string;
1178
+ } | SalesChannel | null;
1175
1179
  /** The item customer added to favorites */
1176
1180
  variant?: {
1177
1181
  id: string;
@@ -2792,6 +2796,14 @@ export interface LineItemFieldCreate {
2792
2796
  type: ProductFieldType;
2793
2797
  value: string;
2794
2798
  }
2799
+ export interface MatchingPricingRules {
2800
+ /** Whether price difference should be displayed when this pricing rule matches */
2801
+ display_price_difference: boolean;
2802
+ /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
2803
+ parent_pricing_rule_id: string;
2804
+ /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
2805
+ pricing_rule_id: string;
2806
+ }
2795
2807
  export interface MediaFile {
2796
2808
  /** The media file itself */
2797
2809
  file?: {
@@ -3990,13 +4002,13 @@ export interface OrderLineItemDetail {
3990
4002
  /** Original price (depends on price source, e.g. could be price before sale price was applied) */
3991
4003
  original_price: number;
3992
4004
  /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
3993
- parent_price_rule_id: string;
4005
+ parent_pricing_rule_id: string;
3994
4006
  /** Price of the line item */
3995
4007
  price: number;
3996
- /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
3997
- price_rule_id: string;
3998
4008
  /** Where the price of the line item comes from */
3999
4009
  price_source: string;
4010
+ /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
4011
+ pricing_rule_id: string;
4000
4012
  tax: TaxDetail | null;
4001
4013
  /** Tax exclusive price of the line item */
4002
4014
  tax_excl_price: number;
@@ -9286,10 +9298,12 @@ export interface CustomerExpandableItemsExpansionMap {
9286
9298
  }
9287
9299
  export interface CustomerFavoriteExpansionMap {
9288
9300
  customer?: true | CustomerExpansionMap;
9301
+ sales_channel?: true;
9289
9302
  variant?: true | ProductVariantExpansionMap;
9290
9303
  }
9291
9304
  export interface CustomerFavoritePageExpansionMap {
9292
9305
  "items.customer"?: true | CustomerExpansionMap;
9306
+ "items.sales_channel"?: true;
9293
9307
  "items.variant"?: true | ProductVariantExpansionMap;
9294
9308
  }
9295
9309
  export interface CustomerInventoryExpansionMap {
@@ -12106,6 +12120,13 @@ export interface EndpointOrdersPay extends Endpoint<EndpointOrdersPay, Order> {
12106
12120
  expand(v: OrderExpansionMap): EndpointOrdersPay;
12107
12121
  extract(v: Extractor<Order>): EndpointOrdersPay;
12108
12122
  }
12123
+ export interface EndpointOrdersPricingRules extends Endpoint<EndpointOrdersPricingRules, MatchingPricingRules> {
12124
+ /** Unique order identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
12125
+ order_id(v: string): EndpointOrdersPricingRules;
12126
+ /** Unique shop identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
12127
+ shop_id(v: string): EndpointOrdersPricingRules;
12128
+ extract(v: Extractor<MatchingPricingRules>): EndpointOrdersPricingRules;
12129
+ }
12109
12130
  export interface EndpointOrdersRefund extends Endpoint<EndpointOrdersRefund, Order> {
12110
12131
  /** Output filtering */
12111
12132
  fields(v: Array<string>): EndpointOrdersRefund;
@@ -15496,6 +15517,7 @@ export interface ReqFunction {
15496
15517
  (ctx: Context, v: "POST:orders/override.json"): EndpointOrdersOverride;
15497
15518
  (ctx: Context, v: "GET:orders/page.json"): EndpointOrdersPage;
15498
15519
  (ctx: Context, v: "POST:orders/pay.json"): EndpointOrdersPay;
15520
+ (ctx: Context, v: "GET:orders/pricing_rules.json"): EndpointOrdersPricingRules;
15499
15521
  (ctx: Context, v: "POST:orders/refund.json"): EndpointOrdersRefund;
15500
15522
  (ctx: Context, v: "POST:orders/reserve.json"): EndpointOrdersReserve;
15501
15523
  (ctx: Context, v: "POST:orders/restock.json"): EndpointOrdersRestock;
@@ -895,13 +895,13 @@ export interface OrderLineItemDetail {
895
895
  /** Original price (depends on price source, e.g. could be price before sale price was applied) */
896
896
  original_price: number;
897
897
  /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
898
- parent_price_rule_id: string;
898
+ parent_pricing_rule_id: string;
899
899
  /** Price of the line item */
900
900
  price: number;
901
- /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
902
- price_rule_id: string;
903
901
  /** Where the price of the line item comes from */
904
902
  price_source: string;
903
+ /** Unique pricing rule identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
904
+ pricing_rule_id: string;
905
905
  tax: TaxDetail | null;
906
906
  /** Tax exclusive price of the line item */
907
907
  tax_excl_price: number;