@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.
Files changed (112) hide show
  1. package/.openapi-generator/FILES +0 -28
  2. package/README.md +2 -18
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/AdminOrderResource.d.ts +6 -0
  10. package/dist/models/AdminOrderResource.js +4 -0
  11. package/dist/models/CartListResource.d.ts +6 -0
  12. package/dist/models/CartListResource.js +4 -0
  13. package/dist/models/CartResource.d.ts +6 -0
  14. package/dist/models/CartResource.js +4 -0
  15. package/dist/models/StoreCartRequest.d.ts +6 -0
  16. package/dist/models/StoreCartRequest.js +2 -0
  17. package/dist/models/StoreFrontendResource.d.ts +1 -1
  18. package/dist/models/StoreFrontendResource.js +1 -3
  19. package/dist/models/StoreListResource.d.ts +1 -1
  20. package/dist/models/StoreListResource.js +1 -3
  21. package/dist/models/StoreResource.d.ts +2 -2
  22. package/dist/models/StoreResource.js +6 -2
  23. package/dist/models/UpdateCartRequest.d.ts +6 -0
  24. package/dist/models/UpdateCartRequest.js +2 -0
  25. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  26. package/dist/models/UpdateOrderRequest.js +2 -0
  27. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
  28. package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
  29. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +1 -7
  30. package/dist/models/UpdateOrderRequestShippingAddress.js +1 -5
  31. package/dist/models/index.d.ts +0 -13
  32. package/dist/models/index.js +0 -13
  33. package/docs/AdminOrderResource.md +2 -0
  34. package/docs/CartListResource.md +2 -0
  35. package/docs/CartResource.md +2 -0
  36. package/docs/StoreCartRequest.md +2 -0
  37. package/docs/UpdateCartRequest.md +2 -0
  38. package/docs/UpdateOrderRequest.md +2 -0
  39. package/docs/UpdateOrderRequestBillingAddress.md +0 -2
  40. package/docs/UpdateOrderRequestShippingAddress.md +0 -2
  41. package/package.json +1 -1
  42. package/src/apis/index.ts +0 -1
  43. package/src/models/AddressFrontendResource.ts +3 -2
  44. package/src/models/AddressResource.ts +2 -3
  45. package/src/models/AdminOrderResource.ts +9 -0
  46. package/src/models/CartListResource.ts +9 -0
  47. package/src/models/CartResource.ts +9 -0
  48. package/src/models/StoreCartRequest.ts +8 -0
  49. package/src/models/StoreFrontendResource.ts +2 -3
  50. package/src/models/StoreListResource.ts +2 -3
  51. package/src/models/StoreResource.ts +6 -4
  52. package/src/models/UpdateCartRequest.ts +8 -0
  53. package/src/models/UpdateOrderRequest.ts +8 -0
  54. package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
  55. package/src/models/UpdateOrderRequestShippingAddress.ts +2 -11
  56. package/src/models/index.ts +0 -13
  57. package/dist/apis/TransactionsApi.d.ts +0 -69
  58. package/dist/apis/TransactionsApi.js +0 -262
  59. package/dist/models/IndexTransactionRequest.d.ts +0 -127
  60. package/dist/models/IndexTransactionRequest.js +0 -91
  61. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  62. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  63. package/dist/models/PaginatedTransactionResourceResponse.d.ts +0 -40
  64. package/dist/models/PaginatedTransactionResourceResponse.js +0 -57
  65. package/dist/models/PaymentMethod.d.ts +0 -30
  66. package/dist/models/PaymentMethod.js +0 -56
  67. package/dist/models/PaymentSource.d.ts +0 -26
  68. package/dist/models/PaymentSource.js +0 -52
  69. package/dist/models/PaymentStatus.d.ts +0 -25
  70. package/dist/models/PaymentStatus.js +0 -51
  71. package/dist/models/RefundTransactionRequest.d.ts +0 -38
  72. package/dist/models/RefundTransactionRequest.js +0 -53
  73. package/dist/models/StoreTransactionRequest.d.ts +0 -81
  74. package/dist/models/StoreTransactionRequest.js +0 -78
  75. package/dist/models/TransactionListResource.d.ts +0 -152
  76. package/dist/models/TransactionListResource.js +0 -109
  77. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  78. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  79. package/dist/models/TransactionResource.d.ts +0 -152
  80. package/dist/models/TransactionResource.js +0 -109
  81. package/dist/models/TransactionResourceArrayResponse.d.ts +0 -33
  82. package/dist/models/TransactionResourceArrayResponse.js +0 -50
  83. package/dist/models/TransactionType.d.ts +0 -25
  84. package/dist/models/TransactionType.js +0 -51
  85. package/docs/IndexTransactionRequest.md +0 -60
  86. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  87. package/docs/PaginatedTransactionResourceResponse.md +0 -36
  88. package/docs/PaymentMethod.md +0 -32
  89. package/docs/PaymentSource.md +0 -32
  90. package/docs/PaymentStatus.md +0 -32
  91. package/docs/RefundTransactionRequest.md +0 -36
  92. package/docs/StoreTransactionRequest.md +0 -46
  93. package/docs/TransactionListResource.md +0 -74
  94. package/docs/TransactionListResourceArrayResponse.md +0 -34
  95. package/docs/TransactionResource.md +0 -74
  96. package/docs/TransactionResourceArrayResponse.md +0 -34
  97. package/docs/TransactionType.md +0 -32
  98. package/docs/TransactionsApi.md +0 -209
  99. package/src/apis/TransactionsApi.ts +0 -193
  100. package/src/models/IndexTransactionRequest.ts +0 -190
  101. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  102. package/src/models/PaginatedTransactionResourceResponse.ts +0 -90
  103. package/src/models/PaymentMethod.ts +0 -58
  104. package/src/models/PaymentSource.ts +0 -54
  105. package/src/models/PaymentStatus.ts +0 -53
  106. package/src/models/RefundTransactionRequest.ts +0 -74
  107. package/src/models/StoreTransactionRequest.ts +0 -131
  108. package/src/models/TransactionListResource.ts +0 -235
  109. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
  110. package/src/models/TransactionResource.ts +0 -235
  111. package/src/models/TransactionResourceArrayResponse.ts +0 -73
  112. package/src/models/TransactionType.ts +0 -53
@@ -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.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
17
- exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
18
- exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
19
- exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
20
- exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var TransactionListResource_1 = require("./TransactionListResource");
23
- /**
24
- * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedTransactionListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedTransactionListResourceResponseFromJSON(json) {
34
- return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedTransactionListResourceResponseToJSON(json) {
46
- return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -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 { TransactionResource } from './TransactionResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedTransactionResourceResponse
18
- */
19
- export interface PaginatedTransactionResourceResponse {
20
- /**
21
- *
22
- * @type {Array<TransactionResource>}
23
- * @memberof PaginatedTransactionResourceResponse
24
- */
25
- data: Array<TransactionResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedTransactionResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedTransactionResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse;
37
- export declare function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse;
38
- export declare function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse;
39
- export declare function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse;
40
- export declare function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | 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.instanceOfPaginatedTransactionResourceResponse = instanceOfPaginatedTransactionResourceResponse;
17
- exports.PaginatedTransactionResourceResponseFromJSON = PaginatedTransactionResourceResponseFromJSON;
18
- exports.PaginatedTransactionResourceResponseFromJSONTyped = PaginatedTransactionResourceResponseFromJSONTyped;
19
- exports.PaginatedTransactionResourceResponseToJSON = PaginatedTransactionResourceResponseToJSON;
20
- exports.PaginatedTransactionResourceResponseToJSONTyped = PaginatedTransactionResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var TransactionResource_1 = require("./TransactionResource");
23
- /**
24
- * Check if a given object implements the PaginatedTransactionResourceResponse interface.
25
- */
26
- function instanceOfPaginatedTransactionResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedTransactionResourceResponseFromJSON(json) {
34
- return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedTransactionResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(TransactionResource_1.TransactionResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedTransactionResourceResponseToJSON(json) {
46
- return PaginatedTransactionResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedTransactionResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(TransactionResource_1.TransactionResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,30 +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 PaymentMethod: {
17
- readonly BankDeposit: "bank_deposit";
18
- readonly Visa: "visa";
19
- readonly Mastercard: "mastercard";
20
- readonly AmericanExpress: "american_express";
21
- readonly GooglePay: "google_pay";
22
- readonly PayPal: "pay_pal";
23
- readonly ApplePay: "apple_pay";
24
- };
25
- export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
26
- export declare function instanceOfPaymentMethod(value: any): boolean;
27
- export declare function PaymentMethodFromJSON(json: any): PaymentMethod;
28
- export declare function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod;
29
- export declare function PaymentMethodToJSON(value?: PaymentMethod | null): any;
30
- export declare function PaymentMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethod;
@@ -1,56 +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.PaymentMethod = void 0;
17
- exports.instanceOfPaymentMethod = instanceOfPaymentMethod;
18
- exports.PaymentMethodFromJSON = PaymentMethodFromJSON;
19
- exports.PaymentMethodFromJSONTyped = PaymentMethodFromJSONTyped;
20
- exports.PaymentMethodToJSON = PaymentMethodToJSON;
21
- exports.PaymentMethodToJSONTyped = PaymentMethodToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.PaymentMethod = {
27
- BankDeposit: 'bank_deposit',
28
- Visa: 'visa',
29
- Mastercard: 'mastercard',
30
- AmericanExpress: 'american_express',
31
- GooglePay: 'google_pay',
32
- PayPal: 'pay_pal',
33
- ApplePay: 'apple_pay'
34
- };
35
- function instanceOfPaymentMethod(value) {
36
- for (var key in exports.PaymentMethod) {
37
- if (Object.prototype.hasOwnProperty.call(exports.PaymentMethod, key)) {
38
- if (exports.PaymentMethod[key] === value) {
39
- return true;
40
- }
41
- }
42
- }
43
- return false;
44
- }
45
- function PaymentMethodFromJSON(json) {
46
- return PaymentMethodFromJSONTyped(json, false);
47
- }
48
- function PaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
49
- return json;
50
- }
51
- function PaymentMethodToJSON(value) {
52
- return value;
53
- }
54
- function PaymentMethodToJSONTyped(value, ignoreDiscriminator) {
55
- return value;
56
- }
@@ -1,26 +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 PaymentSource: {
17
- readonly Checkout: "checkout";
18
- readonly ExpressCheckout: "express_checkout";
19
- readonly AdminPortal: "admin_portal";
20
- };
21
- export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource];
22
- export declare function instanceOfPaymentSource(value: any): boolean;
23
- export declare function PaymentSourceFromJSON(json: any): PaymentSource;
24
- export declare function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource;
25
- export declare function PaymentSourceToJSON(value?: PaymentSource | null): any;
26
- export declare function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource;
@@ -1,52 +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.PaymentSource = void 0;
17
- exports.instanceOfPaymentSource = instanceOfPaymentSource;
18
- exports.PaymentSourceFromJSON = PaymentSourceFromJSON;
19
- exports.PaymentSourceFromJSONTyped = PaymentSourceFromJSONTyped;
20
- exports.PaymentSourceToJSON = PaymentSourceToJSON;
21
- exports.PaymentSourceToJSONTyped = PaymentSourceToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.PaymentSource = {
27
- Checkout: 'checkout',
28
- ExpressCheckout: 'express_checkout',
29
- AdminPortal: 'admin_portal'
30
- };
31
- function instanceOfPaymentSource(value) {
32
- for (var key in exports.PaymentSource) {
33
- if (Object.prototype.hasOwnProperty.call(exports.PaymentSource, key)) {
34
- if (exports.PaymentSource[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function PaymentSourceFromJSON(json) {
42
- return PaymentSourceFromJSONTyped(json, false);
43
- }
44
- function PaymentSourceFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function PaymentSourceToJSON(value) {
48
- return value;
49
- }
50
- function PaymentSourceToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -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 PaymentStatus: {
17
- readonly Success: "success";
18
- readonly Failure: "failure";
19
- };
20
- export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
21
- export declare function instanceOfPaymentStatus(value: any): boolean;
22
- export declare function PaymentStatusFromJSON(json: any): PaymentStatus;
23
- export declare function PaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentStatus;
24
- export declare function PaymentStatusToJSON(value?: PaymentStatus | null): any;
25
- export declare function PaymentStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentStatus;
@@ -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.PaymentStatus = void 0;
17
- exports.instanceOfPaymentStatus = instanceOfPaymentStatus;
18
- exports.PaymentStatusFromJSON = PaymentStatusFromJSON;
19
- exports.PaymentStatusFromJSONTyped = PaymentStatusFromJSONTyped;
20
- exports.PaymentStatusToJSON = PaymentStatusToJSON;
21
- exports.PaymentStatusToJSONTyped = PaymentStatusToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.PaymentStatus = {
27
- Success: 'success',
28
- Failure: 'failure'
29
- };
30
- function instanceOfPaymentStatus(value) {
31
- for (var key in exports.PaymentStatus) {
32
- if (Object.prototype.hasOwnProperty.call(exports.PaymentStatus, key)) {
33
- if (exports.PaymentStatus[key] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
- function PaymentStatusFromJSON(json) {
41
- return PaymentStatusFromJSONTyped(json, false);
42
- }
43
- function PaymentStatusFromJSONTyped(json, ignoreDiscriminator) {
44
- return json;
45
- }
46
- function PaymentStatusToJSON(value) {
47
- return value;
48
- }
49
- function PaymentStatusToJSONTyped(value, ignoreDiscriminator) {
50
- return value;
51
- }
@@ -1,38 +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 RefundTransactionRequest
16
- */
17
- export interface RefundTransactionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof RefundTransactionRequest
22
- */
23
- amount: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof RefundTransactionRequest
28
- */
29
- description?: string | null;
30
- }
31
- /**
32
- * Check if a given object implements the RefundTransactionRequest interface.
33
- */
34
- export declare function instanceOfRefundTransactionRequest(value: object): value is RefundTransactionRequest;
35
- export declare function RefundTransactionRequestFromJSON(json: any): RefundTransactionRequest;
36
- export declare function RefundTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundTransactionRequest;
37
- export declare function RefundTransactionRequestToJSON(json: any): RefundTransactionRequest;
38
- export declare function RefundTransactionRequestToJSONTyped(value?: RefundTransactionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,53 +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.instanceOfRefundTransactionRequest = instanceOfRefundTransactionRequest;
17
- exports.RefundTransactionRequestFromJSON = RefundTransactionRequestFromJSON;
18
- exports.RefundTransactionRequestFromJSONTyped = RefundTransactionRequestFromJSONTyped;
19
- exports.RefundTransactionRequestToJSON = RefundTransactionRequestToJSON;
20
- exports.RefundTransactionRequestToJSONTyped = RefundTransactionRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the RefundTransactionRequest interface.
23
- */
24
- function instanceOfRefundTransactionRequest(value) {
25
- if (!('amount' in value) || value['amount'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function RefundTransactionRequestFromJSON(json) {
30
- return RefundTransactionRequestFromJSONTyped(json, false);
31
- }
32
- function RefundTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'amount': json['amount'],
38
- 'description': json['description'] == null ? undefined : json['description'],
39
- };
40
- }
41
- function RefundTransactionRequestToJSON(json) {
42
- return RefundTransactionRequestToJSONTyped(json, false);
43
- }
44
- function RefundTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
45
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'amount': value['amount'],
51
- 'description': value['description'],
52
- };
53
- }
@@ -1,81 +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 StoreTransactionRequest
16
- */
17
- export interface StoreTransactionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof StoreTransactionRequest
22
- */
23
- cartId?: number | null;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof StoreTransactionRequest
28
- */
29
- orderId?: number | null;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof StoreTransactionRequest
34
- */
35
- amount?: number | null;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof StoreTransactionRequest
40
- */
41
- surcharge: number;
42
- /**
43
- *
44
- * @type {StoreTransactionRequestPaymentMethodEnum}
45
- * @memberof StoreTransactionRequest
46
- */
47
- paymentMethod: StoreTransactionRequestPaymentMethodEnum;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof StoreTransactionRequest
52
- */
53
- nonce?: string | null;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof StoreTransactionRequest
58
- */
59
- deviceData?: string | null;
60
- }
61
- /**
62
- * @export
63
- */
64
- export declare const StoreTransactionRequestPaymentMethodEnum: {
65
- readonly BankDeposit: "bank_deposit";
66
- readonly Visa: "visa";
67
- readonly Mastercard: "mastercard";
68
- readonly AmericanExpress: "american_express";
69
- readonly GooglePay: "google_pay";
70
- readonly PayPal: "pay_pal";
71
- readonly ApplePay: "apple_pay";
72
- };
73
- export type StoreTransactionRequestPaymentMethodEnum = typeof StoreTransactionRequestPaymentMethodEnum[keyof typeof StoreTransactionRequestPaymentMethodEnum];
74
- /**
75
- * Check if a given object implements the StoreTransactionRequest interface.
76
- */
77
- export declare function instanceOfStoreTransactionRequest(value: object): value is StoreTransactionRequest;
78
- export declare function StoreTransactionRequestFromJSON(json: any): StoreTransactionRequest;
79
- export declare function StoreTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreTransactionRequest;
80
- export declare function StoreTransactionRequestToJSON(json: any): StoreTransactionRequest;
81
- export declare function StoreTransactionRequestToJSONTyped(value?: StoreTransactionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,78 +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.StoreTransactionRequestPaymentMethodEnum = void 0;
17
- exports.instanceOfStoreTransactionRequest = instanceOfStoreTransactionRequest;
18
- exports.StoreTransactionRequestFromJSON = StoreTransactionRequestFromJSON;
19
- exports.StoreTransactionRequestFromJSONTyped = StoreTransactionRequestFromJSONTyped;
20
- exports.StoreTransactionRequestToJSON = StoreTransactionRequestToJSON;
21
- exports.StoreTransactionRequestToJSONTyped = StoreTransactionRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.StoreTransactionRequestPaymentMethodEnum = {
26
- BankDeposit: 'bank_deposit',
27
- Visa: 'visa',
28
- Mastercard: 'mastercard',
29
- AmericanExpress: 'american_express',
30
- GooglePay: 'google_pay',
31
- PayPal: 'pay_pal',
32
- ApplePay: 'apple_pay'
33
- };
34
- /**
35
- * Check if a given object implements the StoreTransactionRequest interface.
36
- */
37
- function instanceOfStoreTransactionRequest(value) {
38
- if (!('surcharge' in value) || value['surcharge'] === undefined)
39
- return false;
40
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
41
- return false;
42
- return true;
43
- }
44
- function StoreTransactionRequestFromJSON(json) {
45
- return StoreTransactionRequestFromJSONTyped(json, false);
46
- }
47
- function StoreTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
- 'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
53
- 'orderId': json['order_id'] == null ? undefined : json['order_id'],
54
- 'amount': json['amount'] == null ? undefined : json['amount'],
55
- 'surcharge': json['surcharge'],
56
- 'paymentMethod': json['payment_method'],
57
- 'nonce': json['nonce'] == null ? undefined : json['nonce'],
58
- 'deviceData': json['device_data'] == null ? undefined : json['device_data'],
59
- };
60
- }
61
- function StoreTransactionRequestToJSON(json) {
62
- return StoreTransactionRequestToJSONTyped(json, false);
63
- }
64
- function StoreTransactionRequestToJSONTyped(value, ignoreDiscriminator) {
65
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
66
- if (value == null) {
67
- return value;
68
- }
69
- return {
70
- 'cart_id': value['cartId'],
71
- 'order_id': value['orderId'],
72
- 'amount': value['amount'],
73
- 'surcharge': value['surcharge'],
74
- 'payment_method': value['paymentMethod'],
75
- 'nonce': value['nonce'],
76
- 'device_data': value['deviceData'],
77
- };
78
- }