@digital8/lighting-illusions-ts-sdk 0.0.1931 → 0.0.1932
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 +0 -28
- package/README.md +2 -18
- 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 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +6 -0
- package/dist/models/StoreCartRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +6 -0
- package/dist/models/UpdateOrderRequest.js +2 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -7
- package/dist/models/UpdateOrderRequestShippingAddress.js +1 -5
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -13
- package/docs/AdminOrderResource.md +2 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CartResource.md +2 -0
- package/docs/StoreCartRequest.md +2 -0
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +2 -0
- package/docs/UpdateOrderRequestBillingAddress.md +0 -2
- package/docs/UpdateOrderRequestShippingAddress.md +0 -2
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +6 -4
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +8 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
- package/src/models/UpdateOrderRequestShippingAddress.ts +2 -11
- package/src/models/index.ts +0 -13
- package/dist/apis/TransactionsApi.d.ts +0 -69
- package/dist/apis/TransactionsApi.js +0 -262
- package/dist/models/IndexTransactionRequest.d.ts +0 -127
- package/dist/models/IndexTransactionRequest.js +0 -91
- 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/IndexTransactionRequest.md +0 -60
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/PaginatedTransactionResourceResponse.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/TransactionResourceArrayResponse.md +0 -34
- package/docs/TransactionType.md +0 -32
- package/docs/TransactionsApi.md +0 -209
- package/src/apis/TransactionsApi.ts +0 -193
- package/src/models/IndexTransactionRequest.ts +0 -190
- 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
|
@@ -24,13 +24,7 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateOrderRequestShippingAddress
|
|
26
26
|
*/
|
|
27
|
-
addresseeName
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
32
|
-
*/
|
|
33
|
-
addressee?: string | null;
|
|
27
|
+
addresseeName?: string | null;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -79,7 +73,6 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
79
73
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
80
74
|
*/
|
|
81
75
|
export function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress {
|
|
82
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
83
76
|
return true;
|
|
84
77
|
}
|
|
85
78
|
|
|
@@ -93,8 +86,7 @@ export function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignore
|
|
|
93
86
|
}
|
|
94
87
|
return {
|
|
95
88
|
|
|
96
|
-
'addresseeName': json['addressee_name'],
|
|
97
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
89
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
98
90
|
'company': json['company'] == null ? undefined : json['company'],
|
|
99
91
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
100
92
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -117,7 +109,6 @@ export function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrder
|
|
|
117
109
|
return {
|
|
118
110
|
|
|
119
111
|
'addressee_name': value['addresseeName'],
|
|
120
|
-
'addressee': value['addressee'],
|
|
121
112
|
'company': value['company'],
|
|
122
113
|
'line_1': value['line1'],
|
|
123
114
|
'line_2': value['line2'],
|
package/src/models/index.ts
CHANGED
|
@@ -160,7 +160,6 @@ export * from './IndexSiteRequest';
|
|
|
160
160
|
export * from './IndexStoreRequest';
|
|
161
161
|
export * from './IndexSupplierRequest';
|
|
162
162
|
export * from './IndexTagRequest';
|
|
163
|
-
export * from './IndexTransactionRequest';
|
|
164
163
|
export * from './LabelListResource';
|
|
165
164
|
export * from './LabelListResourceArrayResponse';
|
|
166
165
|
export * from './LabelLiteResource';
|
|
@@ -268,12 +267,7 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
268
267
|
export * from './PaginatedTagListResourceResponse';
|
|
269
268
|
export * from './PaginatedTagLiteResourceResponse';
|
|
270
269
|
export * from './PaginatedTagResourceResponse';
|
|
271
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
272
|
-
export * from './PaginatedTransactionResourceResponse';
|
|
273
270
|
export * from './PagingMetadata';
|
|
274
|
-
export * from './PaymentMethod';
|
|
275
|
-
export * from './PaymentSource';
|
|
276
|
-
export * from './PaymentStatus';
|
|
277
271
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
278
272
|
export * from './PreviewAutomationRulesResource';
|
|
279
273
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -373,7 +367,6 @@ export * from './RedirectFrontendResource';
|
|
|
373
367
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
374
368
|
export * from './RedirectListResource';
|
|
375
369
|
export * from './RedirectListResourceArrayResponse';
|
|
376
|
-
export * from './RefundTransactionRequest';
|
|
377
370
|
export * from './SEOResource';
|
|
378
371
|
export * from './SEOResourceArrayResponse';
|
|
379
372
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -444,7 +437,6 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
444
437
|
export * from './StoreStoreSpecialDateRequest';
|
|
445
438
|
export * from './StoreSupplierRequest';
|
|
446
439
|
export * from './StoreTagRequest';
|
|
447
|
-
export * from './StoreTransactionRequest';
|
|
448
440
|
export * from './SupplierFrontendResource';
|
|
449
441
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
450
442
|
export * from './SupplierListResource';
|
|
@@ -462,11 +454,6 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
462
454
|
export * from './TagResource';
|
|
463
455
|
export * from './TagResourceArrayResponse';
|
|
464
456
|
export * from './TagType';
|
|
465
|
-
export * from './TransactionListResource';
|
|
466
|
-
export * from './TransactionListResourceArrayResponse';
|
|
467
|
-
export * from './TransactionResource';
|
|
468
|
-
export * from './TransactionResourceArrayResponse';
|
|
469
|
-
export * from './TransactionType';
|
|
470
457
|
export * from './UpdateAssetForAssetableRequest';
|
|
471
458
|
export * from './UpdateAttributeRequest';
|
|
472
459
|
export * from './UpdateAttributeValueRequest';
|
|
@@ -1,69 +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 GenericResponse } from '../models/GenericResponse';
|
|
14
|
-
import { type IndexTransactionRequest } from '../models/IndexTransactionRequest';
|
|
15
|
-
import { type PaginatedTransactionListResourceResponse } from '../models/PaginatedTransactionListResourceResponse';
|
|
16
|
-
import { type RefundTransactionRequest } from '../models/RefundTransactionRequest';
|
|
17
|
-
import { type StoreTransactionRequest } from '../models/StoreTransactionRequest';
|
|
18
|
-
import { type TransactionResource } from '../models/TransactionResource';
|
|
19
|
-
export interface IndexTransactionOperationRequest {
|
|
20
|
-
indexTransactionRequest?: IndexTransactionRequest;
|
|
21
|
-
}
|
|
22
|
-
export interface RefundTransactionOperationRequest {
|
|
23
|
-
transaction: number;
|
|
24
|
-
refundTransactionRequest?: RefundTransactionRequest;
|
|
25
|
-
}
|
|
26
|
-
export interface StoreTransactionOperationRequest {
|
|
27
|
-
storeTransactionRequest?: StoreTransactionRequest;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
export declare class TransactionsApi extends runtime.BaseAPI {
|
|
33
|
-
/**
|
|
34
|
-
* Creates request options for indexTransaction without sending the request
|
|
35
|
-
*/
|
|
36
|
-
indexTransactionRequestOpts(requestParameters: IndexTransactionOperationRequest): Promise<runtime.RequestOpts>;
|
|
37
|
-
/**
|
|
38
|
-
* Auto-generated: indexTransaction
|
|
39
|
-
*/
|
|
40
|
-
indexTransactionRaw(requestParameters: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionListResourceResponse>>;
|
|
41
|
-
/**
|
|
42
|
-
* Auto-generated: indexTransaction
|
|
43
|
-
*/
|
|
44
|
-
indexTransaction(requestParameters?: IndexTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionListResourceResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Creates request options for refundTransaction without sending the request
|
|
47
|
-
*/
|
|
48
|
-
refundTransactionRequestOpts(requestParameters: RefundTransactionOperationRequest): Promise<runtime.RequestOpts>;
|
|
49
|
-
/**
|
|
50
|
-
* Auto-generated: refundTransaction
|
|
51
|
-
*/
|
|
52
|
-
refundTransactionRaw(requestParameters: RefundTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionResource>>;
|
|
53
|
-
/**
|
|
54
|
-
* Auto-generated: refundTransaction
|
|
55
|
-
*/
|
|
56
|
-
refundTransaction(requestParameters: RefundTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionResource>;
|
|
57
|
-
/**
|
|
58
|
-
* Creates request options for storeTransaction without sending the request
|
|
59
|
-
*/
|
|
60
|
-
storeTransactionRequestOpts(requestParameters: StoreTransactionOperationRequest): Promise<runtime.RequestOpts>;
|
|
61
|
-
/**
|
|
62
|
-
* Auto-generated: storeTransaction
|
|
63
|
-
*/
|
|
64
|
-
storeTransactionRaw(requestParameters: StoreTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
65
|
-
/**
|
|
66
|
-
* Auto-generated: storeTransaction
|
|
67
|
-
*/
|
|
68
|
-
storeTransaction(requestParameters?: StoreTransactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
69
|
-
}
|
|
@@ -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,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
|
-
}
|
|
@@ -1,40 +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 type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedTransactionListResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedTransactionListResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<TransactionListResource>}
|
|
23
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<TransactionListResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
|
|
37
|
-
export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
38
|
-
export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
|
|
39
|
-
export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
40
|
-
export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|