Skip to content

Commit

Permalink
updated order
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Dec 13, 2024
1 parent 67550af commit 0447fc5
Show file tree
Hide file tree
Showing 19 changed files with 59 additions and 287 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,95 +12,5 @@
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
*******************************************************************/
export declare const confirmCancelOrder: (orderId: string, confirmationKey: string) => Promise<{
subtotalExclTax: any;
subtotalInclTax: any;
billingAddress: {
city: any;
company: any;
countryCode: any;
fax: any;
firstName: any;
lastName: any;
middleName: any;
postCode: any;
prefix: any;
region: any;
regionId: any;
street: any;
suffix: any;
telephone: any;
vatId: any;
};
shippingAddress: {
city: any;
company: any;
countryCode: any;
fax: any;
firstName: any;
lastName: any;
middleName: any;
postCode: any;
prefix: any;
region: any;
regionId: any;
street: any;
suffix: any;
telephone: any;
vatId: any;
};
shipments: {
items: {
id: string;
productName: string;
productSku: string;
quantityShipped: number;
orderItem: import('../../data/models').OrderItemModel;
}[];
id: string;
number: string;
tracking: {
carrier: string;
number: string;
title: string;
}[];
comments: {
message: string;
timestamp: string;
}[];
}[];
items: import('../../data/models').OrderItemModel[];
returns: import('../../data/models').OrdersReturnPropsModel[];
itemsEligibleForReturn: import('../../data/models').OrderItemModel[];
totalQuantity: number;
shippingMethod: string;
shipping: {
amount: any;
currency: any;
code: string;
};
payments: {
code: string;
name: string;
}[];
grandTotal: any;
totalGiftcard: any;
taxes: any;
totalTax: any;
totalShipping: any;
discounts: any;
token: string;
email: string;
status: string;
number: string;
id: string;
carrier: string;
coupons: {
code: string;
}[];
orderDate: string;
isVirtual: boolean;
availableActions: import('../../types/index').AvailableActionsProps[];
orderStatusChangeDate: string;
} | null>;
export declare const confirmCancelOrder: (orderId: string, confirmationKey: string) => Promise<any>;
//# sourceMappingURL=confirmCancelOrder.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import { OrderDataModel } from '../../data/models';

export declare const confirmGuestReturn: (orderId: string, confirmationKey: string) => Promise<OrderDataModel | null>;
export declare const confirmGuestReturn: (orderId: string, confirmationKey: string) => Promise<void>;
//# sourceMappingURL=confirmGuestReturn.d.ts.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConfigProps } from '../initialize';
import { OrderDataModel } from '../../data/models';

export declare const initializeOrderDetails: (config: ConfigProps) => Promise<void>;
export declare const initializeOrderDetails: (config: Record<string, string | OrderDataModel | null> | undefined) => Promise<void>;
//# sourceMappingURL=initializeOrderDetails.d.ts.map
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ import { Initializer, Model } from '@dropins/tools/types/elsie/src/lib';
import { Lang } from '@dropins/tools/types/elsie/src/i18n';
import { CustomerOrdersReturnModel, OrderDataModel, RequestReturnModel } from '../../data/models';

export type ConfigProps = {
type ConfigProps = {
langDefinitions?: Lang;
models?: {
OrderDataModel?: Model<OrderDataModel>;
CustomerOrdersReturnModel?: Model<CustomerOrdersReturnModel>;
RequestReturnModel?: Model<RequestReturnModel>;
};
orderRef?: string;
returnRef?: string;
orderData?: OrderDataModel;
};
export declare const initialize: Initializer<ConfigProps>;
export declare const config: import('@dropins/tools/types/elsie/src/lib').Config<ConfigProps>;
export {};
//# sourceMappingURL=initialize.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0447fc5

Please sign in to comment.