@lmnto/h-mall-shared 1.0.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/app.css +457 -0
- package/bitbucket-pipelines.yml +223 -0
- package/package.json +43 -0
- package/public/gif/balloon.gif +0 -0
- package/public/gif/gift.gif +0 -0
- package/public/img/ai-dialog.png +0 -0
- package/public/img/ai-x1-banner.png +0 -0
- package/public/img/ai-x1.png +0 -0
- package/public/img/alert-Icon.png +0 -0
- package/public/img/aleta-payment-kyc-require.png +0 -0
- package/public/img/aleta-payment-pending.png +0 -0
- package/public/img/aleta-payment-rejected.png +0 -0
- package/public/img/aleta-payment-subscription-required.png +0 -0
- package/public/img/boost-banner-bg.png +0 -0
- package/public/img/boost-banner-right.png +0 -0
- package/public/img/boost-banner.png +0 -0
- package/public/img/boost-dialog-bg.png +0 -0
- package/public/img/boostPower.png +0 -0
- package/public/img/boostTooltip.png +0 -0
- package/public/img/brand-icon.svg +23 -0
- package/public/img/brand-text.svg +11 -0
- package/public/img/card-icon.png +0 -0
- package/public/img/cashback-Icon.png +0 -0
- package/public/img/crown.svg +9 -0
- package/public/img/empty-box.png +0 -0
- package/public/img/gen3-dialog.png +0 -0
- package/public/img/gen3-home-banner-bg.png +0 -0
- package/public/img/gen3-image.png +0 -0
- package/public/img/gift.png +0 -0
- package/public/img/img-placeholder-illustration.svg +6 -0
- package/public/img/logo.svg +31 -0
- package/public/img/offerBanner.png +0 -0
- package/public/img/pagenotfound.png +0 -0
- package/public/img/partial-pay-payment-successful.png +0 -0
- package/public/img/phoneShippingBG.png +0 -0
- package/public/img/placeholder-image.jpg +0 -0
- package/public/img/powerIcon.png +0 -0
- package/public/img/product-01.png +0 -0
- package/public/img/product-02.jpg +0 -0
- package/public/img/product-03.jpg +0 -0
- package/public/img/product-04.jpg +0 -0
- package/public/img/product-05.png +0 -0
- package/public/img/product-06.png +0 -0
- package/public/img/profile-avatar.svg +12 -0
- package/public/img/promotion-icon.png +0 -0
- package/public/img/session-expired.png +0 -0
- package/public/img/shipping-alert-icon.png +0 -0
- package/public/img/shippingIcon.png +0 -0
- package/public/img/smart-pay-banner-how.png +0 -0
- package/public/img/smart-pay-banner-own.png +0 -0
- package/public/img/smart-pay-chose.png +0 -0
- package/public/img/smart-pay-easy.png +0 -0
- package/public/img/smart-pay-payment.png +0 -0
- package/public/img/smart-plan-fire.gif +0 -0
- package/public/img/smart-plan-sparkle.gif +0 -0
- package/public/img/special.png +0 -0
- package/public/img/specialOfferBg.png +0 -0
- package/public/img/stop-shipping-banner.png +0 -0
- package/public/img/subscriptionBanner.png +0 -0
- package/public/img/subscriptionIcon.png +0 -0
- package/public/img/successIcon.png +0 -0
- package/public/img/wallet-icon.png +0 -0
- package/public/img/world-wide-shipping.png +0 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/shared/components/AddressFormComponent.tsx +215 -0
- package/shared/components/AddressShippingFormComponent.tsx +223 -0
- package/shared/components/AiPaymentDialog.tsx +95 -0
- package/shared/components/AppLoadingComponent.tsx +15 -0
- package/shared/components/AppLoadingComponentV2.tsx +18 -0
- package/shared/components/Button.tsx +48 -0
- package/shared/components/BuySubscriptionDialog.tsx +75 -0
- package/shared/components/CartDrawerComponent.tsx +324 -0
- package/shared/components/CashbackComponent.tsx +48 -0
- package/shared/components/CashbackMigrationComponent.tsx +41 -0
- package/shared/components/CommissionNonEligibleComponent.tsx +27 -0
- package/shared/components/CustomNextImage.tsx +50 -0
- package/shared/components/CustomNextLink.tsx +46 -0
- package/shared/components/EditAddressFormComponent.tsx +254 -0
- package/shared/components/EmptyCartMessageComponent.tsx +25 -0
- package/shared/components/EmptyCartMessageForCartPage.tsx +61 -0
- package/shared/components/EmptyLegacyOrderMessageForOrdersPage.tsx +52 -0
- package/shared/components/EmptyOrderMessageForOrdersPage.tsx +62 -0
- package/shared/components/EmptyOrderMessageForShippingOrdersPage.tsx +62 -0
- package/shared/components/Footer.tsx +71 -0
- package/shared/components/GreetingDialog.tsx +96 -0
- package/shared/components/Header.tsx +106 -0
- package/shared/components/HoldShippingDialog.tsx +165 -0
- package/shared/components/HomeBanners.tsx +298 -0
- package/shared/components/InactiveCartDialog.tsx +69 -0
- package/shared/components/InputCartQuantity.tsx +342 -0
- package/shared/components/Inputfield.tsx +110 -0
- package/shared/components/ListItemComponent.tsx +82 -0
- package/shared/components/LoadingIconComponent.tsx +284 -0
- package/shared/components/OrderNotFoundComponent.tsx +56 -0
- package/shared/components/PageHeader.tsx +42 -0
- package/shared/components/PhoneNumberCountries.tsx +133 -0
- package/shared/components/PhoneShippingDialog.tsx +77 -0
- package/shared/components/PickupDialog.tsx +92 -0
- package/shared/components/ProductNotFoundComponent.tsx +56 -0
- package/shared/components/ProductPriceComponent.tsx +32 -0
- package/shared/components/ProfileMenu.tsx +120 -0
- package/shared/components/RequestCreditNoteInvoiceDialog.tsx +214 -0
- package/shared/components/RequestInvoiceDialog.tsx +194 -0
- package/shared/components/SelectCities.tsx +133 -0
- package/shared/components/SelectComponent.tsx +334 -0
- package/shared/components/SelectCountries.tsx +179 -0
- package/shared/components/SelectPickUpStore.tsx +131 -0
- package/shared/components/SelectStates.tsx +144 -0
- package/shared/components/ServerTime.tsx +68 -0
- package/shared/components/SessionDialogComponent.tsx +60 -0
- package/shared/components/ShippingAddressFormDialogComponent.tsx +51 -0
- package/shared/components/Sidebar.tsx +281 -0
- package/shared/components/SpecialOfferDialog.tsx +193 -0
- package/shared/components/StatusComponents.tsx +25 -0
- package/shared/components/StepperComponent.tsx +79 -0
- package/shared/components/StepperSmartPayComponent.tsx +97 -0
- package/shared/components/SubscriptionPurchaseDialogComponent.tsx +81 -0
- package/shared/components/TableComponent.tsx +144 -0
- package/shared/components/TablePaginationComponent.tsx +151 -0
- package/shared/components/aleta/AletaManagerComponent.tsx +52 -0
- package/shared/components/aleta/KycPendingStatus.tsx +33 -0
- package/shared/components/aleta/KycRejectedStatus.tsx +53 -0
- package/shared/components/aleta/KycRequiredStatus.tsx +53 -0
- package/shared/components/aleta/SubscriptionRequiredStatus.tsx +45 -0
- package/shared/components/icons/AletaWalletIcon.tsx +21 -0
- package/shared/components/icons/BrandIcon.tsx +97 -0
- package/shared/components/icons/BrandText.tsx +47 -0
- package/shared/components/icons/CartIcon.tsx +21 -0
- package/shared/components/icons/DoneIcon.tsx +27 -0
- package/shared/components/icons/HomnifiIcon.tsx +23 -0
- package/shared/components/icons/InfoIcon.tsx +16 -0
- package/shared/components/icons/SmartPayProductIcon.tsx +31 -0
- package/shared/components/payments/DisclaimerAlertDialog.tsx +205 -0
- package/shared/components/payments/EmptyAssets.tsx +23 -0
- package/shared/components/payments/PaybyWalletItemComponent.tsx +116 -0
- package/shared/components/payments/PaymentAssetItemComponent.tsx +101 -0
- package/shared/components/payments/RequestProcessingDialog.tsx +123 -0
- package/shared/components/payments/WalletSectionManager.tsx +82 -0
- package/shared/components/payments/WalletSliderComponent.tsx +326 -0
- package/shared/components/payments/WalletTermsAndConditionComponent.tsx +88 -0
- package/shared/constants/address-shipping.schema.ts +56 -0
- package/shared/constants/address.schema.ts +56 -0
- package/shared/constants/app.ts +323 -0
- package/shared/constants/environment.ts +23 -0
- package/shared/constants/feature-flags.ts +15 -0
- package/shared/constants/query-keys.ts +106 -0
- package/shared/constants/routes.ts +41 -0
- package/shared/constants/socket.ts +15 -0
- package/shared/contexts/HomeProductsContext.tsx +51 -0
- package/shared/contexts/MainWrapperContext.tsx +289 -0
- package/shared/contexts/WebSocketContext.tsx +155 -0
- package/shared/hooks/useAddressForm.ts +169 -0
- package/shared/hooks/useAddresses.ts +28 -0
- package/shared/hooks/useAppForm.ts +39 -0
- package/shared/hooks/useCart.ts +207 -0
- package/shared/hooks/useCopy.ts +45 -0
- package/shared/hooks/useCountries.ts +27 -0
- package/shared/hooks/useCustomRouter.ts +51 -0
- package/shared/hooks/useDebounce.ts +21 -0
- package/shared/hooks/useInvoice.ts +41 -0
- package/shared/hooks/useOnlineUser.ts +38 -0
- package/shared/hooks/usePayments.ts +101 -0
- package/shared/hooks/useShippingAddressForm.ts +70 -0
- package/shared/hooks/useShippingAddresses.ts +33 -0
- package/shared/hooks/useStores.ts +29 -0
- package/shared/hooks/useUserActivity.ts +43 -0
- package/shared/i18n/client.ts +27 -0
- package/shared/i18n/locales/en.ts +383 -0
- package/shared/i18n/locales/it.ts +373 -0
- package/shared/i18n/server.ts +7 -0
- package/shared/services/addresses.service.ts +27 -0
- package/shared/services/api/core/ApiError.ts +29 -0
- package/shared/services/api/core/ApiRequestOptions.ts +25 -0
- package/shared/services/api/core/ApiResult.ts +11 -0
- package/shared/services/api/core/CancelablePromise.ts +130 -0
- package/shared/services/api/core/OpenAPI.ts +37 -0
- package/shared/services/api/core/request.ts +376 -0
- package/shared/services/api/index.ts +64 -0
- package/shared/services/api/models/AddAllProductToShippingCartDto.ts +7 -0
- package/shared/services/api/models/AddProductToCartDto.ts +8 -0
- package/shared/services/api/models/AddProductToShippingCartDto.ts +8 -0
- package/shared/services/api/models/AdminPlaceOrderDto.ts +16 -0
- package/shared/services/api/models/AssignPickupSerialNumberDto.ts +10 -0
- package/shared/services/api/models/CreateUserAddressDto.ts +19 -0
- package/shared/services/api/models/DeletCartProductsArrayDto.ts +7 -0
- package/shared/services/api/models/GenerateInvoiceDto.ts +7 -0
- package/shared/services/api/models/OrderConfirmationEmailDto.ts +8 -0
- package/shared/services/api/models/PlaceOrderDto.ts +9 -0
- package/shared/services/api/models/PlaceShipmentOrderDto.ts +8 -0
- package/shared/services/api/models/ProductBoostDto.ts +18 -0
- package/shared/services/api/models/RemoveAssignedSerialNumberDto.ts +9 -0
- package/shared/services/api/models/RemoveProductToCartDto.ts +8 -0
- package/shared/services/api/models/ShipmentItem.ts +8 -0
- package/shared/services/api/models/ShippingCartUpdateBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/ShippingCartUpdateShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UnfreezeWalletDto.ts +8 -0
- package/shared/services/api/models/UpdateCartBillingAddressesDto.ts +7 -0
- package/shared/services/api/models/UpdateCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateCartShippingMethodDto.ts +7 -0
- package/shared/services/api/models/UpdateCartStoreDto.ts +7 -0
- package/shared/services/api/models/UpdateProductDto.ts +11 -0
- package/shared/services/api/models/UpdateShipmentItemStatusDto.ts +24 -0
- package/shared/services/api/models/UpdateShippingCartPaymentMethodDto.ts +9 -0
- package/shared/services/api/models/UpdateUserAddressDto.ts +19 -0
- package/shared/services/api/models/ValidateAuthCodeDto.ts +8 -0
- package/shared/services/api/models/WithdrawOrderWalletDto.ts +8 -0
- package/shared/services/api/services/AddressesService.ts +160 -0
- package/shared/services/api/services/AdminsDevicesService.ts +28 -0
- package/shared/services/api/services/AdminsOrdersService.ts +117 -0
- package/shared/services/api/services/AdminsPickupsService.ts +57 -0
- package/shared/services/api/services/AdminsProductsService.ts +86 -0
- package/shared/services/api/services/CartsService.ts +190 -0
- package/shared/services/api/services/CashBackQueueService.ts +39 -0
- package/shared/services/api/services/CategoriesService.ts +65 -0
- package/shared/services/api/services/DefaultService.ts +19 -0
- package/shared/services/api/services/FeaturesFlagsService.ts +20 -0
- package/shared/services/api/services/IossQueueService.ts +39 -0
- package/shared/services/api/services/OrderCallbackService.ts +67 -0
- package/shared/services/api/services/OrderEmailsService.ts +40 -0
- package/shared/services/api/services/OrderImportService.ts +228 -0
- package/shared/services/api/services/OrdersService.ts +183 -0
- package/shared/services/api/services/PaymentGatewayService.ts +19 -0
- package/shared/services/api/services/PaymentsService.ts +88 -0
- package/shared/services/api/services/ProductsService.ts +67 -0
- package/shared/services/api/services/ShipmentOrderCallbackService.ts +67 -0
- package/shared/services/api/services/ShipmentOrdersService.ts +88 -0
- package/shared/services/api/services/ShipmentsService.ts +30 -0
- package/shared/services/api/services/ShippingCartService.ts +247 -0
- package/shared/services/api/services/ShippingMethodsService.ts +20 -0
- package/shared/services/api/services/StoresService.ts +25 -0
- package/shared/services/api/services/SyncServiceQueueService.ts +39 -0
- package/shared/services/api/services/UpgradeOrdersService.ts +26 -0
- package/shared/services/api/services/UsersAuthService.ts +45 -0
- package/shared/services/api/services/UsersService.ts +53 -0
- package/shared/services/api/services/XeraQueueService.ts +39 -0
- package/shared/services/index.ts +0 -0
- package/shared/services/payment-method.service.ts +29 -0
- package/shared/stores/cartStore.ts +108 -0
- package/shared/stores/countriesStore.ts +62 -0
- package/shared/stores/formStore.ts +19 -0
- package/shared/stores/loadingStore.ts +12 -0
- package/shared/stores/userStore.ts +32 -0
- package/shared/types/SelectComponent.types.ts +31 -0
- package/shared/types/addressForm.ts +27 -0
- package/shared/types/cart.ts +208 -0
- package/shared/types/category.ts +6 -0
- package/shared/types/creditNote.ts +0 -0
- package/shared/types/feature-flags.ts +5 -0
- package/shared/types/icon.ts +5 -0
- package/shared/types/index.d.ts +84 -0
- package/shared/types/order.ts +332 -0
- package/shared/types/pagination.ts +5 -0
- package/shared/types/payments.ts +68 -0
- package/shared/types/product.ts +54 -0
- package/shared/types/shoppingCart.ts +219 -0
- package/shared/types/upgradeCart.ts +226 -0
- package/shared/types/user.ts +36 -0
- package/shared/utils/app.util.ts +261 -0
- package/shared/utils/notifications.util.ts +39 -0
- package/shared/utils/user-session.util.ts +171 -0
- package/tailwind.config.ts +234 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class OrderImportService {
|
|
9
|
+
/**
|
|
10
|
+
* @param requestBody
|
|
11
|
+
* @returns any
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static importOrdersControllerInitiateImport(requestBody: {
|
|
15
|
+
fileName?: string;
|
|
16
|
+
updatedFields?: string;
|
|
17
|
+
isUpdate?: boolean;
|
|
18
|
+
}): CancelablePromise<any> {
|
|
19
|
+
return __request(OpenAPI, {
|
|
20
|
+
method: "POST",
|
|
21
|
+
url: "/v1/order-imports/orders",
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json",
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @param requestBody
|
|
28
|
+
* @returns any
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
public static importOrdersControllerImportLegacyOrders(requestBody: {
|
|
32
|
+
ordersFileUrl?: string;
|
|
33
|
+
orderItemsFileName?: string;
|
|
34
|
+
}): CancelablePromise<any> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
url: "/v1/order-imports/legacy-orders",
|
|
38
|
+
body: requestBody,
|
|
39
|
+
mediaType: "application/json",
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param requestBody
|
|
44
|
+
* @returns any
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
public static importOrdersControllerImportLegacyOrderItems(requestBody: {
|
|
48
|
+
orderItemsFileUrl?: string;
|
|
49
|
+
}): CancelablePromise<any> {
|
|
50
|
+
return __request(OpenAPI, {
|
|
51
|
+
method: "POST",
|
|
52
|
+
url: "/v1/order-imports/legacy-order_items",
|
|
53
|
+
body: requestBody,
|
|
54
|
+
mediaType: "application/json",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @param requestBody
|
|
59
|
+
* @returns any
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
public static importOrdersControllerInitiateImportSyncService(requestBody: {
|
|
63
|
+
fileName?: string;
|
|
64
|
+
syncAll?: boolean;
|
|
65
|
+
importedData?: boolean;
|
|
66
|
+
syncOrders?: string;
|
|
67
|
+
}): CancelablePromise<any> {
|
|
68
|
+
return __request(OpenAPI, {
|
|
69
|
+
method: "POST",
|
|
70
|
+
url: "/v1/order-imports/sync-orders",
|
|
71
|
+
body: requestBody,
|
|
72
|
+
mediaType: "application/json",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @param requestBody
|
|
77
|
+
* @returns any
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
public static importOrdersControllerImportUserAddresses(requestBody: {
|
|
81
|
+
fileName?: string;
|
|
82
|
+
}): CancelablePromise<any> {
|
|
83
|
+
return __request(OpenAPI, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
url: "/v1/order-imports/userAddresses",
|
|
86
|
+
body: requestBody,
|
|
87
|
+
mediaType: "application/json",
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @param orderId
|
|
92
|
+
* @returns any
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
public static importOrdersControllerGetOrders(
|
|
96
|
+
orderId: string,
|
|
97
|
+
): CancelablePromise<any> {
|
|
98
|
+
return __request(OpenAPI, {
|
|
99
|
+
method: "GET",
|
|
100
|
+
url: "/v1/order-imports/{orderId}",
|
|
101
|
+
path: {
|
|
102
|
+
orderId: orderId,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @param requestBody
|
|
108
|
+
* @returns any
|
|
109
|
+
* @throws ApiError
|
|
110
|
+
*/
|
|
111
|
+
public static importOrdersControllerGenerateOrderTransactions(requestBody: {
|
|
112
|
+
fileName?: string;
|
|
113
|
+
}): CancelablePromise<any> {
|
|
114
|
+
return __request(OpenAPI, {
|
|
115
|
+
method: "POST",
|
|
116
|
+
url: "/v1/order-imports/order-transactions",
|
|
117
|
+
body: requestBody,
|
|
118
|
+
mediaType: "application/json",
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @param requestBody
|
|
123
|
+
* @returns any
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
public static importOrdersControllerGenerateOrderItems(requestBody: {
|
|
127
|
+
fileName?: string;
|
|
128
|
+
}): CancelablePromise<any> {
|
|
129
|
+
return __request(OpenAPI, {
|
|
130
|
+
method: "POST",
|
|
131
|
+
url: "/v1/order-imports/order-items",
|
|
132
|
+
body: requestBody,
|
|
133
|
+
mediaType: "application/json",
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @param requestBody
|
|
138
|
+
* @returns any
|
|
139
|
+
* @throws ApiError
|
|
140
|
+
*/
|
|
141
|
+
public static importOrdersControllerUpdateOrderItemsImg(requestBody: {
|
|
142
|
+
fileName?: string;
|
|
143
|
+
}): CancelablePromise<any> {
|
|
144
|
+
return __request(OpenAPI, {
|
|
145
|
+
method: "PUT",
|
|
146
|
+
url: "/v1/order-imports/order-items-img-and-category",
|
|
147
|
+
body: requestBody,
|
|
148
|
+
mediaType: "application/json",
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @param orderId
|
|
153
|
+
* @returns any
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
public static importOrdersControllerGetOrderTransaction(
|
|
157
|
+
orderId: string,
|
|
158
|
+
): CancelablePromise<any> {
|
|
159
|
+
return __request(OpenAPI, {
|
|
160
|
+
method: "GET",
|
|
161
|
+
url: "/v1/order-imports/order-transactions/{orderId}",
|
|
162
|
+
path: {
|
|
163
|
+
orderId: orderId,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @param requestBody
|
|
169
|
+
* @returns any
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
public static importOrdersControllerInitiateOrderInvoiceImport(requestBody: {
|
|
173
|
+
fileName?: string;
|
|
174
|
+
}): CancelablePromise<any> {
|
|
175
|
+
return __request(OpenAPI, {
|
|
176
|
+
method: "POST",
|
|
177
|
+
url: "/v1/order-imports/order-invoices",
|
|
178
|
+
body: requestBody,
|
|
179
|
+
mediaType: "application/json",
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @param requestBody
|
|
184
|
+
* @returns any
|
|
185
|
+
* @throws ApiError
|
|
186
|
+
*/
|
|
187
|
+
public static importOrdersControllerInitiateAssignOrderInvoice(requestBody: {
|
|
188
|
+
fileName?: string;
|
|
189
|
+
}): CancelablePromise<any> {
|
|
190
|
+
return __request(OpenAPI, {
|
|
191
|
+
method: "POST",
|
|
192
|
+
url: "/v1/order-imports/assign-invoiceId",
|
|
193
|
+
body: requestBody,
|
|
194
|
+
mediaType: "application/json",
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @param requestBody
|
|
199
|
+
* @returns any
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
public static importOrdersControllerCreateMissingShipmentItems(requestBody: {
|
|
203
|
+
fileName?: string;
|
|
204
|
+
}): CancelablePromise<any> {
|
|
205
|
+
return __request(OpenAPI, {
|
|
206
|
+
method: "POST",
|
|
207
|
+
url: "/v1/order-imports/create-missing-shipment-items",
|
|
208
|
+
body: requestBody,
|
|
209
|
+
mediaType: "application/json",
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @param orderId The ID of the order for which missing shipment items should be created
|
|
214
|
+
* @returns any
|
|
215
|
+
* @throws ApiError
|
|
216
|
+
*/
|
|
217
|
+
public static importOrdersControllerCreateMissingShipmentItemsByOrderItem(
|
|
218
|
+
orderId: string,
|
|
219
|
+
): CancelablePromise<any> {
|
|
220
|
+
return __request(OpenAPI, {
|
|
221
|
+
method: "POST",
|
|
222
|
+
url: "/v1/order-imports/create-missing-shipment-items-by-orderID",
|
|
223
|
+
query: {
|
|
224
|
+
orderId: orderId,
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PlaceOrderDto } from "../models/PlaceOrderDto";
|
|
6
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
7
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
8
|
+
import { request as __request } from "../core/request";
|
|
9
|
+
export class OrdersService {
|
|
10
|
+
/**
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns any
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
public static ordersControllerPlaceOrder(
|
|
16
|
+
requestBody: PlaceOrderDto,
|
|
17
|
+
): CancelablePromise<any> {
|
|
18
|
+
return __request(OpenAPI, {
|
|
19
|
+
method: "POST",
|
|
20
|
+
url: "/v1/orders",
|
|
21
|
+
body: requestBody,
|
|
22
|
+
mediaType: "application/json",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param requestBody
|
|
28
|
+
* @returns any
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
public static ordersControllerPlaceConsolidatedOrder(
|
|
32
|
+
requestBody: PlaceOrderDto,
|
|
33
|
+
): CancelablePromise<any> {
|
|
34
|
+
return __request(OpenAPI, {
|
|
35
|
+
method: "POST",
|
|
36
|
+
url: "/v1/orders",
|
|
37
|
+
body: requestBody,
|
|
38
|
+
mediaType: "application/json",
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param page
|
|
44
|
+
* @param limit
|
|
45
|
+
* @param sort
|
|
46
|
+
* @param sortBy
|
|
47
|
+
* @param keyword
|
|
48
|
+
* @returns any
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
public static ordersControllerGetOrders(
|
|
52
|
+
page: number = 1,
|
|
53
|
+
limit: number = 30,
|
|
54
|
+
sort: string = "desc",
|
|
55
|
+
sortBy: string = "createdAt",
|
|
56
|
+
keyword?: string | null,
|
|
57
|
+
): CancelablePromise<any> {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: "GET",
|
|
60
|
+
url: "/v1/orders",
|
|
61
|
+
query: {
|
|
62
|
+
page: page,
|
|
63
|
+
limit: limit,
|
|
64
|
+
sort: sort,
|
|
65
|
+
sortBy: sortBy,
|
|
66
|
+
keyword: keyword,
|
|
67
|
+
},
|
|
68
|
+
isServerAction: true,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @param requestBody
|
|
74
|
+
* @returns any
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
public static ordersControllerPlaceUpgradeOrder(
|
|
78
|
+
requestBody: PlaceOrderDto,
|
|
79
|
+
): CancelablePromise<any> {
|
|
80
|
+
return __request(OpenAPI, {
|
|
81
|
+
method: "POST",
|
|
82
|
+
url: "/v2/orders/upgrade",
|
|
83
|
+
body: requestBody,
|
|
84
|
+
mediaType: "application/json",
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @param requestBody
|
|
89
|
+
* @returns any
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
public static ordersControllerPlaceSmartPlaceOrder(
|
|
93
|
+
requestBody: PlaceOrderDto,
|
|
94
|
+
): CancelablePromise<any> {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: "POST",
|
|
97
|
+
url: "/v2/orders/smart-pay",
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: "application/json",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @param requestBody
|
|
104
|
+
* @returns any
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
public static ordersControllerPlaceGen2MigrationOrder(
|
|
108
|
+
requestBody: PlaceOrderDto,
|
|
109
|
+
): CancelablePromise<any> {
|
|
110
|
+
return __request(OpenAPI, {
|
|
111
|
+
method: "POST",
|
|
112
|
+
url: "/v2/orders/gen2-migration",
|
|
113
|
+
body: requestBody,
|
|
114
|
+
mediaType: "application/json",
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param id
|
|
120
|
+
* @returns any
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
public static ordersControllerGetOrder(id: string): CancelablePromise<any> {
|
|
124
|
+
return __request(OpenAPI, {
|
|
125
|
+
method: "GET",
|
|
126
|
+
url: "/v1/orders/{id}",
|
|
127
|
+
path: {
|
|
128
|
+
id: id,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @param orderId
|
|
135
|
+
* @returns any
|
|
136
|
+
* @throws ApiError
|
|
137
|
+
*/
|
|
138
|
+
public static ordersControllerGetOrderInvoice(
|
|
139
|
+
orderId: string,
|
|
140
|
+
): CancelablePromise<any> {
|
|
141
|
+
return __request(OpenAPI, {
|
|
142
|
+
method: "GET",
|
|
143
|
+
url: "/v1/orders/{orderId}/invoice",
|
|
144
|
+
path: {
|
|
145
|
+
orderId: orderId,
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @param creditNote
|
|
152
|
+
* @returns any
|
|
153
|
+
* @throws ApiError
|
|
154
|
+
*/
|
|
155
|
+
public static ordersControllerGetCreditNoteInvoice(
|
|
156
|
+
creditNote: string,
|
|
157
|
+
type: string,
|
|
158
|
+
): CancelablePromise<any> {
|
|
159
|
+
return __request(OpenAPI, {
|
|
160
|
+
method: "GET",
|
|
161
|
+
url: `/v1/credit-notes/{creditNote}/invoice-link?creditNoteType=${type}`,
|
|
162
|
+
path: {
|
|
163
|
+
creditNote: creditNote,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @param requestBody
|
|
170
|
+
* @returns any
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
public static ordersControllerPlaceExtensionOrder(
|
|
174
|
+
requestBody: PlaceOrderDto,
|
|
175
|
+
): CancelablePromise<any> {
|
|
176
|
+
return __request(OpenAPI, {
|
|
177
|
+
method: "POST",
|
|
178
|
+
url: "/v2/orders/extension-order",
|
|
179
|
+
body: requestBody,
|
|
180
|
+
mediaType: "application/json",
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class PaymentGatewayService {
|
|
9
|
+
/**
|
|
10
|
+
* @returns any
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
public static paymentGatewayControllerGetProfile(): CancelablePromise<any> {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/v1/payment-gateway/auth-code",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class PaymentsService {
|
|
9
|
+
/**
|
|
10
|
+
* @param shipping
|
|
11
|
+
* @param upgrade
|
|
12
|
+
* @param smartPay
|
|
13
|
+
* @param gen2Migration
|
|
14
|
+
* @returns any
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
public static paymentsControllerGetPaymentMethods(): CancelablePromise<any> {
|
|
18
|
+
return __request(OpenAPI, {
|
|
19
|
+
method: "GET",
|
|
20
|
+
url: "/v1/payments/methods",
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param id
|
|
25
|
+
* @returns any
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
public static paymentsControllerGetPaymentMethod(
|
|
29
|
+
id: number,
|
|
30
|
+
): CancelablePromise<any> {
|
|
31
|
+
return __request(OpenAPI, {
|
|
32
|
+
method: "GET",
|
|
33
|
+
url: "/v1/payments/methods/{id}",
|
|
34
|
+
path: {
|
|
35
|
+
id: id,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @param methodId
|
|
41
|
+
* @param shipping
|
|
42
|
+
* @returns any
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
public static paymentsControllerGetPaymentMethodAssets(
|
|
46
|
+
methodId: number,
|
|
47
|
+
): CancelablePromise<any> {
|
|
48
|
+
return __request(OpenAPI, {
|
|
49
|
+
method: "GET",
|
|
50
|
+
url: "/v1/payments/assets",
|
|
51
|
+
query: {
|
|
52
|
+
methodId: methodId,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param id
|
|
58
|
+
* @returns any
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
public static paymentsControllerGetPaymentMethodAssetBalance(
|
|
62
|
+
id: number,
|
|
63
|
+
): CancelablePromise<any> {
|
|
64
|
+
return __request(OpenAPI, {
|
|
65
|
+
method: "GET",
|
|
66
|
+
url: "/v1/payments/assets/{id}/balance",
|
|
67
|
+
path: {
|
|
68
|
+
id: id,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param id
|
|
74
|
+
* @returns any
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
public static paymentsControllerGetPaymentMethodAsset(
|
|
78
|
+
id: number,
|
|
79
|
+
): CancelablePromise<any> {
|
|
80
|
+
return __request(OpenAPI, {
|
|
81
|
+
method: "GET",
|
|
82
|
+
url: "/v1/payments/assets/{id}",
|
|
83
|
+
path: {
|
|
84
|
+
id: id,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class ProductsService {
|
|
9
|
+
/**
|
|
10
|
+
* @param categoryCode
|
|
11
|
+
* @param reference
|
|
12
|
+
* @param page
|
|
13
|
+
* @param limit
|
|
14
|
+
* @param sort
|
|
15
|
+
* @param sortBy
|
|
16
|
+
* @returns any
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
public static productsControllerGetProducts(
|
|
20
|
+
categoryCode?:
|
|
21
|
+
| "minter"
|
|
22
|
+
| "quantwise"
|
|
23
|
+
| "license"
|
|
24
|
+
| "combo"
|
|
25
|
+
| "kminting"
|
|
26
|
+
| "supernode"
|
|
27
|
+
| "global-pool-layer-k"
|
|
28
|
+
| "subscription"
|
|
29
|
+
| "mobile-app",
|
|
30
|
+
reference?: string,
|
|
31
|
+
page: number = 1,
|
|
32
|
+
limit: number = 30,
|
|
33
|
+
sort: string = "desc",
|
|
34
|
+
sortBy: string = "createdAt",
|
|
35
|
+
): CancelablePromise<any> {
|
|
36
|
+
return __request(OpenAPI, {
|
|
37
|
+
method: "GET",
|
|
38
|
+
url: "/v1/products",
|
|
39
|
+
query: {
|
|
40
|
+
categoryCode: categoryCode,
|
|
41
|
+
reference: reference,
|
|
42
|
+
page: page,
|
|
43
|
+
limit: limit,
|
|
44
|
+
sort: sort,
|
|
45
|
+
sortBy: sortBy,
|
|
46
|
+
},
|
|
47
|
+
isServerAction: true,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param id
|
|
52
|
+
* @returns any
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
public static productsControllerGetProduct(
|
|
56
|
+
id: number,
|
|
57
|
+
): CancelablePromise<any> {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: "GET",
|
|
60
|
+
url: "/v1/products/{id}",
|
|
61
|
+
path: {
|
|
62
|
+
id: id,
|
|
63
|
+
},
|
|
64
|
+
isServerAction: true,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
import type { CancelablePromise } from "../core/CancelablePromise";
|
|
6
|
+
import { OpenAPI } from "../core/OpenAPI";
|
|
7
|
+
import { request as __request } from "../core/request";
|
|
8
|
+
export class ShipmentOrderCallbackService {
|
|
9
|
+
/**
|
|
10
|
+
* Handle card payment callback
|
|
11
|
+
* @param orderTransactionId
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
public static shippingOrderCallbackControllerHandleCardPaymentCallback(
|
|
17
|
+
orderTransactionId: string,
|
|
18
|
+
requestBody: {
|
|
19
|
+
orderId?: string;
|
|
20
|
+
uniqueId?: string;
|
|
21
|
+
isPaid?: boolean;
|
|
22
|
+
providerResponse?: {
|
|
23
|
+
amount?: number;
|
|
24
|
+
billing?: {
|
|
25
|
+
address?: {
|
|
26
|
+
city?: string;
|
|
27
|
+
country?: string;
|
|
28
|
+
postcodeZip?: string;
|
|
29
|
+
stateProvince?: string;
|
|
30
|
+
street?: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
customer?: {
|
|
34
|
+
email?: string;
|
|
35
|
+
firstName?: string;
|
|
36
|
+
lastName?: string;
|
|
37
|
+
mobilePhone?: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
): CancelablePromise<any> {
|
|
42
|
+
return __request(OpenAPI, {
|
|
43
|
+
method: "POST",
|
|
44
|
+
url: "/v1/shipment-order-webhooks/card",
|
|
45
|
+
query: {
|
|
46
|
+
orderTransactionId: orderTransactionId,
|
|
47
|
+
},
|
|
48
|
+
body: requestBody,
|
|
49
|
+
mediaType: "application/json",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @param requestBody
|
|
54
|
+
* @returns any
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
public static shippingOrderCallbackControllerCheckOrderStatus(requestBody: {
|
|
58
|
+
orderId?: string;
|
|
59
|
+
}): CancelablePromise<any> {
|
|
60
|
+
return __request(OpenAPI, {
|
|
61
|
+
method: "POST",
|
|
62
|
+
url: "/v1/shipment-order-webhooks/check-status",
|
|
63
|
+
body: requestBody,
|
|
64
|
+
mediaType: "application/json",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|