@astrada.co/ts-astrada-sdk 1.0.0
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/.editorconfig +10 -0
- package/.github/workflows/on-push.yml +65 -0
- package/.releaserc +21 -0
- package/CHANGELOG.md +13 -0
- package/README.md +1 -0
- package/dist/astrada.co-ts-astrada-sdk-1.0.0.tgz +0 -0
- package/lib/apis/CardApi.d.ts +57 -0
- package/lib/apis/CardApi.js +109 -0
- package/lib/apis/CardSubscriptionApi.d.ts +61 -0
- package/lib/apis/CardSubscriptionApi.js +133 -0
- package/lib/apis/CardholderApi.d.ts +31 -0
- package/lib/apis/CardholderApi.js +56 -0
- package/lib/apis/EnrollmentMethodsApi.d.ts +31 -0
- package/lib/apis/EnrollmentMethodsApi.js +57 -0
- package/lib/apis/NetworkBulkFeedsApi.d.ts +60 -0
- package/lib/apis/NetworkBulkFeedsApi.js +129 -0
- package/lib/apis/SubaccountsApi.d.ts +72 -0
- package/lib/apis/SubaccountsApi.js +157 -0
- package/lib/apis/TransactionMessagesApi.d.ts +31 -0
- package/lib/apis/TransactionMessagesApi.js +56 -0
- package/lib/apis/TransactionsApi.d.ts +56 -0
- package/lib/apis/TransactionsApi.js +106 -0
- package/lib/apis/WebhooksApi.d.ts +86 -0
- package/lib/apis/WebhooksApi.js +194 -0
- package/lib/apis/index.d.ts +9 -0
- package/lib/apis/index.js +27 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +21 -0
- package/lib/models/Card.d.ts +112 -0
- package/lib/models/Card.js +109 -0
- package/lib/models/CardLinks.d.ts +39 -0
- package/lib/models/CardLinks.js +53 -0
- package/lib/models/CardSubscription.d.ts +118 -0
- package/lib/models/CardSubscription.js +109 -0
- package/lib/models/CardSubscriptionLinks.d.ts +45 -0
- package/lib/models/CardSubscriptionLinks.js +57 -0
- package/lib/models/Cardholder.d.ts +64 -0
- package/lib/models/Cardholder.js +68 -0
- package/lib/models/CardholderCorporate.d.ts +38 -0
- package/lib/models/CardholderCorporate.js +50 -0
- package/lib/models/CardholderLinks.d.ts +33 -0
- package/lib/models/CardholderLinks.js +51 -0
- package/lib/models/Conflict.d.ts +57 -0
- package/lib/models/Conflict.js +67 -0
- package/lib/models/CreateNetworkBulkFeedRequest.d.ts +52 -0
- package/lib/models/CreateNetworkBulkFeedRequest.js +66 -0
- package/lib/models/CreateSubaccountRequest.d.ts +39 -0
- package/lib/models/CreateSubaccountRequest.js +55 -0
- package/lib/models/CreateWebhook201Response.d.ts +98 -0
- package/lib/models/CreateWebhook201Response.js +96 -0
- package/lib/models/CreateWebhookRequest.d.ts +67 -0
- package/lib/models/CreateWebhookRequest.js +73 -0
- package/lib/models/EnrollmentMethods200Response.d.ts +40 -0
- package/lib/models/EnrollmentMethods200Response.js +58 -0
- package/lib/models/EnrollmentMethodsRequest.d.ts +32 -0
- package/lib/models/EnrollmentMethodsRequest.js +50 -0
- package/lib/models/GetSubaccounts200Response.d.ts +40 -0
- package/lib/models/GetSubaccounts200Response.js +56 -0
- package/lib/models/GetSubaccounts200ResponseEmbedded.d.ts +33 -0
- package/lib/models/GetSubaccounts200ResponseEmbedded.js +51 -0
- package/lib/models/GetSubaccounts200ResponseLinks.d.ts +39 -0
- package/lib/models/GetSubaccounts200ResponseLinks.js +53 -0
- package/lib/models/GetTransactions200Response.d.ts +40 -0
- package/lib/models/GetTransactions200Response.js +56 -0
- package/lib/models/GetTransactions200ResponseEmbedded.d.ts +33 -0
- package/lib/models/GetTransactions200ResponseEmbedded.js +51 -0
- package/lib/models/InlineObject.d.ts +52 -0
- package/lib/models/InlineObject.js +64 -0
- package/lib/models/InlineObject1.d.ts +45 -0
- package/lib/models/InlineObject1.js +61 -0
- package/lib/models/InlineObject2.d.ts +45 -0
- package/lib/models/InlineObject2.js +61 -0
- package/lib/models/InlineObject3.d.ts +45 -0
- package/lib/models/InlineObject3.js +61 -0
- package/lib/models/InlineObject4.d.ts +57 -0
- package/lib/models/InlineObject4.js +65 -0
- package/lib/models/InlineObject5.d.ts +45 -0
- package/lib/models/InlineObject5.js +61 -0
- package/lib/models/InlineObjectErrorsInner.d.ts +38 -0
- package/lib/models/InlineObjectErrorsInner.js +54 -0
- package/lib/models/Link.d.ts +74 -0
- package/lib/models/Link.js +64 -0
- package/lib/models/ListCardSubscriptions200Response.d.ts +46 -0
- package/lib/models/ListCardSubscriptions200Response.js +60 -0
- package/lib/models/ListCardSubscriptions200ResponseEmbedded.d.ts +33 -0
- package/lib/models/ListCardSubscriptions200ResponseEmbedded.js +51 -0
- package/lib/models/ListCardSubscriptions200ResponseLinks.d.ts +57 -0
- package/lib/models/ListCardSubscriptions200ResponseLinks.js +59 -0
- package/lib/models/ListCards200Response.d.ts +46 -0
- package/lib/models/ListCards200Response.js +60 -0
- package/lib/models/ListCards200ResponseEmbedded.d.ts +33 -0
- package/lib/models/ListCards200ResponseEmbedded.js +51 -0
- package/lib/models/ListNetworkBulkFeeds200Response.d.ts +46 -0
- package/lib/models/ListNetworkBulkFeeds200Response.js +60 -0
- package/lib/models/ListNetworkBulkFeeds200ResponseEmbedded.d.ts +33 -0
- package/lib/models/ListNetworkBulkFeeds200ResponseEmbedded.js +51 -0
- package/lib/models/ListWebhooks200Response.d.ts +40 -0
- package/lib/models/ListWebhooks200Response.js +56 -0
- package/lib/models/ListWebhooks200ResponseEmbedded.d.ts +33 -0
- package/lib/models/ListWebhooks200ResponseEmbedded.js +49 -0
- package/lib/models/ListWebhooks200ResponseLinks.d.ts +39 -0
- package/lib/models/ListWebhooks200ResponseLinks.js +51 -0
- package/lib/models/NetworkBulkFeeds.d.ts +81 -0
- package/lib/models/NetworkBulkFeeds.js +83 -0
- package/lib/models/Subaccount.d.ts +70 -0
- package/lib/models/Subaccount.js +76 -0
- package/lib/models/SubaccountConfiguration.d.ts +39 -0
- package/lib/models/SubaccountConfiguration.js +51 -0
- package/lib/models/SubaccountConfigurationVISA.d.ts +43 -0
- package/lib/models/SubaccountConfigurationVISA.js +61 -0
- package/lib/models/Transaction.d.ts +140 -0
- package/lib/models/Transaction.js +126 -0
- package/lib/models/TransactionAcceptor.d.ts +50 -0
- package/lib/models/TransactionAcceptor.js +62 -0
- package/lib/models/TransactionLinks.d.ts +51 -0
- package/lib/models/TransactionLinks.js +57 -0
- package/lib/models/TransactionMessage.d.ts +184 -0
- package/lib/models/TransactionMessage.js +159 -0
- package/lib/models/TransactionMessageAcceptor.d.ts +68 -0
- package/lib/models/TransactionMessageAcceptor.js +72 -0
- package/lib/models/UnprocessableEntity.d.ts +45 -0
- package/lib/models/UnprocessableEntity.js +61 -0
- package/lib/models/UpdateCardSubscriptionRequest.d.ts +39 -0
- package/lib/models/UpdateCardSubscriptionRequest.js +55 -0
- package/lib/models/UpdateSubaccountRequest.d.ts +39 -0
- package/lib/models/UpdateSubaccountRequest.js +51 -0
- package/lib/models/UpdateWebhookRequest.d.ts +61 -0
- package/lib/models/UpdateWebhookRequest.js +65 -0
- package/lib/models/Webhook.d.ts +92 -0
- package/lib/models/Webhook.js +92 -0
- package/lib/models/index.d.ts +51 -0
- package/lib/models/index.js +69 -0
- package/lib/runtime.d.ts +215 -0
- package/lib/runtime.js +394 -0
- package/package.json +21 -0
- package/src/apis/CardApi.ts +174 -0
- package/src/apis/CardSubscriptionApi.ts +223 -0
- package/src/apis/CardholderApi.ts +93 -0
- package/src/apis/EnrollmentMethodsApi.ts +98 -0
- package/src/apis/NetworkBulkFeedsApi.ts +211 -0
- package/src/apis/SubaccountsApi.ts +253 -0
- package/src/apis/TransactionMessagesApi.ts +93 -0
- package/src/apis/TransactionsApi.ts +169 -0
- package/src/apis/WebhooksApi.ts +315 -0
- package/src/apis/index.ts +11 -0
- package/src/index.ts +5 -0
- package/src/models/Card.ts +187 -0
- package/src/models/CardLinks.ts +82 -0
- package/src/models/CardSubscription.ts +194 -0
- package/src/models/CardSubscriptionLinks.ts +91 -0
- package/src/models/Cardholder.ts +124 -0
- package/src/models/CardholderCorporate.ts +73 -0
- package/src/models/CardholderLinks.ts +74 -0
- package/src/models/Conflict.ts +102 -0
- package/src/models/CreateNetworkBulkFeedRequest.ts +95 -0
- package/src/models/CreateSubaccountRequest.ts +83 -0
- package/src/models/CreateWebhook201Response.ts +168 -0
- package/src/models/CreateWebhookRequest.ts +114 -0
- package/src/models/EnrollmentMethods200Response.ts +77 -0
- package/src/models/EnrollmentMethodsRequest.ts +66 -0
- package/src/models/GetSubaccounts200Response.ts +90 -0
- package/src/models/GetSubaccounts200ResponseEmbedded.ts +74 -0
- package/src/models/GetSubaccounts200ResponseLinks.ts +82 -0
- package/src/models/GetTransactions200Response.ts +90 -0
- package/src/models/GetTransactions200ResponseEmbedded.ts +74 -0
- package/src/models/InlineObject.ts +101 -0
- package/src/models/InlineObject1.ts +85 -0
- package/src/models/InlineObject2.ts +85 -0
- package/src/models/InlineObject3.ts +85 -0
- package/src/models/InlineObject4.ts +101 -0
- package/src/models/InlineObject5.ts +85 -0
- package/src/models/InlineObjectErrorsInner.ts +75 -0
- package/src/models/Link.ts +122 -0
- package/src/models/ListCardSubscriptions200Response.ts +99 -0
- package/src/models/ListCardSubscriptions200ResponseEmbedded.ts +74 -0
- package/src/models/ListCardSubscriptions200ResponseLinks.ts +106 -0
- package/src/models/ListCards200Response.ts +99 -0
- package/src/models/ListCards200ResponseEmbedded.ts +74 -0
- package/src/models/ListNetworkBulkFeeds200Response.ts +99 -0
- package/src/models/ListNetworkBulkFeeds200ResponseEmbedded.ts +74 -0
- package/src/models/ListWebhooks200Response.ts +90 -0
- package/src/models/ListWebhooks200ResponseEmbedded.ts +73 -0
- package/src/models/ListWebhooks200ResponseLinks.ts +81 -0
- package/src/models/NetworkBulkFeeds.ts +143 -0
- package/src/models/Subaccount.ts +135 -0
- package/src/models/SubaccountConfiguration.ts +81 -0
- package/src/models/SubaccountConfigurationVISA.ts +80 -0
- package/src/models/Transaction.ts +238 -0
- package/src/models/TransactionAcceptor.ts +93 -0
- package/src/models/TransactionLinks.ts +98 -0
- package/src/models/TransactionMessage.ts +289 -0
- package/src/models/TransactionMessageAcceptor.ts +119 -0
- package/src/models/UnprocessableEntity.ts +85 -0
- package/src/models/UpdateCardSubscriptionRequest.ts +75 -0
- package/src/models/UpdateSubaccountRequest.ts +81 -0
- package/src/models/UpdateWebhookRequest.ts +103 -0
- package/src/models/Webhook.ts +159 -0
- package/src/models/index.ts +53 -0
- package/src/runtime.ts +524 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Subaccount } from './Subaccount';
|
|
17
|
+
import {
|
|
18
|
+
SubaccountFromJSON,
|
|
19
|
+
SubaccountFromJSONTyped,
|
|
20
|
+
SubaccountToJSON,
|
|
21
|
+
SubaccountToJSONTyped,
|
|
22
|
+
} from './Subaccount';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSubaccounts200ResponseEmbedded
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSubaccounts200ResponseEmbedded {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Subaccount>}
|
|
33
|
+
* @memberof GetSubaccounts200ResponseEmbedded
|
|
34
|
+
*/
|
|
35
|
+
subaccounts: Array<Subaccount>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetSubaccounts200ResponseEmbedded interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetSubaccounts200ResponseEmbedded(value: object): value is GetSubaccounts200ResponseEmbedded {
|
|
42
|
+
if (!('subaccounts' in value) || value['subaccounts'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetSubaccounts200ResponseEmbeddedFromJSON(json: any): GetSubaccounts200ResponseEmbedded {
|
|
47
|
+
return GetSubaccounts200ResponseEmbeddedFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetSubaccounts200ResponseEmbeddedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubaccounts200ResponseEmbedded {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'subaccounts': ((json['subaccounts'] as Array<any>).map(SubaccountFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetSubaccounts200ResponseEmbeddedToJSON(json: any): GetSubaccounts200ResponseEmbedded {
|
|
61
|
+
return GetSubaccounts200ResponseEmbeddedToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetSubaccounts200ResponseEmbeddedToJSONTyped(value?: GetSubaccounts200ResponseEmbedded | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'subaccounts': ((value['subaccounts'] as Array<any>).map(SubaccountToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Link } from './Link';
|
|
17
|
+
import {
|
|
18
|
+
LinkFromJSON,
|
|
19
|
+
LinkFromJSONTyped,
|
|
20
|
+
LinkToJSON,
|
|
21
|
+
LinkToJSONTyped,
|
|
22
|
+
} from './Link';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSubaccounts200ResponseLinks
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSubaccounts200ResponseLinks {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Link}
|
|
33
|
+
* @memberof GetSubaccounts200ResponseLinks
|
|
34
|
+
*/
|
|
35
|
+
self: Link;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Link}
|
|
39
|
+
* @memberof GetSubaccounts200ResponseLinks
|
|
40
|
+
*/
|
|
41
|
+
next?: Link;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the GetSubaccounts200ResponseLinks interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfGetSubaccounts200ResponseLinks(value: object): value is GetSubaccounts200ResponseLinks {
|
|
48
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetSubaccounts200ResponseLinksFromJSON(json: any): GetSubaccounts200ResponseLinks {
|
|
53
|
+
return GetSubaccounts200ResponseLinksFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetSubaccounts200ResponseLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubaccounts200ResponseLinks {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'self': LinkFromJSON(json['self']),
|
|
63
|
+
'next': json['next'] == null ? undefined : LinkFromJSON(json['next']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function GetSubaccounts200ResponseLinksToJSON(json: any): GetSubaccounts200ResponseLinks {
|
|
68
|
+
return GetSubaccounts200ResponseLinksToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function GetSubaccounts200ResponseLinksToJSONTyped(value?: GetSubaccounts200ResponseLinks | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'self': LinkToJSON(value['self']),
|
|
79
|
+
'next': LinkToJSON(value['next']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetTransactions200ResponseEmbedded } from './GetTransactions200ResponseEmbedded';
|
|
17
|
+
import {
|
|
18
|
+
GetTransactions200ResponseEmbeddedFromJSON,
|
|
19
|
+
GetTransactions200ResponseEmbeddedFromJSONTyped,
|
|
20
|
+
GetTransactions200ResponseEmbeddedToJSON,
|
|
21
|
+
GetTransactions200ResponseEmbeddedToJSONTyped,
|
|
22
|
+
} from './GetTransactions200ResponseEmbedded';
|
|
23
|
+
import type { GetSubaccounts200ResponseLinks } from './GetSubaccounts200ResponseLinks';
|
|
24
|
+
import {
|
|
25
|
+
GetSubaccounts200ResponseLinksFromJSON,
|
|
26
|
+
GetSubaccounts200ResponseLinksFromJSONTyped,
|
|
27
|
+
GetSubaccounts200ResponseLinksToJSON,
|
|
28
|
+
GetSubaccounts200ResponseLinksToJSONTyped,
|
|
29
|
+
} from './GetSubaccounts200ResponseLinks';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetTransactions200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetTransactions200Response {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {GetSubaccounts200ResponseLinks}
|
|
40
|
+
* @memberof GetTransactions200Response
|
|
41
|
+
*/
|
|
42
|
+
_links: GetSubaccounts200ResponseLinks;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {GetTransactions200ResponseEmbedded}
|
|
46
|
+
* @memberof GetTransactions200Response
|
|
47
|
+
*/
|
|
48
|
+
_embedded: GetTransactions200ResponseEmbedded;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetTransactions200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetTransactions200Response(value: object): value is GetTransactions200Response {
|
|
55
|
+
if (!('_links' in value) || value['_links'] === undefined) return false;
|
|
56
|
+
if (!('_embedded' in value) || value['_embedded'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetTransactions200ResponseFromJSON(json: any): GetTransactions200Response {
|
|
61
|
+
return GetTransactions200ResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetTransactions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTransactions200Response {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'_links': GetSubaccounts200ResponseLinksFromJSON(json['_links']),
|
|
71
|
+
'_embedded': GetTransactions200ResponseEmbeddedFromJSON(json['_embedded']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetTransactions200ResponseToJSON(json: any): GetTransactions200Response {
|
|
76
|
+
return GetTransactions200ResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function GetTransactions200ResponseToJSONTyped(value?: GetTransactions200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'_links': GetSubaccounts200ResponseLinksToJSON(value['_links']),
|
|
87
|
+
'_embedded': GetTransactions200ResponseEmbeddedToJSON(value['_embedded']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Transaction } from './Transaction';
|
|
17
|
+
import {
|
|
18
|
+
TransactionFromJSON,
|
|
19
|
+
TransactionFromJSONTyped,
|
|
20
|
+
TransactionToJSON,
|
|
21
|
+
TransactionToJSONTyped,
|
|
22
|
+
} from './Transaction';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetTransactions200ResponseEmbedded
|
|
28
|
+
*/
|
|
29
|
+
export interface GetTransactions200ResponseEmbedded {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Transaction>}
|
|
33
|
+
* @memberof GetTransactions200ResponseEmbedded
|
|
34
|
+
*/
|
|
35
|
+
transactions: Array<Transaction>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetTransactions200ResponseEmbedded interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetTransactions200ResponseEmbedded(value: object): value is GetTransactions200ResponseEmbedded {
|
|
42
|
+
if (!('transactions' in value) || value['transactions'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetTransactions200ResponseEmbeddedFromJSON(json: any): GetTransactions200ResponseEmbedded {
|
|
47
|
+
return GetTransactions200ResponseEmbeddedFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetTransactions200ResponseEmbeddedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTransactions200ResponseEmbedded {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'transactions': ((json['transactions'] as Array<any>).map(TransactionFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetTransactions200ResponseEmbeddedToJSON(json: any): GetTransactions200ResponseEmbedded {
|
|
61
|
+
return GetTransactions200ResponseEmbeddedToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetTransactions200ResponseEmbeddedToJSONTyped(value?: GetTransactions200ResponseEmbedded | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'transactions': ((value['transactions'] as Array<any>).map(TransactionToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { InlineObjectErrorsInner } from './InlineObjectErrorsInner';
|
|
17
|
+
import {
|
|
18
|
+
InlineObjectErrorsInnerFromJSON,
|
|
19
|
+
InlineObjectErrorsInnerFromJSONTyped,
|
|
20
|
+
InlineObjectErrorsInnerToJSON,
|
|
21
|
+
InlineObjectErrorsInnerToJSONTyped,
|
|
22
|
+
} from './InlineObjectErrorsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface InlineObject
|
|
28
|
+
*/
|
|
29
|
+
export interface InlineObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InlineObject
|
|
34
|
+
*/
|
|
35
|
+
detail: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InlineObject
|
|
40
|
+
*/
|
|
41
|
+
title: InlineObjectTitleEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<InlineObjectErrorsInner>}
|
|
45
|
+
* @memberof InlineObject
|
|
46
|
+
*/
|
|
47
|
+
errors?: Array<InlineObjectErrorsInner>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export const InlineObjectTitleEnum = {
|
|
55
|
+
BadRequest: 'Bad Request'
|
|
56
|
+
} as const;
|
|
57
|
+
export type InlineObjectTitleEnum = typeof InlineObjectTitleEnum[keyof typeof InlineObjectTitleEnum];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the InlineObject interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfInlineObject(value: object): value is InlineObject {
|
|
64
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
65
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function InlineObjectFromJSON(json: any): InlineObject {
|
|
70
|
+
return InlineObjectFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'detail': json['detail'],
|
|
80
|
+
'title': json['title'],
|
|
81
|
+
'errors': json['errors'] == null ? undefined : ((json['errors'] as Array<any>).map(InlineObjectErrorsInnerFromJSON)),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function InlineObjectToJSON(json: any): InlineObject {
|
|
86
|
+
return InlineObjectToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function InlineObjectToJSONTyped(value?: InlineObject | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'detail': value['detail'],
|
|
97
|
+
'title': value['title'],
|
|
98
|
+
'errors': value['errors'] == null ? undefined : ((value['errors'] as Array<any>).map(InlineObjectErrorsInnerToJSON)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InlineObject1
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineObject1 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InlineObject1
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InlineObject1
|
|
32
|
+
*/
|
|
33
|
+
title: InlineObject1TitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const InlineObject1TitleEnum = {
|
|
41
|
+
Unauthorized: 'Unauthorized'
|
|
42
|
+
} as const;
|
|
43
|
+
export type InlineObject1TitleEnum = typeof InlineObject1TitleEnum[keyof typeof InlineObject1TitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the InlineObject1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfInlineObject1(value: object): value is InlineObject1 {
|
|
50
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
51
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function InlineObject1FromJSON(json: any): InlineObject1 {
|
|
56
|
+
return InlineObject1FromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'detail': json['detail'],
|
|
66
|
+
'title': json['title'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function InlineObject1ToJSON(json: any): InlineObject1 {
|
|
71
|
+
return InlineObject1ToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function InlineObject1ToJSONTyped(value?: InlineObject1 | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'detail': value['detail'],
|
|
82
|
+
'title': value['title'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InlineObject2
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineObject2 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InlineObject2
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InlineObject2
|
|
32
|
+
*/
|
|
33
|
+
title: InlineObject2TitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const InlineObject2TitleEnum = {
|
|
41
|
+
Forbidden: 'Forbidden'
|
|
42
|
+
} as const;
|
|
43
|
+
export type InlineObject2TitleEnum = typeof InlineObject2TitleEnum[keyof typeof InlineObject2TitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the InlineObject2 interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfInlineObject2(value: object): value is InlineObject2 {
|
|
50
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
51
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function InlineObject2FromJSON(json: any): InlineObject2 {
|
|
56
|
+
return InlineObject2FromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function InlineObject2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject2 {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'detail': json['detail'],
|
|
66
|
+
'title': json['title'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function InlineObject2ToJSON(json: any): InlineObject2 {
|
|
71
|
+
return InlineObject2ToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function InlineObject2ToJSONTyped(value?: InlineObject2 | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'detail': value['detail'],
|
|
82
|
+
'title': value['title'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Astrada API
|
|
5
|
+
* Welcome to our API Reference. 👋
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
8
|
+
* Contact: developer@astrada.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InlineObject3
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineObject3 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InlineObject3
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InlineObject3
|
|
32
|
+
*/
|
|
33
|
+
title: InlineObject3TitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const InlineObject3TitleEnum = {
|
|
41
|
+
InternalServerError: 'Internal Server Error'
|
|
42
|
+
} as const;
|
|
43
|
+
export type InlineObject3TitleEnum = typeof InlineObject3TitleEnum[keyof typeof InlineObject3TitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the InlineObject3 interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfInlineObject3(value: object): value is InlineObject3 {
|
|
50
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
51
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function InlineObject3FromJSON(json: any): InlineObject3 {
|
|
56
|
+
return InlineObject3FromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function InlineObject3FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject3 {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'detail': json['detail'],
|
|
66
|
+
'title': json['title'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function InlineObject3ToJSON(json: any): InlineObject3 {
|
|
71
|
+
return InlineObject3ToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function InlineObject3ToJSONTyped(value?: InlineObject3 | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'detail': value['detail'],
|
|
82
|
+
'title': value['title'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|