b23-lib 3.5.0 → 3.5.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/Classes/Address.d.mts +1 -1
- package/dist/Classes/Address.d.ts +1 -1
- package/dist/Classes/Base.d.mts +1 -1
- package/dist/Classes/Base.d.ts +1 -1
- package/dist/Classes/Cart.d.mts +1 -1
- package/dist/Classes/Cart.d.ts +1 -1
- package/dist/Classes/Cart.js.map +1 -1
- package/dist/Classes/Cart.mjs +1 -1
- package/dist/Classes/Charge.d.mts +1 -1
- package/dist/Classes/Charge.d.ts +1 -1
- package/dist/Classes/Common.d.mts +1 -1
- package/dist/Classes/Common.d.ts +1 -1
- package/dist/Classes/Coupon.d.mts +1 -1
- package/dist/Classes/Coupon.d.ts +1 -1
- package/dist/Classes/Coupon.js.map +1 -1
- package/dist/Classes/Coupon.mjs +1 -1
- package/dist/Classes/Customer.d.mts +4 -4
- package/dist/Classes/Customer.d.ts +4 -4
- package/dist/Classes/Customer.js +1 -1
- package/dist/Classes/Customer.js.map +1 -1
- package/dist/Classes/Customer.mjs.map +1 -1
- package/dist/Classes/CustomerAddress.d.mts +1 -1
- package/dist/Classes/CustomerAddress.d.ts +1 -1
- package/dist/Classes/Inventory.d.mts +1 -1
- package/dist/Classes/Inventory.d.ts +1 -1
- package/dist/Classes/Invoice.d.mts +1 -1
- package/dist/Classes/Invoice.d.ts +1 -1
- package/dist/Classes/LineItem.d.mts +1 -1
- package/dist/Classes/LineItem.d.ts +1 -1
- package/dist/Classes/Order.d.mts +1 -1
- package/dist/Classes/Order.d.ts +1 -1
- package/dist/Classes/Order.js.map +1 -1
- package/dist/Classes/Order.mjs +1 -1
- package/dist/Classes/Payment.d.mts +1 -1
- package/dist/Classes/Payment.d.ts +1 -1
- package/dist/Classes/Price.d.mts +1 -1
- package/dist/Classes/Price.d.ts +1 -1
- package/dist/Classes/Product.d.mts +1 -1
- package/dist/Classes/Product.d.ts +1 -1
- package/dist/Classes/ShoppingContainer.d.mts +1 -1
- package/dist/Classes/ShoppingContainer.d.ts +1 -1
- package/dist/Classes/ShoppingContainer.js.map +1 -1
- package/dist/Classes/ShoppingContainer.mjs +1 -1
- package/dist/Classes/TaxRule.d.mts +1 -1
- package/dist/Classes/TaxRule.d.ts +1 -1
- package/dist/Classes/TieredPrice.d.mts +1 -1
- package/dist/Classes/TieredPrice.d.ts +1 -1
- package/dist/{Common-Du2s_43h.d.mts → Common-CJ_dZU3n.d.mts} +6 -1
- package/dist/{Common-BsfeCt6G.d.ts → Common-D01ijYt3.d.ts} +6 -1
- package/dist/{chunk-ZZ4LIKSD.mjs → chunk-G4AM63RT.mjs} +2 -2
- package/dist/{chunk-ZZ4LIKSD.mjs.map → chunk-G4AM63RT.mjs.map} +1 -1
- package/dist/{chunk-JYCGENPD.mjs → chunk-O6EVIZAP.mjs} +2 -2
- package/dist/{chunk-JYCGENPD.mjs.map → chunk-O6EVIZAP.mjs.map} +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Classes/Order.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1}from'../chunk-
|
|
1
|
+
import {a as a$1}from'../chunk-O6EVIZAP.mjs';import'../chunk-VEOX3TRL.mjs';import'../chunk-G4AM63RT.mjs';import {b}from'../chunk-HX32EJ3F.mjs';import'../chunk-XTF6ND33.mjs';import'../chunk-ZODPRQKQ.mjs';import'../chunk-4G7JC2EH.mjs';import'../chunk-S6LR7AUZ.mjs';import'../chunk-2B2XI6FG.mjs';import'../chunk-6ZKMKSAG.mjs';import'../chunk-TPIIACE7.mjs';import {a as a$2}from'../chunk-R5DM7WCD.mjs';import'../chunk-UXZBULDS.mjs';var a=(s=>(s.PLACED="PLACED",s.PENDING_PAYMENT="PENDING_PAYMENT",s.PROCESSING="PROCESSING",s.CANCELLED="CANCELLED",s.COMPLETED="COMPLETED",s))(a||{}),i=class extends a$1{orderNumber;cartId;paymentStatus;holdReason;state;shippingAddress;billingAddress;constructor(t,e=new Date){super(t,e,{checkCouponExpiry:!1}),this.orderNumber=t.orderNumber,this.cartId=t.cartId,this.paymentStatus=t.paymentStatus,this.holdReason=t.holdReason||"",this.state=t.state,this.shippingAddress=new b(t.shippingAddress,e),this.billingAddress=new b(t.billingAddress,e);}getCustomerId(){return this.customerId}getCustomerEmail(){return this.customerEmail}getShippingAddress(){return this.shippingAddress}getBillingAddress(){return this.billingAddress}getOrderNumber(){return this.orderNumber}getCartId(){return this.cartId}getPaymentStatus(){return this.paymentStatus}getHoldReason(){return this.holdReason}getState(){return this.state}getLineItemState(t){let e=this.getLineItems().find(d=>d.getId()===t);if(!e)throw new a$2(t);return e.getState()}getDetails(){return {...super.getDetails(),orderNumber:this.getOrderNumber(),customerId:this.getCustomerId(),customerEmail:this.getCustomerEmail(),shippingAddress:this.getShippingAddress().getDetails(),billingAddress:this.getBillingAddress().getDetails(),cartId:this.getCartId(),paymentStatus:this.getPaymentStatus(),holdReason:this.getHoldReason(),state:this.getState()}}};export{a as OrderState,i as default};//# sourceMappingURL=Order.mjs.map
|
|
2
2
|
//# sourceMappingURL=Order.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes, BaseData } from './Base.mjs';
|
|
2
|
-
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-
|
|
2
|
+
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-CJ_dZU3n.mjs';
|
|
3
3
|
import '../Auth/index.mjs';
|
|
4
4
|
import './Enum.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes, BaseData } from './Base.js';
|
|
2
|
-
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-
|
|
2
|
+
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-D01ijYt3.js';
|
|
3
3
|
import '../Auth/index.js';
|
|
4
4
|
import './Enum.js';
|
|
5
5
|
|
package/dist/Classes/Price.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-
|
|
1
|
+
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-CJ_dZU3n.mjs';
|
|
2
2
|
import './Enum.mjs';
|
package/dist/Classes/Price.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-
|
|
1
|
+
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-D01ijYt3.js';
|
|
2
2
|
import './Enum.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes } from './Base.mjs';
|
|
2
|
-
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-
|
|
2
|
+
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-CJ_dZU3n.mjs';
|
|
3
3
|
import { GenderCategory, ImageCategory } from './Enum.mjs';
|
|
4
4
|
import ImageInfoModel, { ImageInfoData } from './ImageInfo.mjs';
|
|
5
5
|
import { TieredPriceAttributes, TieredPriceModel } from './TieredPrice.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes } from './Base.js';
|
|
2
|
-
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-
|
|
2
|
+
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-D01ijYt3.js';
|
|
3
3
|
import { GenderCategory, ImageCategory } from './Enum.js';
|
|
4
4
|
import ImageInfoModel, { ImageInfoData } from './ImageInfo.js';
|
|
5
5
|
import { TieredPriceAttributes, TieredPriceModel } from './TieredPrice.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes, BaseData } from './Base.mjs';
|
|
2
2
|
import AddressModel, { AddressData } from './Address.mjs';
|
|
3
3
|
import LineItemModel, { LineItemData } from './LineItem.mjs';
|
|
4
|
-
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-
|
|
4
|
+
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-CJ_dZU3n.mjs';
|
|
5
5
|
import CouponModel, { CouponData } from './Coupon.mjs';
|
|
6
6
|
import { TaxSystem } from './Enum.mjs';
|
|
7
7
|
import ChargeModel, { ChargeData } from './Charge.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes, BaseData } from './Base.js';
|
|
2
2
|
import AddressModel, { AddressData } from './Address.js';
|
|
3
3
|
import LineItemModel, { LineItemData } from './LineItem.js';
|
|
4
|
-
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-
|
|
4
|
+
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-D01ijYt3.js';
|
|
5
5
|
import CouponModel, { CouponData } from './Coupon.js';
|
|
6
6
|
import { TaxSystem } from './Enum.js';
|
|
7
7
|
import ChargeModel, { ChargeData } from './Charge.js';
|