@digital8/lighting-illusions-ts-sdk 0.0.1883 → 0.0.1885
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/.openapi-generator/FILES +2 -82
- package/README.md +3 -56
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -7
- package/dist/models/AddressResource.js +1 -5
- package/dist/models/AssetFrontendResource.d.ts +12 -0
- package/dist/models/AssetFrontendResource.js +6 -0
- package/dist/models/AssetLiteResource.d.ts +14 -2
- package/dist/models/AssetLiteResource.js +6 -0
- package/dist/models/AssetResource.d.ts +14 -2
- package/dist/models/AssetResource.js +6 -0
- package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
- package/dist/models/AssetWithOverlayLinkResource.js +6 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ExternalApiSyncStatus.d.ts +1 -0
- package/dist/models/ExternalApiSyncStatus.js +2 -1
- package/dist/models/MenuPosition.d.ts +0 -1
- package/dist/models/MenuPosition.js +1 -2
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
- package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
- package/dist/models/SitePaymentConfigResource.d.ts +0 -6
- package/dist/models/SitePaymentConfigResource.js +0 -4
- package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
- package/dist/models/StoreAssetForAssetableRequest.js +6 -6
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +13 -1
- package/dist/models/StoreListResource.js +15 -5
- package/dist/models/StoreMenuRequest.d.ts +0 -1
- package/dist/models/StoreMenuRequest.js +1 -2
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
- package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
- package/dist/models/StoreProductCategoryRequest.js +4 -0
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
- package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
- package/dist/models/StoreResource.d.ts +12 -0
- package/dist/models/StoreResource.js +14 -6
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +5 -7
- package/dist/models/StoreStockType.d.ts +25 -0
- package/dist/models/StoreStockType.js +51 -0
- package/dist/models/StoreStoreRequest.d.ts +12 -0
- package/dist/models/StoreStoreRequest.js +4 -0
- package/dist/models/StoreSupplierRequest.d.ts +14 -2
- package/dist/models/StoreSupplierRequest.js +6 -6
- package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
- package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
- package/dist/models/UpdateMenuRequest.d.ts +0 -1
- package/dist/models/UpdateMenuRequest.js +1 -2
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
- package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
- package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
- package/dist/models/UpdateProductCategoryRequest.js +4 -0
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
- package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
- package/dist/models/UpdateSiteRequest.d.ts +0 -6
- package/dist/models/UpdateSiteRequest.js +0 -4
- package/dist/models/UpdateStoreRequest.d.ts +12 -0
- package/dist/models/UpdateStoreRequest.js +4 -0
- package/dist/models/UpdateSupplierRequest.d.ts +14 -2
- package/dist/models/UpdateSupplierRequest.js +6 -6
- package/dist/models/index.d.ts +1 -39
- package/dist/models/index.js +1 -39
- package/docs/AddressResource.md +0 -2
- package/docs/AssetFrontendResource.md +4 -0
- package/docs/AssetLiteResource.md +5 -1
- package/docs/AssetResource.md +5 -1
- package/docs/AssetWithOverlayLinkResource.md +5 -1
- package/docs/ProductChildSiteDetailLiteResource.md +0 -2
- package/docs/SitePaymentConfigResource.md +0 -2
- package/docs/StoreAssetForAssetableRequest.md +4 -0
- package/docs/StoreListResource.md +4 -0
- package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
- package/docs/StoreProductCategoryRequest.md +4 -0
- package/docs/StoreProductChildRequestAssetsInner.md +4 -0
- package/docs/StoreResource.md +4 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/{AddressType.md → StoreStockType.md} +4 -4
- package/docs/StoreStoreRequest.md +4 -0
- package/docs/StoreSupplierRequest.md +4 -0
- package/docs/UpdateAssetForAssetableRequest.md +4 -0
- package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
- package/docs/UpdateProductCategoryRequest.md +4 -0
- package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
- package/docs/UpdateSiteRequest.md +0 -2
- package/docs/UpdateStoreRequest.md +4 -0
- package/docs/UpdateSupplierRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/index.ts +0 -2
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -11
- package/src/models/AssetFrontendResource.ts +17 -0
- package/src/models/AssetLiteResource.ts +19 -2
- package/src/models/AssetResource.ts +19 -2
- package/src/models/AssetWithOverlayLinkResource.ts +19 -2
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ExternalApiSyncStatus.ts +2 -1
- package/src/models/MenuPosition.ts +1 -2
- package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
- package/src/models/SitePaymentConfigResource.ts +0 -9
- package/src/models/StoreAssetForAssetableRequest.ts +20 -6
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +25 -6
- package/src/models/StoreMenuRequest.ts +1 -2
- package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
- package/src/models/StoreProductCategoryRequest.ts +16 -0
- package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
- package/src/models/StoreResource.ts +24 -6
- package/src/models/StoreSpecialDateResource.ts +7 -8
- package/src/models/StoreStockType.ts +53 -0
- package/src/models/StoreStoreRequest.ts +16 -0
- package/src/models/StoreSupplierRequest.ts +20 -6
- package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
- package/src/models/UpdateMenuRequest.ts +1 -2
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
- package/src/models/UpdateProductCategoryRequest.ts +16 -0
- package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
- package/src/models/UpdateSiteRequest.ts +0 -9
- package/src/models/UpdateStoreRequest.ts +16 -0
- package/src/models/UpdateSupplierRequest.ts +20 -6
- package/src/models/index.ts +1 -39
- package/dist/apis/CartsApi.d.ts +0 -190
- package/dist/apis/CartsApi.js +0 -745
- package/dist/apis/CustomersApi.d.ts +0 -79
- package/dist/apis/CustomersApi.js +0 -316
- package/dist/models/AddressType.d.ts +0 -25
- package/dist/models/AddressType.js +0 -51
- package/dist/models/AttachCouponCartRequest.d.ts +0 -32
- package/dist/models/AttachCouponCartRequest.js +0 -51
- package/dist/models/AttachItemCartRequest.d.ts +0 -44
- package/dist/models/AttachItemCartRequest.js +0 -57
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResource.js +0 -63
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- package/dist/models/CartListResource.d.ts +0 -131
- package/dist/models/CartListResource.js +0 -104
- package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartListResourceArrayResponse.js +0 -50
- package/dist/models/CartOrderSource.d.ts +0 -29
- package/dist/models/CartOrderSource.js +0 -55
- package/dist/models/CartResource.d.ts +0 -223
- package/dist/models/CartResource.js +0 -164
- package/dist/models/CartResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartResourceArrayResponse.js +0 -50
- package/dist/models/CartStatus.d.ts +0 -26
- package/dist/models/CartStatus.js +0 -52
- package/dist/models/CustomerListResource.d.ts +0 -70
- package/dist/models/CustomerListResource.js +0 -75
- package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerListResourceArrayResponse.js +0 -50
- package/dist/models/CustomerResource.d.ts +0 -70
- package/dist/models/CustomerResource.js +0 -75
- package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerResourceArrayResponse.js +0 -50
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/IndexCartRequest.d.ts +0 -154
- package/dist/models/IndexCartRequest.js +0 -105
- package/dist/models/IndexCustomerRequest.d.ts +0 -99
- package/dist/models/IndexCustomerRequest.js +0 -83
- package/dist/models/LiAddressResource.d.ts +0 -86
- package/dist/models/LiAddressResource.js +0 -83
- package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/LiAddressResourceArrayResponse.js +0 -50
- package/dist/models/LineItemDiscountResource.d.ts +0 -50
- package/dist/models/LineItemDiscountResource.js +0 -63
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/LineItemListResource.d.ts +0 -76
- package/dist/models/LineItemListResource.js +0 -81
- package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCartListResourceResponse.js +0 -57
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/dist/models/ShippingType.d.ts +0 -28
- package/dist/models/ShippingType.js +0 -54
- package/dist/models/StoreCartRequest.d.ts +0 -160
- package/dist/models/StoreCartRequest.js +0 -112
- package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
- package/dist/models/StoreCartRequestCustomer.js +0 -55
- package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
- package/dist/models/StoreCartRequestItemsInner.js +0 -57
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
- package/dist/models/StoreCartRequestShippingAddress.js +0 -61
- package/dist/models/StoreCustomerRequest.d.ts +0 -56
- package/dist/models/StoreCustomerRequest.js +0 -65
- package/dist/models/UpdateCartRequest.d.ts +0 -135
- package/dist/models/UpdateCartRequest.js +0 -99
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateItemCartRequest.d.ts +0 -38
- package/dist/models/UpdateItemCartRequest.js +0 -53
- package/docs/AttachCouponCartRequest.md +0 -34
- package/docs/AttachItemCartRequest.md +0 -38
- package/docs/CartCouponResource.md +0 -40
- package/docs/CartCouponResourceArrayResponse.md +0 -34
- package/docs/CartListResource.md +0 -66
- package/docs/CartListResourceArrayResponse.md +0 -34
- package/docs/CartOrderSource.md +0 -32
- package/docs/CartResource.md +0 -96
- package/docs/CartResourceArrayResponse.md +0 -34
- package/docs/CartStatus.md +0 -32
- package/docs/CartsApi.md +0 -755
- package/docs/CustomerListResource.md +0 -46
- package/docs/CustomerListResourceArrayResponse.md +0 -34
- package/docs/CustomerResource.md +0 -46
- package/docs/CustomerResourceArrayResponse.md +0 -34
- package/docs/CustomersApi.md +0 -275
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/IndexCartRequest.md +0 -66
- package/docs/IndexCustomerRequest.md +0 -50
- package/docs/LiAddressResource.md +0 -52
- package/docs/LiAddressResourceArrayResponse.md +0 -34
- package/docs/LineItemDiscountResource.md +0 -40
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/LineItemListResource.md +0 -48
- package/docs/LineItemListResourceArrayResponse.md +0 -34
- package/docs/PaginatedCartListResourceResponse.md +0 -36
- package/docs/PaginatedCustomerListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/ShippingType.md +0 -32
- package/docs/StoreCartRequest.md +0 -68
- package/docs/StoreCartRequestCustomer.md +0 -40
- package/docs/StoreCartRequestItemsInner.md +0 -38
- package/docs/StoreCartRequestShippingAddress.md +0 -46
- package/docs/StoreCustomerRequest.md +0 -42
- package/docs/UpdateCartRequest.md +0 -60
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateItemCartRequest.md +0 -36
- package/src/apis/CartsApi.ts +0 -624
- package/src/apis/CustomersApi.ts +0 -232
- package/src/models/AddressType.ts +0 -53
- package/src/models/AttachCouponCartRequest.ts +0 -66
- package/src/models/AttachItemCartRequest.ts +0 -83
- package/src/models/CartCouponResource.ts +0 -93
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/CartListResource.ts +0 -225
- package/src/models/CartListResourceArrayResponse.ts +0 -73
- package/src/models/CartOrderSource.ts +0 -57
- package/src/models/CartResource.ts +0 -373
- package/src/models/CartResourceArrayResponse.ts +0 -73
- package/src/models/CartStatus.ts +0 -54
- package/src/models/CustomerListResource.ts +0 -134
- package/src/models/CustomerListResourceArrayResponse.ts +0 -73
- package/src/models/CustomerResource.ts +0 -134
- package/src/models/CustomerResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/IndexCartRequest.ts +0 -224
- package/src/models/IndexCustomerRequest.ts +0 -152
- package/src/models/LiAddressResource.ts +0 -145
- package/src/models/LiAddressResourceArrayResponse.ts +0 -73
- package/src/models/LineItemDiscountResource.ts +0 -93
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/LineItemListResource.ts +0 -144
- package/src/models/LineItemListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCartListResourceResponse.ts +0 -90
- package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/ShippingType.ts +0 -56
- package/src/models/StoreCartRequest.ts +0 -252
- package/src/models/StoreCartRequestCustomer.ts +0 -89
- package/src/models/StoreCartRequestItemsInner.ts +0 -83
- package/src/models/StoreCartRequestShippingAddress.ts +0 -113
- package/src/models/StoreCustomerRequest.ts +0 -101
- package/src/models/UpdateCartRequest.ts +0 -211
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateItemCartRequest.ts +0 -74
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CustomerResource, IndexCustomerRequest, PaginatedCustomerListResourceResponse, StoreCustomerRequest, UpdateCustomerRequest } from '../models/index';
|
|
14
|
-
export interface IndexCustomerOperationRequest {
|
|
15
|
-
indexCustomerRequest?: IndexCustomerRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface ShowCustomerRequest {
|
|
18
|
-
customer: number;
|
|
19
|
-
}
|
|
20
|
-
export interface StoreCustomerOperationRequest {
|
|
21
|
-
storeCustomerRequest?: StoreCustomerRequest;
|
|
22
|
-
}
|
|
23
|
-
export interface UpdateCustomerOperationRequest {
|
|
24
|
-
customer: number;
|
|
25
|
-
updateCustomerRequest?: UpdateCustomerRequest;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export declare class CustomersApi extends runtime.BaseAPI {
|
|
31
|
-
/**
|
|
32
|
-
* Creates request options for indexCustomer without sending the request
|
|
33
|
-
*/
|
|
34
|
-
indexCustomerRequestOpts(requestParameters: IndexCustomerOperationRequest): Promise<runtime.RequestOpts>;
|
|
35
|
-
/**
|
|
36
|
-
* Auto-generated: indexCustomer
|
|
37
|
-
*/
|
|
38
|
-
indexCustomerRaw(requestParameters: IndexCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCustomerListResourceResponse>>;
|
|
39
|
-
/**
|
|
40
|
-
* Auto-generated: indexCustomer
|
|
41
|
-
*/
|
|
42
|
-
indexCustomer(requestParameters?: IndexCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCustomerListResourceResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Creates request options for showCustomer without sending the request
|
|
45
|
-
*/
|
|
46
|
-
showCustomerRequestOpts(requestParameters: ShowCustomerRequest): Promise<runtime.RequestOpts>;
|
|
47
|
-
/**
|
|
48
|
-
* Auto-generated: showCustomer
|
|
49
|
-
*/
|
|
50
|
-
showCustomerRaw(requestParameters: ShowCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerResource>>;
|
|
51
|
-
/**
|
|
52
|
-
* Auto-generated: showCustomer
|
|
53
|
-
*/
|
|
54
|
-
showCustomer(requestParameters: ShowCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerResource>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates request options for storeCustomer without sending the request
|
|
57
|
-
*/
|
|
58
|
-
storeCustomerRequestOpts(requestParameters: StoreCustomerOperationRequest): Promise<runtime.RequestOpts>;
|
|
59
|
-
/**
|
|
60
|
-
* Auto-generated: storeCustomer
|
|
61
|
-
*/
|
|
62
|
-
storeCustomerRaw(requestParameters: StoreCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerResource>>;
|
|
63
|
-
/**
|
|
64
|
-
* Auto-generated: storeCustomer
|
|
65
|
-
*/
|
|
66
|
-
storeCustomer(requestParameters?: StoreCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerResource>;
|
|
67
|
-
/**
|
|
68
|
-
* Creates request options for updateCustomer without sending the request
|
|
69
|
-
*/
|
|
70
|
-
updateCustomerRequestOpts(requestParameters: UpdateCustomerOperationRequest): Promise<runtime.RequestOpts>;
|
|
71
|
-
/**
|
|
72
|
-
* Auto-generated: updateCustomer
|
|
73
|
-
*/
|
|
74
|
-
updateCustomerRaw(requestParameters: UpdateCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerResource>>;
|
|
75
|
-
/**
|
|
76
|
-
* Auto-generated: updateCustomer
|
|
77
|
-
*/
|
|
78
|
-
updateCustomer(requestParameters: UpdateCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerResource>;
|
|
79
|
-
}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.CustomersApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var CustomersApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(CustomersApi, _super);
|
|
75
|
-
function CustomersApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Creates request options for indexCustomer without sending the request
|
|
80
|
-
*/
|
|
81
|
-
CustomersApi.prototype.indexCustomerRequestOpts = function (requestParameters) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
queryParameters = {};
|
|
86
|
-
headerParameters = {};
|
|
87
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
-
urlPath = "/admin-api/customers/list";
|
|
89
|
-
return [2 /*return*/, {
|
|
90
|
-
path: urlPath,
|
|
91
|
-
method: 'POST',
|
|
92
|
-
headers: headerParameters,
|
|
93
|
-
query: queryParameters,
|
|
94
|
-
body: (0, index_1.IndexCustomerRequestToJSON)(requestParameters['indexCustomerRequest']),
|
|
95
|
-
}];
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Auto-generated: indexCustomer
|
|
101
|
-
*/
|
|
102
|
-
CustomersApi.prototype.indexCustomerRaw = function (requestParameters, initOverrides) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
-
var requestOptions, response;
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
switch (_a.label) {
|
|
107
|
-
case 0: return [4 /*yield*/, this.indexCustomerRequestOpts(requestParameters)];
|
|
108
|
-
case 1:
|
|
109
|
-
requestOptions = _a.sent();
|
|
110
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
-
case 2:
|
|
112
|
-
response = _a.sent();
|
|
113
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedCustomerListResourceResponseFromJSON)(jsonValue); })];
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Auto-generated: indexCustomer
|
|
120
|
-
*/
|
|
121
|
-
CustomersApi.prototype.indexCustomer = function () {
|
|
122
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
-
var response;
|
|
124
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
-
return __generator(this, function (_a) {
|
|
126
|
-
switch (_a.label) {
|
|
127
|
-
case 0: return [4 /*yield*/, this.indexCustomerRaw(requestParameters, initOverrides)];
|
|
128
|
-
case 1:
|
|
129
|
-
response = _a.sent();
|
|
130
|
-
return [4 /*yield*/, response.value()];
|
|
131
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Creates request options for showCustomer without sending the request
|
|
138
|
-
*/
|
|
139
|
-
CustomersApi.prototype.showCustomerRequestOpts = function (requestParameters) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
-
var queryParameters, headerParameters, urlPath;
|
|
142
|
-
return __generator(this, function (_a) {
|
|
143
|
-
if (requestParameters['customer'] == null) {
|
|
144
|
-
throw new runtime.RequiredError('customer', 'Required parameter "customer" was null or undefined when calling showCustomer().');
|
|
145
|
-
}
|
|
146
|
-
queryParameters = {};
|
|
147
|
-
headerParameters = {};
|
|
148
|
-
urlPath = "/admin-api/customers/{customer}";
|
|
149
|
-
urlPath = urlPath.replace("{".concat("customer", "}"), encodeURIComponent(String(requestParameters['customer'])));
|
|
150
|
-
return [2 /*return*/, {
|
|
151
|
-
path: urlPath,
|
|
152
|
-
method: 'GET',
|
|
153
|
-
headers: headerParameters,
|
|
154
|
-
query: queryParameters,
|
|
155
|
-
}];
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Auto-generated: showCustomer
|
|
161
|
-
*/
|
|
162
|
-
CustomersApi.prototype.showCustomerRaw = function (requestParameters, initOverrides) {
|
|
163
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
-
var requestOptions, response;
|
|
165
|
-
return __generator(this, function (_a) {
|
|
166
|
-
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, this.showCustomerRequestOpts(requestParameters)];
|
|
168
|
-
case 1:
|
|
169
|
-
requestOptions = _a.sent();
|
|
170
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
171
|
-
case 2:
|
|
172
|
-
response = _a.sent();
|
|
173
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomerResourceFromJSON)(jsonValue); })];
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* Auto-generated: showCustomer
|
|
180
|
-
*/
|
|
181
|
-
CustomersApi.prototype.showCustomer = function (requestParameters, initOverrides) {
|
|
182
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
-
var response;
|
|
184
|
-
return __generator(this, function (_a) {
|
|
185
|
-
switch (_a.label) {
|
|
186
|
-
case 0: return [4 /*yield*/, this.showCustomerRaw(requestParameters, initOverrides)];
|
|
187
|
-
case 1:
|
|
188
|
-
response = _a.sent();
|
|
189
|
-
return [4 /*yield*/, response.value()];
|
|
190
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Creates request options for storeCustomer without sending the request
|
|
197
|
-
*/
|
|
198
|
-
CustomersApi.prototype.storeCustomerRequestOpts = function (requestParameters) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var queryParameters, headerParameters, urlPath;
|
|
201
|
-
return __generator(this, function (_a) {
|
|
202
|
-
queryParameters = {};
|
|
203
|
-
headerParameters = {};
|
|
204
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
205
|
-
urlPath = "/admin-api/customers/create";
|
|
206
|
-
return [2 /*return*/, {
|
|
207
|
-
path: urlPath,
|
|
208
|
-
method: 'POST',
|
|
209
|
-
headers: headerParameters,
|
|
210
|
-
query: queryParameters,
|
|
211
|
-
body: (0, index_1.StoreCustomerRequestToJSON)(requestParameters['storeCustomerRequest']),
|
|
212
|
-
}];
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* Auto-generated: storeCustomer
|
|
218
|
-
*/
|
|
219
|
-
CustomersApi.prototype.storeCustomerRaw = function (requestParameters, initOverrides) {
|
|
220
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
-
var requestOptions, response;
|
|
222
|
-
return __generator(this, function (_a) {
|
|
223
|
-
switch (_a.label) {
|
|
224
|
-
case 0: return [4 /*yield*/, this.storeCustomerRequestOpts(requestParameters)];
|
|
225
|
-
case 1:
|
|
226
|
-
requestOptions = _a.sent();
|
|
227
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
228
|
-
case 2:
|
|
229
|
-
response = _a.sent();
|
|
230
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomerResourceFromJSON)(jsonValue); })];
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* Auto-generated: storeCustomer
|
|
237
|
-
*/
|
|
238
|
-
CustomersApi.prototype.storeCustomer = function () {
|
|
239
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
240
|
-
var response;
|
|
241
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
242
|
-
return __generator(this, function (_a) {
|
|
243
|
-
switch (_a.label) {
|
|
244
|
-
case 0: return [4 /*yield*/, this.storeCustomerRaw(requestParameters, initOverrides)];
|
|
245
|
-
case 1:
|
|
246
|
-
response = _a.sent();
|
|
247
|
-
return [4 /*yield*/, response.value()];
|
|
248
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
/**
|
|
254
|
-
* Creates request options for updateCustomer without sending the request
|
|
255
|
-
*/
|
|
256
|
-
CustomersApi.prototype.updateCustomerRequestOpts = function (requestParameters) {
|
|
257
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
-
var queryParameters, headerParameters, urlPath;
|
|
259
|
-
return __generator(this, function (_a) {
|
|
260
|
-
if (requestParameters['customer'] == null) {
|
|
261
|
-
throw new runtime.RequiredError('customer', 'Required parameter "customer" was null or undefined when calling updateCustomer().');
|
|
262
|
-
}
|
|
263
|
-
queryParameters = {};
|
|
264
|
-
headerParameters = {};
|
|
265
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
266
|
-
urlPath = "/admin-api/customers/{customer}/update";
|
|
267
|
-
urlPath = urlPath.replace("{".concat("customer", "}"), encodeURIComponent(String(requestParameters['customer'])));
|
|
268
|
-
return [2 /*return*/, {
|
|
269
|
-
path: urlPath,
|
|
270
|
-
method: 'PUT',
|
|
271
|
-
headers: headerParameters,
|
|
272
|
-
query: queryParameters,
|
|
273
|
-
body: (0, index_1.UpdateCustomerRequestToJSON)(requestParameters['updateCustomerRequest']),
|
|
274
|
-
}];
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
/**
|
|
279
|
-
* Auto-generated: updateCustomer
|
|
280
|
-
*/
|
|
281
|
-
CustomersApi.prototype.updateCustomerRaw = function (requestParameters, initOverrides) {
|
|
282
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
283
|
-
var requestOptions, response;
|
|
284
|
-
return __generator(this, function (_a) {
|
|
285
|
-
switch (_a.label) {
|
|
286
|
-
case 0: return [4 /*yield*/, this.updateCustomerRequestOpts(requestParameters)];
|
|
287
|
-
case 1:
|
|
288
|
-
requestOptions = _a.sent();
|
|
289
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
290
|
-
case 2:
|
|
291
|
-
response = _a.sent();
|
|
292
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomerResourceFromJSON)(jsonValue); })];
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* Auto-generated: updateCustomer
|
|
299
|
-
*/
|
|
300
|
-
CustomersApi.prototype.updateCustomer = function (requestParameters, initOverrides) {
|
|
301
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
302
|
-
var response;
|
|
303
|
-
return __generator(this, function (_a) {
|
|
304
|
-
switch (_a.label) {
|
|
305
|
-
case 0: return [4 /*yield*/, this.updateCustomerRaw(requestParameters, initOverrides)];
|
|
306
|
-
case 1:
|
|
307
|
-
response = _a.sent();
|
|
308
|
-
return [4 /*yield*/, response.value()];
|
|
309
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
});
|
|
313
|
-
};
|
|
314
|
-
return CustomersApi;
|
|
315
|
-
}(runtime.BaseAPI));
|
|
316
|
-
exports.CustomersApi = CustomersApi;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const AddressType: {
|
|
17
|
-
readonly Shipping: "shipping";
|
|
18
|
-
readonly Billing: "billing";
|
|
19
|
-
};
|
|
20
|
-
export type AddressType = typeof AddressType[keyof typeof AddressType];
|
|
21
|
-
export declare function instanceOfAddressType(value: any): boolean;
|
|
22
|
-
export declare function AddressTypeFromJSON(json: any): AddressType;
|
|
23
|
-
export declare function AddressTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressType;
|
|
24
|
-
export declare function AddressTypeToJSON(value?: AddressType | null): any;
|
|
25
|
-
export declare function AddressTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): AddressType;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AddressType = void 0;
|
|
17
|
-
exports.instanceOfAddressType = instanceOfAddressType;
|
|
18
|
-
exports.AddressTypeFromJSON = AddressTypeFromJSON;
|
|
19
|
-
exports.AddressTypeFromJSONTyped = AddressTypeFromJSONTyped;
|
|
20
|
-
exports.AddressTypeToJSON = AddressTypeToJSON;
|
|
21
|
-
exports.AddressTypeToJSONTyped = AddressTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.AddressType = {
|
|
27
|
-
Shipping: 'shipping',
|
|
28
|
-
Billing: 'billing'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfAddressType(value) {
|
|
31
|
-
for (var key in exports.AddressType) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.AddressType, key)) {
|
|
33
|
-
if (exports.AddressType[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function AddressTypeFromJSON(json) {
|
|
41
|
-
return AddressTypeFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function AddressTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function AddressTypeToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function AddressTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AttachCouponCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachCouponCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AttachCouponCartRequest
|
|
22
|
-
*/
|
|
23
|
-
couponCode: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest;
|
|
29
|
-
export declare function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest;
|
|
30
|
-
export declare function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest;
|
|
31
|
-
export declare function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest;
|
|
32
|
-
export declare function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfAttachCouponCartRequest = instanceOfAttachCouponCartRequest;
|
|
17
|
-
exports.AttachCouponCartRequestFromJSON = AttachCouponCartRequestFromJSON;
|
|
18
|
-
exports.AttachCouponCartRequestFromJSONTyped = AttachCouponCartRequestFromJSONTyped;
|
|
19
|
-
exports.AttachCouponCartRequestToJSON = AttachCouponCartRequestToJSON;
|
|
20
|
-
exports.AttachCouponCartRequestToJSONTyped = AttachCouponCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachCouponCartRequest(value) {
|
|
25
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function AttachCouponCartRequestFromJSON(json) {
|
|
30
|
-
return AttachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function AttachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponCode': json['coupon_code'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function AttachCouponCartRequestToJSON(json) {
|
|
41
|
-
return AttachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function AttachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'coupon_code': value['couponCode'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AttachItemCartRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachItemCartRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof AttachItemCartRequest
|
|
22
|
-
*/
|
|
23
|
-
productChildId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof AttachItemCartRequest
|
|
28
|
-
*/
|
|
29
|
-
quantity: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof AttachItemCartRequest
|
|
34
|
-
*/
|
|
35
|
-
productPrice?: number | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the AttachItemCartRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest;
|
|
41
|
-
export declare function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest;
|
|
42
|
-
export declare function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest;
|
|
43
|
-
export declare function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest;
|
|
44
|
-
export declare function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfAttachItemCartRequest = instanceOfAttachItemCartRequest;
|
|
17
|
-
exports.AttachItemCartRequestFromJSON = AttachItemCartRequestFromJSON;
|
|
18
|
-
exports.AttachItemCartRequestFromJSONTyped = AttachItemCartRequestFromJSONTyped;
|
|
19
|
-
exports.AttachItemCartRequestToJSON = AttachItemCartRequestToJSON;
|
|
20
|
-
exports.AttachItemCartRequestToJSONTyped = AttachItemCartRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachItemCartRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachItemCartRequest(value) {
|
|
25
|
-
if (!('productChildId' in value) || value['productChildId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function AttachItemCartRequestFromJSON(json) {
|
|
32
|
-
return AttachItemCartRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function AttachItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'productChildId': json['product_child_id'],
|
|
40
|
-
'quantity': json['quantity'],
|
|
41
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function AttachItemCartRequestToJSON(json) {
|
|
45
|
-
return AttachItemCartRequestToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function AttachItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'product_child_id': value['productChildId'],
|
|
54
|
-
'quantity': value['quantity'],
|
|
55
|
-
'product_price': value['productPrice'],
|
|
56
|
-
};
|
|
57
|
-
}
|