@commercelayer/sdk 6.34.0 → 6.35.0

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/lib/index.d.mts CHANGED
@@ -1012,7 +1012,7 @@ declare class Stores extends ApiResource<Store> {
1012
1012
  }
1013
1013
 
1014
1014
  type PaymentMethodType = 'payment_methods';
1015
- type PaymentMethodRel$4 = ResourceRel & {
1015
+ type PaymentMethodRel$5 = ResourceRel & {
1016
1016
  type: PaymentMethodType;
1017
1017
  };
1018
1018
  type MarketRel$i = ResourceRel & {
@@ -1224,8 +1224,8 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
1224
1224
  _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
1225
1225
  _enable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
1226
1226
  isPaymentMethod(resource: any): resource is PaymentMethod;
1227
- relationship(id: string | ResourceId | null): PaymentMethodRel$4;
1228
- relationshipToMany(...ids: string[]): PaymentMethodRel$4[];
1227
+ relationship(id: string | ResourceId | null): PaymentMethodRel$5;
1228
+ relationshipToMany(...ids: string[]): PaymentMethodRel$5[];
1229
1229
  type(): PaymentMethodType;
1230
1230
  }
1231
1231
 
@@ -2194,7 +2194,7 @@ type CustomerPaymentSourceRel$1 = ResourceRel & {
2194
2194
  type CustomerRel$7 = ResourceRel & {
2195
2195
  type: CustomerType;
2196
2196
  };
2197
- type PaymentMethodRel$3 = ResourceRel & {
2197
+ type PaymentMethodRel$4 = ResourceRel & {
2198
2198
  type: PaymentMethodType;
2199
2199
  };
2200
2200
  type AdyenPaymentRel$2 = ResourceRel & {
@@ -2262,7 +2262,7 @@ interface CustomerPaymentSourceCreate extends ResourceCreate {
2262
2262
  */
2263
2263
  payment_source_token?: string | null;
2264
2264
  customer: CustomerRel$7;
2265
- payment_method?: PaymentMethodRel$3 | null;
2265
+ payment_method?: PaymentMethodRel$4 | null;
2266
2266
  payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null;
2267
2267
  }
2268
2268
  interface CustomerPaymentSourceUpdate extends ResourceUpdate {
@@ -2277,7 +2277,7 @@ interface CustomerPaymentSourceUpdate extends ResourceUpdate {
2277
2277
  */
2278
2278
  payment_source_token?: string | null;
2279
2279
  customer?: CustomerRel$7 | null;
2280
- payment_method?: PaymentMethodRel$3 | null;
2280
+ payment_method?: PaymentMethodRel$4 | null;
2281
2281
  payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null;
2282
2282
  }
2283
2283
  declare class CustomerPaymentSources extends ApiResource<CustomerPaymentSource> {
@@ -3957,7 +3957,7 @@ type DeliveryLeadTimeRel$1 = ResourceRel & {
3957
3957
  type StockLocationRel$6 = ResourceRel & {
3958
3958
  type: StockLocationType;
3959
3959
  };
3960
- type ShippingMethodRel$5 = ResourceRel & {
3960
+ type ShippingMethodRel$6 = ResourceRel & {
3961
3961
  type: ShippingMethodType;
3962
3962
  };
3963
3963
  type DeliveryLeadTimeSort = Pick<DeliveryLeadTime, 'id' | 'min_hours' | 'max_hours' | 'min_days'> & ResourceSort;
@@ -4000,7 +4000,7 @@ interface DeliveryLeadTimeCreate extends ResourceCreate {
4000
4000
  */
4001
4001
  max_hours: number;
4002
4002
  stock_location: StockLocationRel$6;
4003
- shipping_method: ShippingMethodRel$5;
4003
+ shipping_method: ShippingMethodRel$6;
4004
4004
  }
4005
4005
  interface DeliveryLeadTimeUpdate extends ResourceUpdate {
4006
4006
  /**
@@ -4014,7 +4014,7 @@ interface DeliveryLeadTimeUpdate extends ResourceUpdate {
4014
4014
  */
4015
4015
  max_hours?: number | null;
4016
4016
  stock_location?: StockLocationRel$6 | null;
4017
- shipping_method?: ShippingMethodRel$5 | null;
4017
+ shipping_method?: ShippingMethodRel$6 | null;
4018
4018
  }
4019
4019
  declare class DeliveryLeadTimes extends ApiResource<DeliveryLeadTime> {
4020
4020
  static readonly TYPE: DeliveryLeadTimeType;
@@ -4082,7 +4082,7 @@ type ShippingWeightTierType = 'shipping_weight_tiers';
4082
4082
  type ShippingWeightTierRel = ResourceRel & {
4083
4083
  type: ShippingWeightTierType;
4084
4084
  };
4085
- type ShippingMethodRel$4 = ResourceRel & {
4085
+ type ShippingMethodRel$5 = ResourceRel & {
4086
4086
  type: ShippingMethodType;
4087
4087
  };
4088
4088
  type ShippingWeightTierSort = Pick<ShippingWeightTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort;
@@ -4133,7 +4133,7 @@ interface ShippingWeightTierCreate extends ResourceCreate {
4133
4133
  * @example ```1000```
4134
4134
  */
4135
4135
  price_amount_cents: number;
4136
- shipping_method: ShippingMethodRel$4;
4136
+ shipping_method: ShippingMethodRel$5;
4137
4137
  }
4138
4138
  interface ShippingWeightTierUpdate extends ResourceUpdate {
4139
4139
  /**
@@ -4151,7 +4151,7 @@ interface ShippingWeightTierUpdate extends ResourceUpdate {
4151
4151
  * @example ```1000```
4152
4152
  */
4153
4153
  price_amount_cents?: number | null;
4154
- shipping_method?: ShippingMethodRel$4 | null;
4154
+ shipping_method?: ShippingMethodRel$5 | null;
4155
4155
  }
4156
4156
  declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
4157
4157
  static readonly TYPE: ShippingWeightTierType;
@@ -4168,7 +4168,7 @@ declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
4168
4168
  }
4169
4169
 
4170
4170
  type ShippingMethodType = 'shipping_methods';
4171
- type ShippingMethodRel$3 = ResourceRel & {
4171
+ type ShippingMethodRel$4 = ResourceRel & {
4172
4172
  type: ShippingMethodType;
4173
4173
  };
4174
4174
  type MarketRel$g = ResourceRel & {
@@ -4471,8 +4471,8 @@ declare class ShippingMethods extends ApiResource<ShippingMethod> {
4471
4471
  _enable(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
4472
4472
  _reset_circuit(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
4473
4473
  isShippingMethod(resource: any): resource is ShippingMethod;
4474
- relationship(id: string | ResourceId | null): ShippingMethodRel$3;
4475
- relationshipToMany(...ids: string[]): ShippingMethodRel$3[];
4474
+ relationship(id: string | ResourceId | null): ShippingMethodRel$4;
4475
+ relationshipToMany(...ids: string[]): ShippingMethodRel$4[];
4476
4476
  type(): ShippingMethodType;
4477
4477
  }
4478
4478
 
@@ -4486,7 +4486,7 @@ type OrderRel$9 = ResourceRel & {
4486
4486
  type LineItemRel$2 = ResourceRel & {
4487
4487
  type: LineItemType;
4488
4488
  };
4489
- type ShippingMethodRel$2 = ResourceRel & {
4489
+ type ShippingMethodRel$3 = ResourceRel & {
4490
4490
  type: ShippingMethodType;
4491
4491
  };
4492
4492
  type NotificationSort = Pick<Notification, 'id' | 'name' | 'flash'> & ResourceSort;
@@ -4523,7 +4523,7 @@ interface NotificationCreate extends ResourceCreate {
4523
4523
  * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}```
4524
4524
  */
4525
4525
  body?: Record<string, any> | null;
4526
- notifiable: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$2;
4526
+ notifiable: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$3;
4527
4527
  }
4528
4528
  interface NotificationUpdate extends ResourceUpdate {
4529
4529
  /**
@@ -4540,7 +4540,7 @@ interface NotificationUpdate extends ResourceUpdate {
4540
4540
  * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}```
4541
4541
  */
4542
4542
  body?: Record<string, any> | null;
4543
- notifiable?: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$2 | null;
4543
+ notifiable?: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$3 | null;
4544
4544
  }
4545
4545
  declare class Notifications extends ApiResource<Notification> {
4546
4546
  static readonly TYPE: NotificationType;
@@ -8178,7 +8178,7 @@ type GiftCardRel$1 = ResourceRel & {
8178
8178
  type ShipmentRel$5 = ResourceRel & {
8179
8179
  type: ShipmentType;
8180
8180
  };
8181
- type PaymentMethodRel$2 = ResourceRel & {
8181
+ type PaymentMethodRel$3 = ResourceRel & {
8182
8182
  type: PaymentMethodType;
8183
8183
  };
8184
8184
  type AdjustmentRel$1 = ResourceRel & {
@@ -8461,7 +8461,7 @@ interface LineItemCreate extends ResourceCreate {
8461
8461
  */
8462
8462
  frequency?: string | null;
8463
8463
  order: OrderRel$7;
8464
- item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$5 | PaymentMethodRel$2 | AdjustmentRel$1 | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null;
8464
+ item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$5 | PaymentMethodRel$3 | AdjustmentRel$1 | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null;
8465
8465
  tags?: TagRel$6[] | null;
8466
8466
  }
8467
8467
  interface LineItemUpdate extends ResourceUpdate {
@@ -9402,7 +9402,7 @@ type AddressRel$4 = ResourceRel & {
9402
9402
  type StoreRel = ResourceRel & {
9403
9403
  type: StoreType;
9404
9404
  };
9405
- type PaymentMethodRel$1 = ResourceRel & {
9405
+ type PaymentMethodRel$2 = ResourceRel & {
9406
9406
  type: PaymentMethodType;
9407
9407
  };
9408
9408
  type AdyenPaymentRel$1 = ResourceRel & {
@@ -9977,6 +9977,8 @@ interface Order extends Resource {
9977
9977
  shipping_address?: Address | null;
9978
9978
  billing_address?: Address | null;
9979
9979
  store?: Store | null;
9980
+ default_shipping_method?: ShippingMethod | null;
9981
+ default_payment_method?: PaymentMethod | null;
9980
9982
  available_payment_methods?: PaymentMethod[] | null;
9981
9983
  available_customer_payment_sources?: CustomerPaymentSource[] | null;
9982
9984
  available_free_skus?: Sku[] | null;
@@ -10109,7 +10111,7 @@ interface OrderCreate extends ResourceCreate {
10109
10111
  shipping_address?: AddressRel$4 | null;
10110
10112
  billing_address?: AddressRel$4 | null;
10111
10113
  store?: StoreRel | null;
10112
- payment_method?: PaymentMethodRel$1 | null;
10114
+ payment_method?: PaymentMethodRel$2 | null;
10113
10115
  payment_source?: AdyenPaymentRel$1 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null;
10114
10116
  tags?: TagRel$3[] | null;
10115
10117
  }
@@ -10367,7 +10369,7 @@ interface OrderUpdate extends ResourceUpdate {
10367
10369
  shipping_address?: AddressRel$4 | null;
10368
10370
  billing_address?: AddressRel$4 | null;
10369
10371
  store?: StoreRel | null;
10370
- payment_method?: PaymentMethodRel$1 | null;
10372
+ payment_method?: PaymentMethodRel$2 | null;
10371
10373
  payment_source?: AdyenPaymentRel$1 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null;
10372
10374
  tags?: TagRel$3[] | null;
10373
10375
  }
@@ -10381,6 +10383,8 @@ declare class Orders extends ApiResource<Order> {
10381
10383
  shipping_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address>;
10382
10384
  billing_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address>;
10383
10385
  store(orderId: string | Order, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store>;
10386
+ default_shipping_method(orderId: string | Order, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
10387
+ default_payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
10384
10388
  available_payment_methods(orderId: string | Order, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
10385
10389
  available_customer_payment_sources(orderId: string | Order, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
10386
10390
  available_free_skus(orderId: string | Order, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
@@ -11169,7 +11173,7 @@ type InventoryStockLocationRel = ResourceRel & {
11169
11173
  type AddressRel$3 = ResourceRel & {
11170
11174
  type: AddressType;
11171
11175
  };
11172
- type ShippingMethodRel$1 = ResourceRel & {
11176
+ type ShippingMethodRel$2 = ResourceRel & {
11173
11177
  type: ShippingMethodType;
11174
11178
  };
11175
11179
  type TagRel$2 = ResourceRel & {
@@ -11313,7 +11317,7 @@ interface ShipmentCreate extends ResourceCreate {
11313
11317
  shipping_category?: ShippingCategoryRel$2 | null;
11314
11318
  inventory_stock_location: InventoryStockLocationRel;
11315
11319
  shipping_address?: AddressRel$3 | null;
11316
- shipping_method?: ShippingMethodRel$1 | null;
11320
+ shipping_method?: ShippingMethodRel$2 | null;
11317
11321
  tags?: TagRel$2[] | null;
11318
11322
  }
11319
11323
  interface ShipmentUpdate extends ResourceUpdate {
@@ -11395,7 +11399,7 @@ interface ShipmentUpdate extends ResourceUpdate {
11395
11399
  shipping_category?: ShippingCategoryRel$2 | null;
11396
11400
  inventory_stock_location?: InventoryStockLocationRel | null;
11397
11401
  shipping_address?: AddressRel$3 | null;
11398
- shipping_method?: ShippingMethodRel$1 | null;
11402
+ shipping_method?: ShippingMethodRel$2 | null;
11399
11403
  tags?: TagRel$2[] | null;
11400
11404
  }
11401
11405
  declare class Shipments extends ApiResource<Shipment> {
@@ -13694,7 +13698,7 @@ type GeocoderRel$3 = ResourceRel & {
13694
13698
  type PriceListRel$1 = ResourceRel & {
13695
13699
  type: PriceListType;
13696
13700
  };
13697
- type PaymentMethodRel = ResourceRel & {
13701
+ type PaymentMethodRel$1 = ResourceRel & {
13698
13702
  type: PaymentMethodType;
13699
13703
  };
13700
13704
  type MarketRel$2 = ResourceRel & {
@@ -13751,7 +13755,7 @@ type CustomerRel$1 = ResourceRel & {
13751
13755
  type DeliveryLeadTimeRel = ResourceRel & {
13752
13756
  type: DeliveryLeadTimeType;
13753
13757
  };
13754
- type ShippingMethodRel = ResourceRel & {
13758
+ type ShippingMethodRel$1 = ResourceRel & {
13755
13759
  type: ShippingMethodType;
13756
13760
  };
13757
13761
  type DiscountEngineRel = ResourceRel & {
@@ -13838,7 +13842,7 @@ interface AttachmentCreate extends ResourceCreate {
13838
13842
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
13839
13843
  */
13840
13844
  url?: string | null;
13841
- attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
13845
+ attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
13842
13846
  }
13843
13847
  interface AttachmentUpdate extends ResourceUpdate {
13844
13848
  /**
@@ -13856,7 +13860,7 @@ interface AttachmentUpdate extends ResourceUpdate {
13856
13860
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
13857
13861
  */
13858
13862
  url?: string | null;
13859
- attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
13863
+ attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
13860
13864
  }
13861
13865
  declare class Attachments extends ApiResource<Attachment> {
13862
13866
  static readonly TYPE: AttachmentType;
@@ -13958,6 +13962,12 @@ type CustomerGroupRel = ResourceRel & {
13958
13962
  type GeocoderRel$2 = ResourceRel & {
13959
13963
  type: GeocoderType;
13960
13964
  };
13965
+ type ShippingMethodRel = ResourceRel & {
13966
+ type: ShippingMethodType;
13967
+ };
13968
+ type PaymentMethodRel = ResourceRel & {
13969
+ type: PaymentMethodType;
13970
+ };
13961
13971
  type MarketSort = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceSort;
13962
13972
  interface Market extends Resource {
13963
13973
  readonly type: MarketType;
@@ -14024,6 +14034,8 @@ interface Market extends Resource {
14024
14034
  tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
14025
14035
  customer_group?: CustomerGroup | null;
14026
14036
  geocoder?: Geocoder | null;
14037
+ default_shipping_method?: ShippingMethod | null;
14038
+ default_payment_method?: PaymentMethod | null;
14027
14039
  stores?: Store[] | null;
14028
14040
  price_list_schedulers?: PriceListScheduler[] | null;
14029
14041
  attachments?: Attachment[] | null;
@@ -14082,6 +14094,8 @@ interface MarketCreate extends ResourceCreate {
14082
14094
  tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
14083
14095
  customer_group?: CustomerGroupRel | null;
14084
14096
  geocoder?: GeocoderRel$2 | null;
14097
+ default_shipping_method?: ShippingMethodRel | null;
14098
+ default_payment_method?: PaymentMethodRel | null;
14085
14099
  }
14086
14100
  interface MarketUpdate extends ResourceUpdate {
14087
14101
  /**
@@ -14136,6 +14150,8 @@ interface MarketUpdate extends ResourceUpdate {
14136
14150
  tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
14137
14151
  customer_group?: CustomerGroupRel | null;
14138
14152
  geocoder?: GeocoderRel$2 | null;
14153
+ default_shipping_method?: ShippingMethodRel | null;
14154
+ default_payment_method?: PaymentMethodRel | null;
14139
14155
  }
14140
14156
  declare class Markets extends ApiResource<Market> {
14141
14157
  static readonly TYPE: MarketType;
@@ -14150,6 +14166,8 @@ declare class Markets extends ApiResource<Market> {
14150
14166
  tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
14151
14167
  customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
14152
14168
  geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
14169
+ default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
14170
+ default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
14153
14171
  stores(marketId: string | Market, params?: QueryParamsList<Store>, options?: ResourcesConfig): Promise<ListResponse<Store>>;
14154
14172
  price_list_schedulers(marketId: string | Market, params?: QueryParamsList<PriceListScheduler>, options?: ResourcesConfig): Promise<ListResponse<PriceListScheduler>>;
14155
14173
  attachments(marketId: string | Market, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
@@ -16894,7 +16912,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
16894
16912
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
16895
16913
  declare class CommerceLayerClient {
16896
16914
  #private;
16897
- readonly openApiSchemaVersion = "7.8.0";
16915
+ readonly openApiSchemaVersion = "7.8.1";
16898
16916
  constructor(config: CommerceLayerInitConfig);
16899
16917
  get addresses(): Addresses;
16900
16918
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -1012,7 +1012,7 @@ declare class Stores extends ApiResource<Store> {
1012
1012
  }
1013
1013
 
1014
1014
  type PaymentMethodType = 'payment_methods';
1015
- type PaymentMethodRel$4 = ResourceRel & {
1015
+ type PaymentMethodRel$5 = ResourceRel & {
1016
1016
  type: PaymentMethodType;
1017
1017
  };
1018
1018
  type MarketRel$i = ResourceRel & {
@@ -1224,8 +1224,8 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
1224
1224
  _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
1225
1225
  _enable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
1226
1226
  isPaymentMethod(resource: any): resource is PaymentMethod;
1227
- relationship(id: string | ResourceId | null): PaymentMethodRel$4;
1228
- relationshipToMany(...ids: string[]): PaymentMethodRel$4[];
1227
+ relationship(id: string | ResourceId | null): PaymentMethodRel$5;
1228
+ relationshipToMany(...ids: string[]): PaymentMethodRel$5[];
1229
1229
  type(): PaymentMethodType;
1230
1230
  }
1231
1231
 
@@ -2194,7 +2194,7 @@ type CustomerPaymentSourceRel$1 = ResourceRel & {
2194
2194
  type CustomerRel$7 = ResourceRel & {
2195
2195
  type: CustomerType;
2196
2196
  };
2197
- type PaymentMethodRel$3 = ResourceRel & {
2197
+ type PaymentMethodRel$4 = ResourceRel & {
2198
2198
  type: PaymentMethodType;
2199
2199
  };
2200
2200
  type AdyenPaymentRel$2 = ResourceRel & {
@@ -2262,7 +2262,7 @@ interface CustomerPaymentSourceCreate extends ResourceCreate {
2262
2262
  */
2263
2263
  payment_source_token?: string | null;
2264
2264
  customer: CustomerRel$7;
2265
- payment_method?: PaymentMethodRel$3 | null;
2265
+ payment_method?: PaymentMethodRel$4 | null;
2266
2266
  payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null;
2267
2267
  }
2268
2268
  interface CustomerPaymentSourceUpdate extends ResourceUpdate {
@@ -2277,7 +2277,7 @@ interface CustomerPaymentSourceUpdate extends ResourceUpdate {
2277
2277
  */
2278
2278
  payment_source_token?: string | null;
2279
2279
  customer?: CustomerRel$7 | null;
2280
- payment_method?: PaymentMethodRel$3 | null;
2280
+ payment_method?: PaymentMethodRel$4 | null;
2281
2281
  payment_source?: AdyenPaymentRel$2 | AxervePaymentRel$2 | BraintreePaymentRel$2 | CheckoutComPaymentRel$2 | ExternalPaymentRel$1 | KlarnaPaymentRel$2 | PaypalPaymentRel$1 | SatispayPaymentRel$2 | StripePaymentRel$1 | WireTransferRel$1 | null;
2282
2282
  }
2283
2283
  declare class CustomerPaymentSources extends ApiResource<CustomerPaymentSource> {
@@ -3957,7 +3957,7 @@ type DeliveryLeadTimeRel$1 = ResourceRel & {
3957
3957
  type StockLocationRel$6 = ResourceRel & {
3958
3958
  type: StockLocationType;
3959
3959
  };
3960
- type ShippingMethodRel$5 = ResourceRel & {
3960
+ type ShippingMethodRel$6 = ResourceRel & {
3961
3961
  type: ShippingMethodType;
3962
3962
  };
3963
3963
  type DeliveryLeadTimeSort = Pick<DeliveryLeadTime, 'id' | 'min_hours' | 'max_hours' | 'min_days'> & ResourceSort;
@@ -4000,7 +4000,7 @@ interface DeliveryLeadTimeCreate extends ResourceCreate {
4000
4000
  */
4001
4001
  max_hours: number;
4002
4002
  stock_location: StockLocationRel$6;
4003
- shipping_method: ShippingMethodRel$5;
4003
+ shipping_method: ShippingMethodRel$6;
4004
4004
  }
4005
4005
  interface DeliveryLeadTimeUpdate extends ResourceUpdate {
4006
4006
  /**
@@ -4014,7 +4014,7 @@ interface DeliveryLeadTimeUpdate extends ResourceUpdate {
4014
4014
  */
4015
4015
  max_hours?: number | null;
4016
4016
  stock_location?: StockLocationRel$6 | null;
4017
- shipping_method?: ShippingMethodRel$5 | null;
4017
+ shipping_method?: ShippingMethodRel$6 | null;
4018
4018
  }
4019
4019
  declare class DeliveryLeadTimes extends ApiResource<DeliveryLeadTime> {
4020
4020
  static readonly TYPE: DeliveryLeadTimeType;
@@ -4082,7 +4082,7 @@ type ShippingWeightTierType = 'shipping_weight_tiers';
4082
4082
  type ShippingWeightTierRel = ResourceRel & {
4083
4083
  type: ShippingWeightTierType;
4084
4084
  };
4085
- type ShippingMethodRel$4 = ResourceRel & {
4085
+ type ShippingMethodRel$5 = ResourceRel & {
4086
4086
  type: ShippingMethodType;
4087
4087
  };
4088
4088
  type ShippingWeightTierSort = Pick<ShippingWeightTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort;
@@ -4133,7 +4133,7 @@ interface ShippingWeightTierCreate extends ResourceCreate {
4133
4133
  * @example ```1000```
4134
4134
  */
4135
4135
  price_amount_cents: number;
4136
- shipping_method: ShippingMethodRel$4;
4136
+ shipping_method: ShippingMethodRel$5;
4137
4137
  }
4138
4138
  interface ShippingWeightTierUpdate extends ResourceUpdate {
4139
4139
  /**
@@ -4151,7 +4151,7 @@ interface ShippingWeightTierUpdate extends ResourceUpdate {
4151
4151
  * @example ```1000```
4152
4152
  */
4153
4153
  price_amount_cents?: number | null;
4154
- shipping_method?: ShippingMethodRel$4 | null;
4154
+ shipping_method?: ShippingMethodRel$5 | null;
4155
4155
  }
4156
4156
  declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
4157
4157
  static readonly TYPE: ShippingWeightTierType;
@@ -4168,7 +4168,7 @@ declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
4168
4168
  }
4169
4169
 
4170
4170
  type ShippingMethodType = 'shipping_methods';
4171
- type ShippingMethodRel$3 = ResourceRel & {
4171
+ type ShippingMethodRel$4 = ResourceRel & {
4172
4172
  type: ShippingMethodType;
4173
4173
  };
4174
4174
  type MarketRel$g = ResourceRel & {
@@ -4471,8 +4471,8 @@ declare class ShippingMethods extends ApiResource<ShippingMethod> {
4471
4471
  _enable(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
4472
4472
  _reset_circuit(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
4473
4473
  isShippingMethod(resource: any): resource is ShippingMethod;
4474
- relationship(id: string | ResourceId | null): ShippingMethodRel$3;
4475
- relationshipToMany(...ids: string[]): ShippingMethodRel$3[];
4474
+ relationship(id: string | ResourceId | null): ShippingMethodRel$4;
4475
+ relationshipToMany(...ids: string[]): ShippingMethodRel$4[];
4476
4476
  type(): ShippingMethodType;
4477
4477
  }
4478
4478
 
@@ -4486,7 +4486,7 @@ type OrderRel$9 = ResourceRel & {
4486
4486
  type LineItemRel$2 = ResourceRel & {
4487
4487
  type: LineItemType;
4488
4488
  };
4489
- type ShippingMethodRel$2 = ResourceRel & {
4489
+ type ShippingMethodRel$3 = ResourceRel & {
4490
4490
  type: ShippingMethodType;
4491
4491
  };
4492
4492
  type NotificationSort = Pick<Notification, 'id' | 'name' | 'flash'> & ResourceSort;
@@ -4523,7 +4523,7 @@ interface NotificationCreate extends ResourceCreate {
4523
4523
  * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}```
4524
4524
  */
4525
4525
  body?: Record<string, any> | null;
4526
- notifiable: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$2;
4526
+ notifiable: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$3;
4527
4527
  }
4528
4528
  interface NotificationUpdate extends ResourceUpdate {
4529
4529
  /**
@@ -4540,7 +4540,7 @@ interface NotificationUpdate extends ResourceUpdate {
4540
4540
  * @example ```{"sku":"REDHANDBAG","name":"Enjoy your free item"}```
4541
4541
  */
4542
4542
  body?: Record<string, any> | null;
4543
- notifiable?: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$2 | null;
4543
+ notifiable?: OrderRel$9 | LineItemRel$2 | ShippingMethodRel$3 | null;
4544
4544
  }
4545
4545
  declare class Notifications extends ApiResource<Notification> {
4546
4546
  static readonly TYPE: NotificationType;
@@ -8178,7 +8178,7 @@ type GiftCardRel$1 = ResourceRel & {
8178
8178
  type ShipmentRel$5 = ResourceRel & {
8179
8179
  type: ShipmentType;
8180
8180
  };
8181
- type PaymentMethodRel$2 = ResourceRel & {
8181
+ type PaymentMethodRel$3 = ResourceRel & {
8182
8182
  type: PaymentMethodType;
8183
8183
  };
8184
8184
  type AdjustmentRel$1 = ResourceRel & {
@@ -8461,7 +8461,7 @@ interface LineItemCreate extends ResourceCreate {
8461
8461
  */
8462
8462
  frequency?: string | null;
8463
8463
  order: OrderRel$7;
8464
- item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$5 | PaymentMethodRel$2 | AdjustmentRel$1 | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null;
8464
+ item?: SkuRel$8 | BundleRel$2 | GiftCardRel$1 | ShipmentRel$5 | PaymentMethodRel$3 | AdjustmentRel$1 | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null;
8465
8465
  tags?: TagRel$6[] | null;
8466
8466
  }
8467
8467
  interface LineItemUpdate extends ResourceUpdate {
@@ -9402,7 +9402,7 @@ type AddressRel$4 = ResourceRel & {
9402
9402
  type StoreRel = ResourceRel & {
9403
9403
  type: StoreType;
9404
9404
  };
9405
- type PaymentMethodRel$1 = ResourceRel & {
9405
+ type PaymentMethodRel$2 = ResourceRel & {
9406
9406
  type: PaymentMethodType;
9407
9407
  };
9408
9408
  type AdyenPaymentRel$1 = ResourceRel & {
@@ -9977,6 +9977,8 @@ interface Order extends Resource {
9977
9977
  shipping_address?: Address | null;
9978
9978
  billing_address?: Address | null;
9979
9979
  store?: Store | null;
9980
+ default_shipping_method?: ShippingMethod | null;
9981
+ default_payment_method?: PaymentMethod | null;
9980
9982
  available_payment_methods?: PaymentMethod[] | null;
9981
9983
  available_customer_payment_sources?: CustomerPaymentSource[] | null;
9982
9984
  available_free_skus?: Sku[] | null;
@@ -10109,7 +10111,7 @@ interface OrderCreate extends ResourceCreate {
10109
10111
  shipping_address?: AddressRel$4 | null;
10110
10112
  billing_address?: AddressRel$4 | null;
10111
10113
  store?: StoreRel | null;
10112
- payment_method?: PaymentMethodRel$1 | null;
10114
+ payment_method?: PaymentMethodRel$2 | null;
10113
10115
  payment_source?: AdyenPaymentRel$1 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null;
10114
10116
  tags?: TagRel$3[] | null;
10115
10117
  }
@@ -10367,7 +10369,7 @@ interface OrderUpdate extends ResourceUpdate {
10367
10369
  shipping_address?: AddressRel$4 | null;
10368
10370
  billing_address?: AddressRel$4 | null;
10369
10371
  store?: StoreRel | null;
10370
- payment_method?: PaymentMethodRel$1 | null;
10372
+ payment_method?: PaymentMethodRel$2 | null;
10371
10373
  payment_source?: AdyenPaymentRel$1 | AxervePaymentRel$1 | BraintreePaymentRel$1 | CheckoutComPaymentRel$1 | ExternalPaymentRel | KlarnaPaymentRel$1 | PaypalPaymentRel | SatispayPaymentRel$1 | StripePaymentRel | WireTransferRel | null;
10372
10374
  tags?: TagRel$3[] | null;
10373
10375
  }
@@ -10381,6 +10383,8 @@ declare class Orders extends ApiResource<Order> {
10381
10383
  shipping_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address>;
10382
10384
  billing_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address>;
10383
10385
  store(orderId: string | Order, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store>;
10386
+ default_shipping_method(orderId: string | Order, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
10387
+ default_payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
10384
10388
  available_payment_methods(orderId: string | Order, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
10385
10389
  available_customer_payment_sources(orderId: string | Order, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
10386
10390
  available_free_skus(orderId: string | Order, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
@@ -11169,7 +11173,7 @@ type InventoryStockLocationRel = ResourceRel & {
11169
11173
  type AddressRel$3 = ResourceRel & {
11170
11174
  type: AddressType;
11171
11175
  };
11172
- type ShippingMethodRel$1 = ResourceRel & {
11176
+ type ShippingMethodRel$2 = ResourceRel & {
11173
11177
  type: ShippingMethodType;
11174
11178
  };
11175
11179
  type TagRel$2 = ResourceRel & {
@@ -11313,7 +11317,7 @@ interface ShipmentCreate extends ResourceCreate {
11313
11317
  shipping_category?: ShippingCategoryRel$2 | null;
11314
11318
  inventory_stock_location: InventoryStockLocationRel;
11315
11319
  shipping_address?: AddressRel$3 | null;
11316
- shipping_method?: ShippingMethodRel$1 | null;
11320
+ shipping_method?: ShippingMethodRel$2 | null;
11317
11321
  tags?: TagRel$2[] | null;
11318
11322
  }
11319
11323
  interface ShipmentUpdate extends ResourceUpdate {
@@ -11395,7 +11399,7 @@ interface ShipmentUpdate extends ResourceUpdate {
11395
11399
  shipping_category?: ShippingCategoryRel$2 | null;
11396
11400
  inventory_stock_location?: InventoryStockLocationRel | null;
11397
11401
  shipping_address?: AddressRel$3 | null;
11398
- shipping_method?: ShippingMethodRel$1 | null;
11402
+ shipping_method?: ShippingMethodRel$2 | null;
11399
11403
  tags?: TagRel$2[] | null;
11400
11404
  }
11401
11405
  declare class Shipments extends ApiResource<Shipment> {
@@ -13694,7 +13698,7 @@ type GeocoderRel$3 = ResourceRel & {
13694
13698
  type PriceListRel$1 = ResourceRel & {
13695
13699
  type: PriceListType;
13696
13700
  };
13697
- type PaymentMethodRel = ResourceRel & {
13701
+ type PaymentMethodRel$1 = ResourceRel & {
13698
13702
  type: PaymentMethodType;
13699
13703
  };
13700
13704
  type MarketRel$2 = ResourceRel & {
@@ -13751,7 +13755,7 @@ type CustomerRel$1 = ResourceRel & {
13751
13755
  type DeliveryLeadTimeRel = ResourceRel & {
13752
13756
  type: DeliveryLeadTimeType;
13753
13757
  };
13754
- type ShippingMethodRel = ResourceRel & {
13758
+ type ShippingMethodRel$1 = ResourceRel & {
13755
13759
  type: ShippingMethodType;
13756
13760
  };
13757
13761
  type DiscountEngineRel = ResourceRel & {
@@ -13838,7 +13842,7 @@ interface AttachmentCreate extends ResourceCreate {
13838
13842
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
13839
13843
  */
13840
13844
  url?: string | null;
13841
- attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
13845
+ attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
13842
13846
  }
13843
13847
  interface AttachmentUpdate extends ResourceUpdate {
13844
13848
  /**
@@ -13856,7 +13860,7 @@ interface AttachmentUpdate extends ResourceUpdate {
13856
13860
  * @example ```"https://s3.yourdomain.com/attachment.pdf"```
13857
13861
  */
13858
13862
  url?: string | null;
13859
- attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
13863
+ attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
13860
13864
  }
13861
13865
  declare class Attachments extends ApiResource<Attachment> {
13862
13866
  static readonly TYPE: AttachmentType;
@@ -13958,6 +13962,12 @@ type CustomerGroupRel = ResourceRel & {
13958
13962
  type GeocoderRel$2 = ResourceRel & {
13959
13963
  type: GeocoderType;
13960
13964
  };
13965
+ type ShippingMethodRel = ResourceRel & {
13966
+ type: ShippingMethodType;
13967
+ };
13968
+ type PaymentMethodRel = ResourceRel & {
13969
+ type: PaymentMethodType;
13970
+ };
13961
13971
  type MarketSort = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceSort;
13962
13972
  interface Market extends Resource {
13963
13973
  readonly type: MarketType;
@@ -14024,6 +14034,8 @@ interface Market extends Resource {
14024
14034
  tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
14025
14035
  customer_group?: CustomerGroup | null;
14026
14036
  geocoder?: Geocoder | null;
14037
+ default_shipping_method?: ShippingMethod | null;
14038
+ default_payment_method?: PaymentMethod | null;
14027
14039
  stores?: Store[] | null;
14028
14040
  price_list_schedulers?: PriceListScheduler[] | null;
14029
14041
  attachments?: Attachment[] | null;
@@ -14082,6 +14094,8 @@ interface MarketCreate extends ResourceCreate {
14082
14094
  tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
14083
14095
  customer_group?: CustomerGroupRel | null;
14084
14096
  geocoder?: GeocoderRel$2 | null;
14097
+ default_shipping_method?: ShippingMethodRel | null;
14098
+ default_payment_method?: PaymentMethodRel | null;
14085
14099
  }
14086
14100
  interface MarketUpdate extends ResourceUpdate {
14087
14101
  /**
@@ -14136,6 +14150,8 @@ interface MarketUpdate extends ResourceUpdate {
14136
14150
  tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
14137
14151
  customer_group?: CustomerGroupRel | null;
14138
14152
  geocoder?: GeocoderRel$2 | null;
14153
+ default_shipping_method?: ShippingMethodRel | null;
14154
+ default_payment_method?: PaymentMethodRel | null;
14139
14155
  }
14140
14156
  declare class Markets extends ApiResource<Market> {
14141
14157
  static readonly TYPE: MarketType;
@@ -14150,6 +14166,8 @@ declare class Markets extends ApiResource<Market> {
14150
14166
  tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
14151
14167
  customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
14152
14168
  geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
14169
+ default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
14170
+ default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
14153
14171
  stores(marketId: string | Market, params?: QueryParamsList<Store>, options?: ResourcesConfig): Promise<ListResponse<Store>>;
14154
14172
  price_list_schedulers(marketId: string | Market, params?: QueryParamsList<PriceListScheduler>, options?: ResourcesConfig): Promise<ListResponse<PriceListScheduler>>;
14155
14173
  attachments(marketId: string | Market, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
@@ -16894,7 +16912,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
16894
16912
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
16895
16913
  declare class CommerceLayerClient {
16896
16914
  #private;
16897
- readonly openApiSchemaVersion = "7.8.0";
16915
+ readonly openApiSchemaVersion = "7.8.1";
16898
16916
  constructor(config: CommerceLayerInitConfig);
16899
16917
  get addresses(): Addresses;
16900
16918
  get adjustments(): Adjustments;