@digital8/lighting-illusions-ts-sdk 0.0.1951 → 0.0.1952

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 (82) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +17 -2
  3. package/dist/apis/TransactionsApi.d.ts +69 -0
  4. package/dist/apis/TransactionsApi.js +262 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +3 -1
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +6 -2
  11. package/dist/models/IndexTransactionRequest.d.ts +127 -0
  12. package/dist/models/IndexTransactionRequest.js +91 -0
  13. package/dist/models/OrderListResource.d.ts +7 -0
  14. package/dist/models/OrderListResource.js +5 -0
  15. package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
  17. package/dist/models/PaymentMethod.d.ts +30 -0
  18. package/dist/models/PaymentMethod.js +56 -0
  19. package/dist/models/PaymentSource.d.ts +26 -0
  20. package/dist/models/PaymentSource.js +52 -0
  21. package/dist/models/PaymentStatus.d.ts +25 -0
  22. package/dist/models/PaymentStatus.js +51 -0
  23. package/dist/models/RefundTransactionRequest.d.ts +38 -0
  24. package/dist/models/RefundTransactionRequest.js +53 -0
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreTransactionRequest.d.ts +81 -0
  28. package/dist/models/StoreTransactionRequest.js +78 -0
  29. package/dist/models/TransactionLiteResource.d.ts +74 -0
  30. package/dist/models/TransactionLiteResource.js +77 -0
  31. package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
  33. package/dist/models/TransactionResource.d.ts +128 -0
  34. package/dist/models/TransactionResource.js +101 -0
  35. package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/TransactionResourceArrayResponse.js +50 -0
  37. package/dist/models/TransactionType.d.ts +25 -0
  38. package/dist/models/TransactionType.js +51 -0
  39. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
  40. package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
  41. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
  42. package/dist/models/UpdateOrderRequestShippingAddress.js +5 -1
  43. package/dist/models/index.d.ts +12 -0
  44. package/dist/models/index.js +12 -0
  45. package/docs/IndexTransactionRequest.md +60 -0
  46. package/docs/OrderListResource.md +2 -0
  47. package/docs/PaginatedTransactionResourceResponse.md +36 -0
  48. package/docs/PaymentMethod.md +32 -0
  49. package/docs/PaymentSource.md +32 -0
  50. package/docs/PaymentStatus.md +32 -0
  51. package/docs/RefundTransactionRequest.md +36 -0
  52. package/docs/StoreTransactionRequest.md +46 -0
  53. package/docs/TransactionLiteResource.md +48 -0
  54. package/docs/TransactionLiteResourceArrayResponse.md +34 -0
  55. package/docs/TransactionResource.md +66 -0
  56. package/docs/TransactionResourceArrayResponse.md +34 -0
  57. package/docs/TransactionType.md +32 -0
  58. package/docs/TransactionsApi.md +209 -0
  59. package/docs/UpdateOrderRequestBillingAddress.md +2 -0
  60. package/docs/UpdateOrderRequestShippingAddress.md +2 -0
  61. package/package.json +1 -1
  62. package/src/apis/TransactionsApi.ts +193 -0
  63. package/src/apis/index.ts +1 -0
  64. package/src/models/AddressFrontendResource.ts +3 -2
  65. package/src/models/AddressResource.ts +6 -4
  66. package/src/models/IndexTransactionRequest.ts +190 -0
  67. package/src/models/OrderListResource.ts +16 -0
  68. package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
  69. package/src/models/PaymentMethod.ts +58 -0
  70. package/src/models/PaymentSource.ts +54 -0
  71. package/src/models/PaymentStatus.ts +53 -0
  72. package/src/models/RefundTransactionRequest.ts +74 -0
  73. package/src/models/StoreListResource.ts +2 -3
  74. package/src/models/StoreTransactionRequest.ts +131 -0
  75. package/src/models/TransactionLiteResource.ts +128 -0
  76. package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
  77. package/src/models/TransactionResource.ts +203 -0
  78. package/src/models/TransactionResourceArrayResponse.ts +73 -0
  79. package/src/models/TransactionType.ts +53 -0
  80. package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
  81. package/src/models/UpdateOrderRequestShippingAddress.ts +11 -2
  82. package/src/models/index.ts +12 -0
@@ -0,0 +1,127 @@
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;
@@ -0,0 +1,91 @@
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
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { SiteLiteResource } from './SiteLiteResource';
13
13
  import type { LineItemListResource } from './LineItemListResource';
14
+ import type { TransactionLiteResource } from './TransactionLiteResource';
14
15
  import type { CustomerListResource } from './CustomerListResource';
15
16
  /**
16
17
  *
@@ -108,6 +109,12 @@ export interface OrderListResource {
108
109
  * @memberof OrderListResource
109
110
  */
110
111
  lineItems: Array<LineItemListResource> | null;
112
+ /**
113
+ *
114
+ * @type {Array<TransactionLiteResource>}
115
+ * @memberof OrderListResource
116
+ */
117
+ transactions: Array<TransactionLiteResource> | null;
111
118
  }
112
119
  /**
113
120
  * Check if a given object implements the OrderListResource interface.
@@ -20,6 +20,7 @@ exports.OrderListResourceToJSON = OrderListResourceToJSON;
20
20
  exports.OrderListResourceToJSONTyped = OrderListResourceToJSONTyped;
21
21
  var SiteLiteResource_1 = require("./SiteLiteResource");
22
22
  var LineItemListResource_1 = require("./LineItemListResource");
23
+ var TransactionLiteResource_1 = require("./TransactionLiteResource");
23
24
  var CustomerListResource_1 = require("./CustomerListResource");
24
25
  /**
25
26
  * Check if a given object implements the OrderListResource interface.
@@ -45,6 +46,8 @@ function instanceOfOrderListResource(value) {
45
46
  return false;
46
47
  if (!('lineItems' in value) || value['lineItems'] === undefined)
47
48
  return false;
49
+ if (!('transactions' in value) || value['transactions'] === undefined)
50
+ return false;
48
51
  return true;
49
52
  }
50
53
  function OrderListResourceFromJSON(json) {
@@ -70,6 +73,7 @@ function OrderListResourceFromJSONTyped(json, ignoreDiscriminator) {
70
73
  'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
71
74
  'status': json['status'],
72
75
  'lineItems': (json['line_items'] == null ? null : json['line_items'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
76
+ 'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
73
77
  };
74
78
  }
75
79
  function OrderListResourceToJSON(json) {
@@ -96,5 +100,6 @@ function OrderListResourceToJSONTyped(value, ignoreDiscriminator) {
96
100
  'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
97
101
  'status': value['status'],
98
102
  'line_items': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
103
+ 'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
99
104
  };
100
105
  }
@@ -0,0 +1,40 @@
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;
@@ -0,0 +1,57 @@
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
+ }
@@ -0,0 +1,30 @@
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;
@@ -0,0 +1,56 @@
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
+ }
@@ -0,0 +1,26 @@
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;
@@ -0,0 +1,52 @@
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
+ }
@@ -0,0 +1,25 @@
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;
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,38 @@
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;