b23-lib 3.1.4 → 3.2.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/Charge.js.map +1 -1
- package/dist/Classes/Charge.mjs +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/Customer.d.mts +1 -1
- package/dist/Classes/Customer.d.ts +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 +140 -0
- package/dist/Classes/Invoice.d.ts +140 -0
- package/dist/Classes/Invoice.js +2 -0
- package/dist/Classes/Invoice.js.map +1 -0
- package/dist/Classes/Invoice.mjs +2 -0
- package/dist/Classes/Invoice.mjs.map +1 -0
- package/dist/Classes/LineItem.d.mts +1 -1
- package/dist/Classes/LineItem.d.ts +1 -1
- package/dist/Classes/LineItem.js.map +1 -1
- package/dist/Classes/LineItem.mjs +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/TaxRule.js.map +1 -1
- package/dist/Classes/TaxRule.mjs +1 -1
- package/dist/Classes/TieredPrice.d.mts +1 -1
- package/dist/Classes/TieredPrice.d.ts +1 -1
- package/dist/{Common-Cq0_dPyJ.d.ts → Common-BPgGKaZC.d.ts} +1 -1
- package/dist/{Common-C4Fl1Axr.d.mts → Common-DY253_Gs.d.mts} +1 -1
- package/dist/{chunk-DYBLLXII.mjs → chunk-5IRYC2KY.mjs} +2 -2
- package/dist/{chunk-DYBLLXII.mjs.map → chunk-5IRYC2KY.mjs.map} +1 -1
- package/dist/{chunk-6BROF5JI.mjs → chunk-MJGCYQ53.mjs} +2 -2
- package/dist/{chunk-6BROF5JI.mjs.map → chunk-MJGCYQ53.mjs.map} +1 -1
- package/dist/{chunk-X27KEKNB.mjs → chunk-SOZHGHMY.mjs} +2 -2
- package/dist/chunk-SOZHGHMY.mjs.map +1 -0
- package/dist/{chunk-WTA42ELE.mjs → chunk-XJPFHEW3.mjs} +2 -2
- package/dist/{chunk-WTA42ELE.mjs.map → chunk-XJPFHEW3.mjs.map} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +11 -1
- package/dist/chunk-X27KEKNB.mjs.map +0 -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-MJGCYQ53.mjs';import'../chunk-5IRYC2KY.mjs';import {b}from'../chunk-HX32EJ3F.mjs';import'../chunk-XJPFHEW3.mjs';import'../chunk-SOZHGHMY.mjs';import'../chunk-PWWKQNF7.mjs';import'../chunk-QGIQ3MH6.mjs';import'../chunk-FCRJAAPY.mjs';import'../chunk-LI5JQ6UC.mjs';import'../chunk-QK4XJ3GB.mjs';import'../chunk-2B2XI6FG.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),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(o=>o.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 {
|
|
2
|
+
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-DY253_Gs.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 {
|
|
2
|
+
import { c as CurrencyCode, I as ISODateTimeUTC } from '../Common-BPgGKaZC.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,
|
|
1
|
+
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-DY253_Gs.mjs';
|
|
2
2
|
import './Enum.mjs';
|
package/dist/Classes/Price.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { g as PriceAttributes,
|
|
1
|
+
export { g as PriceAttributes, P as PriceData, a as default } from '../Common-BPgGKaZC.js';
|
|
2
2
|
import './Enum.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseModel, { BaseAttributes } from './Base.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-DY253_Gs.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 {
|
|
2
|
+
import { b as Prettify, f as Color, d as LocalizedString, C as CountryCode, e as LocalizedValue, L as LocaleCode } from '../Common-BPgGKaZC.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 {
|
|
4
|
+
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-DY253_Gs.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 {
|
|
4
|
+
import { P as PriceData, a as PriceModel, S as ShippingDetails, C as CountryCode, c as CurrencyCode, L as LocaleCode } from '../Common-BPgGKaZC.js';
|
|
5
5
|
import CouponModel, { CouponData } from './Coupon.js';
|
|
6
6
|
import { TaxSystem } from './Enum.js';
|
|
7
7
|
import ChargeModel, { ChargeData } from './Charge.js';
|