@digital8/lighting-illusions-ts-sdk 0.0.1931 → 0.0.1933
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 +8 -36
- package/README.md +7 -24
- package/dist/apis/AdminApi.d.ts +17 -0
- package/dist/apis/AdminApi.js +60 -0
- package/dist/apis/OrdersApi.d.ts +2 -37
- package/dist/apis/OrdersApi.js +1 -126
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -7
- package/dist/models/AddressResource.js +1 -7
- package/dist/models/AdminNoteResource.d.ts +68 -0
- package/dist/models/AdminNoteResource.js +71 -0
- package/dist/models/AdminNoteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminNoteResourceArrayResponse.js +50 -0
- package/dist/models/AdminOrderResource.d.ts +4 -10
- package/dist/models/AdminOrderResource.js +7 -11
- package/dist/models/CartResource.d.ts +3 -9
- package/dist/models/CartResource.js +7 -9
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllAdminNoteRequest.d.ts +102 -0
- package/dist/models/GetAllAdminNoteRequest.js +82 -0
- package/dist/models/GetAllOrderRequest.d.ts +0 -1
- package/dist/models/GetAllOrderRequest.js +1 -2
- package/dist/models/IndexOrderRequest.d.ts +0 -1
- package/dist/models/IndexOrderRequest.js +1 -2
- package/dist/models/OrderListResource.d.ts +0 -18
- package/dist/models/OrderListResource.js +0 -10
- package/dist/models/PaginatedAdminNoteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAdminNoteResourceResponse.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -1
- package/dist/models/UpdateOrderRequestBillingAddress.js +3 -3
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +3 -3
- package/dist/models/index.d.ts +4 -17
- package/dist/models/index.js +4 -17
- package/docs/AddressResource.md +0 -2
- package/docs/AdminApi.md +66 -0
- package/docs/{OrderStatusWithCountResource.md → AdminNoteResource.md} +16 -10
- package/docs/{TransactionResourceArrayResponse.md → AdminNoteResourceArrayResponse.md} +5 -5
- package/docs/AdminOrderResource.md +3 -5
- package/docs/CartResource.md +4 -6
- package/docs/{IndexTransactionRequest.md → GetAllAdminNoteRequest.md} +8 -16
- package/docs/OrderListResource.md +0 -6
- package/docs/OrdersApi.md +3 -141
- package/docs/{PaginatedTransactionResourceResponse.md → PaginatedAdminNoteResourceResponse.md} +5 -5
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/docs/UpdateOrderRequestBillingAddress.md +2 -2
- package/docs/UpdateOrderRequestShippingAddress.md +2 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +54 -0
- package/src/apis/OrdersApi.ts +3 -124
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -12
- package/src/models/AdminNoteResource.ts +118 -0
- package/src/models/AdminNoteResourceArrayResponse.ts +73 -0
- package/src/models/AdminOrderResource.ts +10 -19
- package/src/models/CartResource.ts +9 -17
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllAdminNoteRequest.ts +157 -0
- package/src/models/GetAllOrderRequest.ts +1 -2
- package/src/models/IndexOrderRequest.ts +1 -2
- package/src/models/OrderListResource.ts +0 -26
- package/src/models/PaginatedAdminNoteResourceResponse.ts +90 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/UpdateOrderRequestBillingAddress.ts +4 -4
- package/src/models/UpdateOrderRequestShippingAddress.ts +4 -4
- package/src/models/index.ts +4 -17
- package/dist/apis/TransactionsApi.d.ts +0 -69
- package/dist/apis/TransactionsApi.js +0 -262
- package/dist/models/AttachCouponOrderRequest.d.ts +0 -32
- package/dist/models/AttachCouponOrderRequest.js +0 -51
- package/dist/models/DetachCouponOrderRequest.d.ts +0 -32
- package/dist/models/DetachCouponOrderRequest.js +0 -51
- package/dist/models/IndexTransactionRequest.d.ts +0 -127
- package/dist/models/IndexTransactionRequest.js +0 -91
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -50
- package/dist/models/OrderStatusWithCountResource.js +0 -63
- package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderStatusWithCountResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
- package/dist/models/PaymentMethod.d.ts +0 -30
- package/dist/models/PaymentMethod.js +0 -56
- package/dist/models/PaymentSource.d.ts +0 -26
- package/dist/models/PaymentSource.js +0 -52
- package/dist/models/PaymentStatus.d.ts +0 -25
- package/dist/models/PaymentStatus.js +0 -51
- package/dist/models/RefundTransactionRequest.d.ts +0 -38
- package/dist/models/RefundTransactionRequest.js +0 -53
- package/dist/models/StoreTransactionRequest.d.ts +0 -81
- package/dist/models/StoreTransactionRequest.js +0 -78
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/TransactionResource.d.ts +0 -152
- package/dist/models/TransactionResource.js +0 -109
- package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionResourceArrayResponse.js +0 -50
- package/dist/models/TransactionType.d.ts +0 -25
- package/dist/models/TransactionType.js +0 -51
- package/docs/AttachCouponOrderRequest.md +0 -34
- package/docs/DetachCouponOrderRequest.md +0 -34
- package/docs/OrderStatusWithCountResourceArrayResponse.md +0 -34
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/PaymentMethod.md +0 -32
- package/docs/PaymentSource.md +0 -32
- package/docs/PaymentStatus.md +0 -32
- package/docs/RefundTransactionRequest.md +0 -36
- package/docs/StoreTransactionRequest.md +0 -46
- package/docs/TransactionListResource.md +0 -74
- package/docs/TransactionListResourceArrayResponse.md +0 -34
- package/docs/TransactionResource.md +0 -74
- package/docs/TransactionType.md +0 -32
- package/docs/TransactionsApi.md +0 -209
- package/src/apis/TransactionsApi.ts +0 -193
- package/src/models/AttachCouponOrderRequest.ts +0 -66
- package/src/models/DetachCouponOrderRequest.ts +0 -66
- package/src/models/IndexTransactionRequest.ts +0 -190
- package/src/models/OrderStatusWithCountResource.ts +0 -93
- package/src/models/OrderStatusWithCountResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
- package/src/models/PaymentMethod.ts +0 -58
- package/src/models/PaymentSource.ts +0 -54
- package/src/models/PaymentStatus.ts +0 -53
- package/src/models/RefundTransactionRequest.ts +0 -74
- package/src/models/StoreTransactionRequest.ts +0 -131
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/TransactionResource.ts +0 -235
- package/src/models/TransactionResourceArrayResponse.ts +0 -73
- package/src/models/TransactionType.ts +0 -53
|
@@ -1,262 +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.TransactionsApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var GenericResponse_1 = require("../models/GenericResponse");
|
|
70
|
-
var IndexTransactionRequest_1 = require("../models/IndexTransactionRequest");
|
|
71
|
-
var PaginatedTransactionListResourceResponse_1 = require("../models/PaginatedTransactionListResourceResponse");
|
|
72
|
-
var RefundTransactionRequest_1 = require("../models/RefundTransactionRequest");
|
|
73
|
-
var StoreTransactionRequest_1 = require("../models/StoreTransactionRequest");
|
|
74
|
-
var TransactionResource_1 = require("../models/TransactionResource");
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
var TransactionsApi = /** @class */ (function (_super) {
|
|
79
|
-
__extends(TransactionsApi, _super);
|
|
80
|
-
function TransactionsApi() {
|
|
81
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Creates request options for indexTransaction without sending the request
|
|
85
|
-
*/
|
|
86
|
-
TransactionsApi.prototype.indexTransactionRequestOpts = function (requestParameters) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
-
var queryParameters, headerParameters, urlPath;
|
|
89
|
-
return __generator(this, function (_a) {
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/transactions/list";
|
|
94
|
-
return [2 /*return*/, {
|
|
95
|
-
path: urlPath,
|
|
96
|
-
method: 'POST',
|
|
97
|
-
headers: headerParameters,
|
|
98
|
-
query: queryParameters,
|
|
99
|
-
body: (0, IndexTransactionRequest_1.IndexTransactionRequestToJSON)(requestParameters['indexTransactionRequest']),
|
|
100
|
-
}];
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Auto-generated: indexTransaction
|
|
106
|
-
*/
|
|
107
|
-
TransactionsApi.prototype.indexTransactionRaw = function (requestParameters, initOverrides) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
-
var requestOptions, response;
|
|
110
|
-
return __generator(this, function (_a) {
|
|
111
|
-
switch (_a.label) {
|
|
112
|
-
case 0: return [4 /*yield*/, this.indexTransactionRequestOpts(requestParameters)];
|
|
113
|
-
case 1:
|
|
114
|
-
requestOptions = _a.sent();
|
|
115
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
116
|
-
case 2:
|
|
117
|
-
response = _a.sent();
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedTransactionListResourceResponse_1.PaginatedTransactionListResourceResponseFromJSON)(jsonValue); })];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Auto-generated: indexTransaction
|
|
125
|
-
*/
|
|
126
|
-
TransactionsApi.prototype.indexTransaction = function () {
|
|
127
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
128
|
-
var response;
|
|
129
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
130
|
-
return __generator(this, function (_a) {
|
|
131
|
-
switch (_a.label) {
|
|
132
|
-
case 0: return [4 /*yield*/, this.indexTransactionRaw(requestParameters, initOverrides)];
|
|
133
|
-
case 1:
|
|
134
|
-
response = _a.sent();
|
|
135
|
-
return [4 /*yield*/, response.value()];
|
|
136
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Creates request options for refundTransaction without sending the request
|
|
143
|
-
*/
|
|
144
|
-
TransactionsApi.prototype.refundTransactionRequestOpts = function (requestParameters) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
-
var queryParameters, headerParameters, urlPath;
|
|
147
|
-
return __generator(this, function (_a) {
|
|
148
|
-
if (requestParameters['transaction'] == null) {
|
|
149
|
-
throw new runtime.RequiredError('transaction', 'Required parameter "transaction" was null or undefined when calling refundTransaction().');
|
|
150
|
-
}
|
|
151
|
-
queryParameters = {};
|
|
152
|
-
headerParameters = {};
|
|
153
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
-
urlPath = "/admin-api/transactions/{transaction}/refund";
|
|
155
|
-
urlPath = urlPath.replace('{transaction}', encodeURIComponent(String(requestParameters['transaction'])));
|
|
156
|
-
return [2 /*return*/, {
|
|
157
|
-
path: urlPath,
|
|
158
|
-
method: 'POST',
|
|
159
|
-
headers: headerParameters,
|
|
160
|
-
query: queryParameters,
|
|
161
|
-
body: (0, RefundTransactionRequest_1.RefundTransactionRequestToJSON)(requestParameters['refundTransactionRequest']),
|
|
162
|
-
}];
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* Auto-generated: refundTransaction
|
|
168
|
-
*/
|
|
169
|
-
TransactionsApi.prototype.refundTransactionRaw = function (requestParameters, initOverrides) {
|
|
170
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var requestOptions, response;
|
|
172
|
-
return __generator(this, function (_a) {
|
|
173
|
-
switch (_a.label) {
|
|
174
|
-
case 0: return [4 /*yield*/, this.refundTransactionRequestOpts(requestParameters)];
|
|
175
|
-
case 1:
|
|
176
|
-
requestOptions = _a.sent();
|
|
177
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
178
|
-
case 2:
|
|
179
|
-
response = _a.sent();
|
|
180
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TransactionResource_1.TransactionResourceFromJSON)(jsonValue); })];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Auto-generated: refundTransaction
|
|
187
|
-
*/
|
|
188
|
-
TransactionsApi.prototype.refundTransaction = function (requestParameters, initOverrides) {
|
|
189
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
190
|
-
var response;
|
|
191
|
-
return __generator(this, function (_a) {
|
|
192
|
-
switch (_a.label) {
|
|
193
|
-
case 0: return [4 /*yield*/, this.refundTransactionRaw(requestParameters, initOverrides)];
|
|
194
|
-
case 1:
|
|
195
|
-
response = _a.sent();
|
|
196
|
-
return [4 /*yield*/, response.value()];
|
|
197
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* Creates request options for storeTransaction without sending the request
|
|
204
|
-
*/
|
|
205
|
-
TransactionsApi.prototype.storeTransactionRequestOpts = function (requestParameters) {
|
|
206
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
207
|
-
var queryParameters, headerParameters, urlPath;
|
|
208
|
-
return __generator(this, function (_a) {
|
|
209
|
-
queryParameters = {};
|
|
210
|
-
headerParameters = {};
|
|
211
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
212
|
-
urlPath = "/admin-api/transactions/create";
|
|
213
|
-
return [2 /*return*/, {
|
|
214
|
-
path: urlPath,
|
|
215
|
-
method: 'POST',
|
|
216
|
-
headers: headerParameters,
|
|
217
|
-
query: queryParameters,
|
|
218
|
-
body: (0, StoreTransactionRequest_1.StoreTransactionRequestToJSON)(requestParameters['storeTransactionRequest']),
|
|
219
|
-
}];
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Auto-generated: storeTransaction
|
|
225
|
-
*/
|
|
226
|
-
TransactionsApi.prototype.storeTransactionRaw = function (requestParameters, initOverrides) {
|
|
227
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
-
var requestOptions, response;
|
|
229
|
-
return __generator(this, function (_a) {
|
|
230
|
-
switch (_a.label) {
|
|
231
|
-
case 0: return [4 /*yield*/, this.storeTransactionRequestOpts(requestParameters)];
|
|
232
|
-
case 1:
|
|
233
|
-
requestOptions = _a.sent();
|
|
234
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
-
case 2:
|
|
236
|
-
response = _a.sent();
|
|
237
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GenericResponse_1.GenericResponseFromJSON)(jsonValue); })];
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
/**
|
|
243
|
-
* Auto-generated: storeTransaction
|
|
244
|
-
*/
|
|
245
|
-
TransactionsApi.prototype.storeTransaction = function () {
|
|
246
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
247
|
-
var response;
|
|
248
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
249
|
-
return __generator(this, function (_a) {
|
|
250
|
-
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, this.storeTransactionRaw(requestParameters, initOverrides)];
|
|
252
|
-
case 1:
|
|
253
|
-
response = _a.sent();
|
|
254
|
-
return [4 /*yield*/, response.value()];
|
|
255
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
return TransactionsApi;
|
|
261
|
-
}(runtime.BaseAPI));
|
|
262
|
-
exports.TransactionsApi = TransactionsApi;
|
|
@@ -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 AttachCouponOrderRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface AttachCouponOrderRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AttachCouponOrderRequest
|
|
22
|
-
*/
|
|
23
|
-
couponCode: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfAttachCouponOrderRequest(value: object): value is AttachCouponOrderRequest;
|
|
29
|
-
export declare function AttachCouponOrderRequestFromJSON(json: any): AttachCouponOrderRequest;
|
|
30
|
-
export declare function AttachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponOrderRequest;
|
|
31
|
-
export declare function AttachCouponOrderRequestToJSON(json: any): AttachCouponOrderRequest;
|
|
32
|
-
export declare function AttachCouponOrderRequestToJSONTyped(value?: AttachCouponOrderRequest | 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.instanceOfAttachCouponOrderRequest = instanceOfAttachCouponOrderRequest;
|
|
17
|
-
exports.AttachCouponOrderRequestFromJSON = AttachCouponOrderRequestFromJSON;
|
|
18
|
-
exports.AttachCouponOrderRequestFromJSONTyped = AttachCouponOrderRequestFromJSONTyped;
|
|
19
|
-
exports.AttachCouponOrderRequestToJSON = AttachCouponOrderRequestToJSON;
|
|
20
|
-
exports.AttachCouponOrderRequestToJSONTyped = AttachCouponOrderRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the AttachCouponOrderRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAttachCouponOrderRequest(value) {
|
|
25
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function AttachCouponOrderRequestFromJSON(json) {
|
|
30
|
-
return AttachCouponOrderRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function AttachCouponOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponCode': json['coupon_code'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function AttachCouponOrderRequestToJSON(json) {
|
|
41
|
-
return AttachCouponOrderRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function AttachCouponOrderRequestToJSONTyped(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,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 DetachCouponOrderRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface DetachCouponOrderRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof DetachCouponOrderRequest
|
|
22
|
-
*/
|
|
23
|
-
couponId: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfDetachCouponOrderRequest(value: object): value is DetachCouponOrderRequest;
|
|
29
|
-
export declare function DetachCouponOrderRequestFromJSON(json: any): DetachCouponOrderRequest;
|
|
30
|
-
export declare function DetachCouponOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponOrderRequest;
|
|
31
|
-
export declare function DetachCouponOrderRequestToJSON(json: any): DetachCouponOrderRequest;
|
|
32
|
-
export declare function DetachCouponOrderRequestToJSONTyped(value?: DetachCouponOrderRequest | 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.instanceOfDetachCouponOrderRequest = instanceOfDetachCouponOrderRequest;
|
|
17
|
-
exports.DetachCouponOrderRequestFromJSON = DetachCouponOrderRequestFromJSON;
|
|
18
|
-
exports.DetachCouponOrderRequestFromJSONTyped = DetachCouponOrderRequestFromJSONTyped;
|
|
19
|
-
exports.DetachCouponOrderRequestToJSON = DetachCouponOrderRequestToJSON;
|
|
20
|
-
exports.DetachCouponOrderRequestToJSONTyped = DetachCouponOrderRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the DetachCouponOrderRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfDetachCouponOrderRequest(value) {
|
|
25
|
-
if (!('couponId' in value) || value['couponId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function DetachCouponOrderRequestFromJSON(json) {
|
|
30
|
-
return DetachCouponOrderRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function DetachCouponOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'couponId': json['coupon_id'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function DetachCouponOrderRequestToJSON(json) {
|
|
41
|
-
return DetachCouponOrderRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DetachCouponOrderRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'coupon_id': value['couponId'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,127 +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 IndexTransactionRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IndexTransactionRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IndexTransactionRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {IndexTransactionRequestSortByEnum}
|
|
27
|
-
* @memberof IndexTransactionRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: IndexTransactionRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {IndexTransactionRequestSortDirectionEnum}
|
|
33
|
-
* @memberof IndexTransactionRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: IndexTransactionRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof IndexTransactionRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof IndexTransactionRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<string>}
|
|
51
|
-
* @memberof IndexTransactionRequest
|
|
52
|
-
*/
|
|
53
|
-
paymentSource?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof IndexTransactionRequest
|
|
58
|
-
*/
|
|
59
|
-
type?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof IndexTransactionRequest
|
|
64
|
-
*/
|
|
65
|
-
paymentMethod?: Array<string>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<string>}
|
|
69
|
-
* @memberof IndexTransactionRequest
|
|
70
|
-
*/
|
|
71
|
-
status?: Array<string>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Date}
|
|
75
|
-
* @memberof IndexTransactionRequest
|
|
76
|
-
*/
|
|
77
|
-
beforeCreatedAt?: Date;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Date}
|
|
81
|
-
* @memberof IndexTransactionRequest
|
|
82
|
-
*/
|
|
83
|
-
afterCreatedAt?: Date;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof IndexTransactionRequest
|
|
88
|
-
*/
|
|
89
|
-
relatedId?: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof IndexTransactionRequest
|
|
94
|
-
*/
|
|
95
|
-
relatedType?: string;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {boolean}
|
|
99
|
-
* @memberof IndexTransactionRequest
|
|
100
|
-
*/
|
|
101
|
-
includesRelations?: boolean;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @export
|
|
105
|
-
*/
|
|
106
|
-
export declare const IndexTransactionRequestSortByEnum: {
|
|
107
|
-
readonly Id: "id";
|
|
108
|
-
readonly CreatedAt: "created_at";
|
|
109
|
-
readonly TotalAmount: "total_amount";
|
|
110
|
-
};
|
|
111
|
-
export type IndexTransactionRequestSortByEnum = typeof IndexTransactionRequestSortByEnum[keyof typeof IndexTransactionRequestSortByEnum];
|
|
112
|
-
/**
|
|
113
|
-
* @export
|
|
114
|
-
*/
|
|
115
|
-
export declare const IndexTransactionRequestSortDirectionEnum: {
|
|
116
|
-
readonly Asc: "asc";
|
|
117
|
-
readonly Desc: "desc";
|
|
118
|
-
};
|
|
119
|
-
export type IndexTransactionRequestSortDirectionEnum = typeof IndexTransactionRequestSortDirectionEnum[keyof typeof IndexTransactionRequestSortDirectionEnum];
|
|
120
|
-
/**
|
|
121
|
-
* Check if a given object implements the IndexTransactionRequest interface.
|
|
122
|
-
*/
|
|
123
|
-
export declare function instanceOfIndexTransactionRequest(value: object): value is IndexTransactionRequest;
|
|
124
|
-
export declare function IndexTransactionRequestFromJSON(json: any): IndexTransactionRequest;
|
|
125
|
-
export declare function IndexTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexTransactionRequest;
|
|
126
|
-
export declare function IndexTransactionRequestToJSON(json: any): IndexTransactionRequest;
|
|
127
|
-
export declare function IndexTransactionRequestToJSONTyped(value?: IndexTransactionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,91 +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.IndexTransactionRequestSortDirectionEnum = exports.IndexTransactionRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfIndexTransactionRequest = instanceOfIndexTransactionRequest;
|
|
18
|
-
exports.IndexTransactionRequestFromJSON = IndexTransactionRequestFromJSON;
|
|
19
|
-
exports.IndexTransactionRequestFromJSONTyped = IndexTransactionRequestFromJSONTyped;
|
|
20
|
-
exports.IndexTransactionRequestToJSON = IndexTransactionRequestToJSON;
|
|
21
|
-
exports.IndexTransactionRequestToJSONTyped = IndexTransactionRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.IndexTransactionRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
CreatedAt: 'created_at',
|
|
28
|
-
TotalAmount: 'total_amount'
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
exports.IndexTransactionRequestSortDirectionEnum = {
|
|
34
|
-
Asc: 'asc',
|
|
35
|
-
Desc: 'desc'
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IndexTransactionRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
function instanceOfIndexTransactionRequest(value) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
function IndexTransactionRequestFromJSON(json) {
|
|
44
|
-
return IndexTransactionRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function IndexTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
-
if (json == null) {
|
|
48
|
-
return json;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
53
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
54
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
-
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
57
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
58
|
-
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
59
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
60
|
-
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
61
|
-
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
62
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function IndexTransactionRequestToJSON(json) {
|
|
68
|
-
return IndexTransactionRequestToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
function IndexTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
'search': value['search'],
|
|
77
|
-
'sortBy': value['sortBy'],
|
|
78
|
-
'sortDirection': value['sortDirection'],
|
|
79
|
-
'per_page': value['perPage'],
|
|
80
|
-
'page': value['page'],
|
|
81
|
-
'payment_source': value['paymentSource'],
|
|
82
|
-
'type': value['type'],
|
|
83
|
-
'payment_method': value['paymentMethod'],
|
|
84
|
-
'status': value['status'],
|
|
85
|
-
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
86
|
-
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
87
|
-
'related_id': value['relatedId'],
|
|
88
|
-
'related_type': value['relatedType'],
|
|
89
|
-
'includes_relations': value['includesRelations'],
|
|
90
|
-
};
|
|
91
|
-
}
|