@astrada.co/ts-astrada-sdk 1.2.0 → 1.3.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/CHANGELOG.md +2 -2
- package/README.md +0 -2
- package/dist/apis/CardApi.js +218 -0
- package/dist/apis/CardSubscriptionApi.js +268 -0
- package/dist/apis/CardholderApi.js +138 -0
- package/dist/apis/EnrollmentMethodsApi.js +139 -0
- package/dist/apis/NetworkBulkFeedsApi.js +264 -0
- package/dist/apis/SubaccountsApi.js +319 -0
- package/dist/apis/TransactionMessagesApi.js +138 -0
- package/dist/apis/TransactionsApi.js +215 -0
- package/dist/apis/WebhooksApi.js +380 -0
- package/{lib → dist}/models/Card.js +5 -4
- package/{lib → dist}/models/CardLinks.js +3 -2
- package/{lib → dist}/models/CardSubscription.js +7 -6
- package/{lib → dist}/models/CardSubscriptionLinks.js +3 -2
- package/{lib → dist}/models/Cardholder.js +6 -5
- package/{lib → dist}/models/CardholderCorporate.js +2 -1
- package/{lib → dist}/models/CardholderLinks.js +3 -2
- package/{lib → dist}/models/Conflict.js +2 -1
- package/{lib → dist}/models/CreateNetworkBulkFeedRequest.js +2 -1
- package/{lib → dist}/models/CreateSubaccountRequest.js +3 -2
- package/{lib → dist}/models/CreateWebhook201Response.d.ts +2 -0
- package/{lib → dist}/models/CreateWebhook201Response.js +8 -5
- package/{lib → dist}/models/CreateWebhookRequest.d.ts +2 -0
- package/{lib → dist}/models/CreateWebhookRequest.js +5 -2
- package/{lib → dist}/models/EnrollmentMethods200Response.js +2 -1
- package/dist/models/EnrollmentMethods413Response.d.ts +45 -0
- package/dist/models/EnrollmentMethods413Response.js +62 -0
- package/{lib → dist}/models/EnrollmentMethodsRequest.js +2 -1
- package/dist/models/GetCardSubscription404Response.d.ts +57 -0
- package/dist/models/GetCardSubscription404Response.js +66 -0
- package/{lib → dist}/models/GetSubaccounts200Response.js +4 -3
- package/{lib → dist}/models/GetSubaccounts200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/GetSubaccounts200ResponseLinks.js +3 -2
- package/{lib → dist}/models/GetTransactions200Response.js +4 -3
- package/{lib → dist}/models/GetTransactions200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/InlineObject.js +3 -2
- package/{lib → dist}/models/InlineObject1.js +2 -1
- package/{lib → dist}/models/InlineObject2.js +2 -1
- package/{lib → dist}/models/InlineObject3.js +2 -1
- package/{lib → dist}/models/InlineObject4.js +2 -1
- package/{lib → dist}/models/InlineObject5.js +2 -1
- package/{lib → dist}/models/InlineObjectErrorsInner.js +2 -1
- package/{lib → dist}/models/Link.js +2 -1
- package/{lib → dist}/models/ListCardSubscriptions200Response.js +4 -3
- package/{lib → dist}/models/ListCardSubscriptions200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/ListCardSubscriptions200ResponseLinks.js +3 -2
- package/dist/models/ListCardSubscriptions400Response.d.ts +52 -0
- package/dist/models/ListCardSubscriptions400Response.js +65 -0
- package/dist/models/ListCardSubscriptions400ResponseErrorsInner.d.ts +38 -0
- package/dist/models/ListCardSubscriptions400ResponseErrorsInner.js +55 -0
- package/dist/models/ListCardSubscriptions401Response.d.ts +45 -0
- package/dist/models/ListCardSubscriptions401Response.js +62 -0
- package/dist/models/ListCardSubscriptions403Response.d.ts +45 -0
- package/dist/models/ListCardSubscriptions403Response.js +62 -0
- package/dist/models/ListCardSubscriptions500Response.d.ts +45 -0
- package/dist/models/ListCardSubscriptions500Response.js +62 -0
- package/{lib → dist}/models/ListCards200Response.js +4 -3
- package/{lib → dist}/models/ListCards200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/ListNetworkBulkFeeds200Response.js +4 -3
- package/{lib → dist}/models/ListNetworkBulkFeeds200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/ListWebhooks200Response.js +4 -3
- package/{lib → dist}/models/ListWebhooks200ResponseEmbedded.js +3 -2
- package/{lib → dist}/models/ListWebhooks200ResponseLinks.js +3 -2
- package/{lib → dist}/models/NetworkBulkFeeds.d.ts +16 -1
- package/{lib → dist}/models/NetworkBulkFeeds.js +18 -5
- package/{lib → dist}/models/Subaccount.js +6 -5
- package/{lib → dist}/models/SubaccountConfiguration.js +3 -2
- package/{lib → dist}/models/SubaccountConfigurationVISA.js +2 -1
- package/{lib → dist}/models/Transaction.js +7 -6
- package/{lib → dist}/models/TransactionAcceptor.js +2 -1
- package/{lib → dist}/models/TransactionLinks.js +3 -2
- package/{lib → dist}/models/TransactionMessage.js +7 -6
- package/{lib → dist}/models/TransactionMessageAcceptor.js +2 -1
- package/{lib → dist}/models/UnprocessableEntity.js +2 -1
- package/{lib → dist}/models/UpdateCardSubscriptionRequest.js +2 -1
- package/{lib → dist}/models/UpdateSubaccountRequest.js +3 -2
- package/{lib → dist}/models/UpdateWebhookRequest.d.ts +2 -0
- package/{lib → dist}/models/UpdateWebhookRequest.js +5 -2
- package/{lib → dist}/models/Webhook.d.ts +2 -0
- package/{lib → dist}/models/Webhook.js +8 -5
- package/{lib → dist}/models/index.d.ts +7 -7
- package/{lib → dist}/models/index.js +7 -7
- package/dist/runtime.js +638 -0
- package/docs/Card.md +54 -0
- package/docs/CardApi.md +176 -0
- package/docs/CardLinks.md +36 -0
- package/docs/CardSubscription.md +56 -0
- package/docs/CardSubscriptionApi.md +252 -0
- package/docs/CardSubscriptionLinks.md +38 -0
- package/docs/Cardholder.md +44 -0
- package/docs/CardholderApi.md +85 -0
- package/docs/CardholderCorporate.md +37 -0
- package/docs/CardholderLinks.md +34 -0
- package/docs/Conflict.md +40 -0
- package/docs/CreateNetworkBulkFeedRequest.md +38 -0
- package/docs/CreateSubaccountRequest.md +36 -0
- package/docs/CreateWebhook201Response.md +52 -0
- package/docs/CreateWebhookRequest.md +42 -0
- package/docs/EnrollmentMethods200Response.md +34 -0
- package/docs/EnrollmentMethods413Response.md +36 -0
- package/docs/EnrollmentMethodsApi.md +85 -0
- package/docs/EnrollmentMethodsRequest.md +34 -0
- package/docs/GetCardSubscription404Response.md +40 -0
- package/docs/GetSubaccounts200Response.md +36 -0
- package/docs/GetSubaccounts200ResponseEmbedded.md +34 -0
- package/docs/GetSubaccounts200ResponseLinks.md +36 -0
- package/docs/GetTransactions200Response.md +36 -0
- package/docs/GetTransactions200ResponseEmbedded.md +34 -0
- package/docs/Link.md +48 -0
- package/docs/ListCardSubscriptions200Response.md +38 -0
- package/docs/ListCardSubscriptions200ResponseEmbedded.md +34 -0
- package/docs/ListCardSubscriptions200ResponseLinks.md +42 -0
- package/docs/ListCardSubscriptions400Response.md +38 -0
- package/docs/ListCardSubscriptions400ResponseErrorsInner.md +36 -0
- package/docs/ListCardSubscriptions401Response.md +36 -0
- package/docs/ListCardSubscriptions403Response.md +36 -0
- package/docs/ListCardSubscriptions500Response.md +36 -0
- package/docs/ListCards200Response.md +38 -0
- package/docs/ListCards200ResponseEmbedded.md +34 -0
- package/docs/ListNetworkBulkFeeds200Response.md +38 -0
- package/docs/ListNetworkBulkFeeds200ResponseEmbedded.md +34 -0
- package/docs/ListWebhooks200Response.md +37 -0
- package/docs/ListWebhooks200ResponseEmbedded.md +34 -0
- package/docs/ListWebhooks200ResponseLinks.md +36 -0
- package/docs/NetworkBulkFeeds.md +48 -0
- package/docs/NetworkBulkFeedsApi.md +247 -0
- package/docs/Subaccount.md +46 -0
- package/docs/SubaccountConfiguration.md +37 -0
- package/docs/SubaccountConfigurationVISA.md +34 -0
- package/docs/SubaccountsApi.md +321 -0
- package/docs/Transaction.md +66 -0
- package/docs/TransactionAcceptor.md +41 -0
- package/docs/TransactionLinks.md +40 -0
- package/docs/TransactionMessage.md +70 -0
- package/docs/TransactionMessageAcceptor.md +47 -0
- package/docs/TransactionMessagesApi.md +85 -0
- package/docs/TransactionsApi.md +174 -0
- package/docs/UnprocessableEntity.md +36 -0
- package/docs/UpdateCardSubscriptionRequest.md +34 -0
- package/docs/UpdateSubaccountRequest.md +36 -0
- package/docs/UpdateWebhookRequest.md +40 -0
- package/docs/Webhook.md +51 -0
- package/docs/WebhooksApi.md +401 -0
- package/openapitools.json +7 -0
- package/package.json +10 -10
- package/src/apis/CardApi.ts +15 -15
- package/src/apis/CardSubscriptionApi.ts +15 -15
- package/src/apis/CardholderApi.ts +15 -15
- package/src/apis/EnrollmentMethodsApi.ts +15 -15
- package/src/apis/NetworkBulkFeedsApi.ts +15 -15
- package/src/apis/SubaccountsApi.ts +15 -15
- package/src/apis/TransactionMessagesApi.ts +15 -15
- package/src/apis/TransactionsApi.ts +15 -15
- package/src/apis/WebhooksApi.ts +15 -15
- package/src/models/Card.ts +2 -2
- package/src/models/CardSubscription.ts +4 -4
- package/src/models/Cardholder.ts +2 -2
- package/src/models/CreateWebhook201Response.ts +5 -3
- package/src/models/CreateWebhookRequest.ts +3 -1
- package/src/models/EnrollmentMethods413Response.ts +85 -0
- package/src/models/GetCardSubscription404Response.ts +101 -0
- package/src/models/ListCardSubscriptions400Response.ts +101 -0
- package/src/models/ListCardSubscriptions400ResponseErrorsInner.ts +75 -0
- package/src/models/ListCardSubscriptions401Response.ts +85 -0
- package/src/models/ListCardSubscriptions403Response.ts +85 -0
- package/src/models/ListCardSubscriptions500Response.ts +85 -0
- package/src/models/NetworkBulkFeeds.ts +22 -3
- package/src/models/Subaccount.ts +2 -2
- package/src/models/Transaction.ts +3 -3
- package/src/models/TransactionMessage.ts +3 -3
- package/src/models/UpdateWebhookRequest.ts +3 -1
- package/src/models/Webhook.ts +5 -3
- package/src/models/index.ts +7 -7
- package/src/runtime.ts +0 -1
- package/tsconfig.json +14 -7
- package/dist/astrada.co-ts-astrada-sdk-1.2.0.tgz +0 -0
- package/lib/apis/CardApi.js +0 -109
- package/lib/apis/CardSubscriptionApi.js +0 -133
- package/lib/apis/CardholderApi.js +0 -56
- package/lib/apis/EnrollmentMethodsApi.js +0 -57
- package/lib/apis/NetworkBulkFeedsApi.js +0 -129
- package/lib/apis/SubaccountsApi.js +0 -157
- package/lib/apis/TransactionMessagesApi.js +0 -56
- package/lib/apis/TransactionsApi.js +0 -106
- package/lib/apis/WebhooksApi.js +0 -194
- package/lib/runtime.js +0 -394
- package/openapi-generator/templates/README.mustache +0 -274
- package/openapi-generator/templates/npmignore.mustache +0 -2
- package/openapi-generator/templates/package.mustache +0 -44
- package/openapi-generator/templates/runtime.mustache +0 -515
- /package/{lib → dist}/apis/CardApi.d.ts +0 -0
- /package/{lib → dist}/apis/CardSubscriptionApi.d.ts +0 -0
- /package/{lib → dist}/apis/CardholderApi.d.ts +0 -0
- /package/{lib → dist}/apis/EnrollmentMethodsApi.d.ts +0 -0
- /package/{lib → dist}/apis/NetworkBulkFeedsApi.d.ts +0 -0
- /package/{lib → dist}/apis/SubaccountsApi.d.ts +0 -0
- /package/{lib → dist}/apis/TransactionMessagesApi.d.ts +0 -0
- /package/{lib → dist}/apis/TransactionsApi.d.ts +0 -0
- /package/{lib → dist}/apis/WebhooksApi.d.ts +0 -0
- /package/{lib → dist}/apis/index.d.ts +0 -0
- /package/{lib → dist}/apis/index.js +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/models/Card.d.ts +0 -0
- /package/{lib → dist}/models/CardLinks.d.ts +0 -0
- /package/{lib → dist}/models/CardSubscription.d.ts +0 -0
- /package/{lib → dist}/models/CardSubscriptionLinks.d.ts +0 -0
- /package/{lib → dist}/models/Cardholder.d.ts +0 -0
- /package/{lib → dist}/models/CardholderCorporate.d.ts +0 -0
- /package/{lib → dist}/models/CardholderLinks.d.ts +0 -0
- /package/{lib → dist}/models/Conflict.d.ts +0 -0
- /package/{lib → dist}/models/CreateNetworkBulkFeedRequest.d.ts +0 -0
- /package/{lib → dist}/models/CreateSubaccountRequest.d.ts +0 -0
- /package/{lib → dist}/models/EnrollmentMethods200Response.d.ts +0 -0
- /package/{lib → dist}/models/EnrollmentMethodsRequest.d.ts +0 -0
- /package/{lib → dist}/models/GetSubaccounts200Response.d.ts +0 -0
- /package/{lib → dist}/models/GetSubaccounts200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/GetSubaccounts200ResponseLinks.d.ts +0 -0
- /package/{lib → dist}/models/GetTransactions200Response.d.ts +0 -0
- /package/{lib → dist}/models/GetTransactions200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject1.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject2.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject3.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject4.d.ts +0 -0
- /package/{lib → dist}/models/InlineObject5.d.ts +0 -0
- /package/{lib → dist}/models/InlineObjectErrorsInner.d.ts +0 -0
- /package/{lib → dist}/models/Link.d.ts +0 -0
- /package/{lib → dist}/models/ListCardSubscriptions200Response.d.ts +0 -0
- /package/{lib → dist}/models/ListCardSubscriptions200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/ListCardSubscriptions200ResponseLinks.d.ts +0 -0
- /package/{lib → dist}/models/ListCards200Response.d.ts +0 -0
- /package/{lib → dist}/models/ListCards200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/ListNetworkBulkFeeds200Response.d.ts +0 -0
- /package/{lib → dist}/models/ListNetworkBulkFeeds200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/ListWebhooks200Response.d.ts +0 -0
- /package/{lib → dist}/models/ListWebhooks200ResponseEmbedded.d.ts +0 -0
- /package/{lib → dist}/models/ListWebhooks200ResponseLinks.d.ts +0 -0
- /package/{lib → dist}/models/Subaccount.d.ts +0 -0
- /package/{lib → dist}/models/SubaccountConfiguration.d.ts +0 -0
- /package/{lib → dist}/models/SubaccountConfigurationVISA.d.ts +0 -0
- /package/{lib → dist}/models/Transaction.d.ts +0 -0
- /package/{lib → dist}/models/TransactionAcceptor.d.ts +0 -0
- /package/{lib → dist}/models/TransactionLinks.d.ts +0 -0
- /package/{lib → dist}/models/TransactionMessage.d.ts +0 -0
- /package/{lib → dist}/models/TransactionMessageAcceptor.d.ts +0 -0
- /package/{lib → dist}/models/UnprocessableEntity.d.ts +0 -0
- /package/{lib → dist}/models/UpdateCardSubscriptionRequest.d.ts +0 -0
- /package/{lib → dist}/models/UpdateSubaccountRequest.d.ts +0 -0
- /package/{lib → dist}/runtime.d.ts +0 -0
|
@@ -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 ListCardSubscriptions401Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ListCardSubscriptions401Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListCardSubscriptions401Response
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ListCardSubscriptions401Response
|
|
32
|
+
*/
|
|
33
|
+
title: ListCardSubscriptions401ResponseTitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ListCardSubscriptions401ResponseTitleEnum = {
|
|
41
|
+
Unauthorized: 'Unauthorized'
|
|
42
|
+
} as const;
|
|
43
|
+
export type ListCardSubscriptions401ResponseTitleEnum = typeof ListCardSubscriptions401ResponseTitleEnum[keyof typeof ListCardSubscriptions401ResponseTitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ListCardSubscriptions401Response interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfListCardSubscriptions401Response(value: object): value is ListCardSubscriptions401Response {
|
|
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 ListCardSubscriptions401ResponseFromJSON(json: any): ListCardSubscriptions401Response {
|
|
56
|
+
return ListCardSubscriptions401ResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ListCardSubscriptions401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions401Response {
|
|
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 ListCardSubscriptions401ResponseToJSON(json: any): ListCardSubscriptions401Response {
|
|
71
|
+
return ListCardSubscriptions401ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListCardSubscriptions401ResponseToJSONTyped(value?: ListCardSubscriptions401Response | 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 ListCardSubscriptions403Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ListCardSubscriptions403Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListCardSubscriptions403Response
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ListCardSubscriptions403Response
|
|
32
|
+
*/
|
|
33
|
+
title: ListCardSubscriptions403ResponseTitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ListCardSubscriptions403ResponseTitleEnum = {
|
|
41
|
+
Forbidden: 'Forbidden'
|
|
42
|
+
} as const;
|
|
43
|
+
export type ListCardSubscriptions403ResponseTitleEnum = typeof ListCardSubscriptions403ResponseTitleEnum[keyof typeof ListCardSubscriptions403ResponseTitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ListCardSubscriptions403Response interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfListCardSubscriptions403Response(value: object): value is ListCardSubscriptions403Response {
|
|
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 ListCardSubscriptions403ResponseFromJSON(json: any): ListCardSubscriptions403Response {
|
|
56
|
+
return ListCardSubscriptions403ResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ListCardSubscriptions403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions403Response {
|
|
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 ListCardSubscriptions403ResponseToJSON(json: any): ListCardSubscriptions403Response {
|
|
71
|
+
return ListCardSubscriptions403ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListCardSubscriptions403ResponseToJSONTyped(value?: ListCardSubscriptions403Response | 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 ListCardSubscriptions500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ListCardSubscriptions500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ListCardSubscriptions500Response
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ListCardSubscriptions500Response
|
|
32
|
+
*/
|
|
33
|
+
title: ListCardSubscriptions500ResponseTitleEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ListCardSubscriptions500ResponseTitleEnum = {
|
|
41
|
+
InternalServerError: 'Internal Server Error'
|
|
42
|
+
} as const;
|
|
43
|
+
export type ListCardSubscriptions500ResponseTitleEnum = typeof ListCardSubscriptions500ResponseTitleEnum[keyof typeof ListCardSubscriptions500ResponseTitleEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ListCardSubscriptions500Response interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfListCardSubscriptions500Response(value: object): value is ListCardSubscriptions500Response {
|
|
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 ListCardSubscriptions500ResponseFromJSON(json: any): ListCardSubscriptions500Response {
|
|
56
|
+
return ListCardSubscriptions500ResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ListCardSubscriptions500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions500Response {
|
|
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 ListCardSubscriptions500ResponseToJSON(json: any): ListCardSubscriptions500Response {
|
|
71
|
+
return ListCardSubscriptions500ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListCardSubscriptions500ResponseToJSONTyped(value?: ListCardSubscriptions500Response | 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
|
+
|
|
@@ -52,7 +52,7 @@ export interface NetworkBulkFeeds {
|
|
|
52
52
|
*/
|
|
53
53
|
network: NetworkBulkFeedsNetworkEnum;
|
|
54
54
|
/**
|
|
55
|
-
* The identifier linked to the card network
|
|
55
|
+
* The identifier linked to the card network's bulk enrollment feed.
|
|
56
56
|
* For Mastercard, this field should contain the DeliveryID.
|
|
57
57
|
* For Visa, this field should contain the RPIC in the following format 'RegionId_ProcessorId_IssuerId_CompanyId', such as '123_456_789_010'.
|
|
58
58
|
* For more details on our bulk enrollment process, refer to [this guide](https://docs.astrada.co/docs/network-bulk-enrollment).
|
|
@@ -61,6 +61,12 @@ export interface NetworkBulkFeeds {
|
|
|
61
61
|
* @memberof NetworkBulkFeeds
|
|
62
62
|
*/
|
|
63
63
|
networkReference: string;
|
|
64
|
+
/**
|
|
65
|
+
* The state of the network bulk feed entity.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof NetworkBulkFeeds
|
|
68
|
+
*/
|
|
69
|
+
state: NetworkBulkFeedsStateEnum;
|
|
64
70
|
/**
|
|
65
71
|
* Date and Time at which this entity was created following ISO 8601 format.
|
|
66
72
|
* @type {Date}
|
|
@@ -85,6 +91,16 @@ export const NetworkBulkFeedsNetworkEnum = {
|
|
|
85
91
|
} as const;
|
|
86
92
|
export type NetworkBulkFeedsNetworkEnum = typeof NetworkBulkFeedsNetworkEnum[keyof typeof NetworkBulkFeedsNetworkEnum];
|
|
87
93
|
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const NetworkBulkFeedsStateEnum = {
|
|
98
|
+
Submitted: 'submitted',
|
|
99
|
+
Active: 'active',
|
|
100
|
+
Deactivated: 'deactivated'
|
|
101
|
+
} as const;
|
|
102
|
+
export type NetworkBulkFeedsStateEnum = typeof NetworkBulkFeedsStateEnum[keyof typeof NetworkBulkFeedsStateEnum];
|
|
103
|
+
|
|
88
104
|
|
|
89
105
|
/**
|
|
90
106
|
* Check if a given object implements the NetworkBulkFeeds interface.
|
|
@@ -95,6 +111,7 @@ export function instanceOfNetworkBulkFeeds(value: object): value is NetworkBulkF
|
|
|
95
111
|
if (!('subaccountId' in value) || value['subaccountId'] === undefined) return false;
|
|
96
112
|
if (!('network' in value) || value['network'] === undefined) return false;
|
|
97
113
|
if (!('networkReference' in value) || value['networkReference'] === undefined) return false;
|
|
114
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
98
115
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
99
116
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
100
117
|
return true;
|
|
@@ -115,6 +132,7 @@ export function NetworkBulkFeedsFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
115
132
|
'subaccountId': json['subaccountId'],
|
|
116
133
|
'network': json['network'],
|
|
117
134
|
'networkReference': json['networkReference'],
|
|
135
|
+
'state': json['state'],
|
|
118
136
|
'createdAt': (new Date(json['createdAt'])),
|
|
119
137
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
120
138
|
};
|
|
@@ -136,8 +154,9 @@ export function NetworkBulkFeedsToJSONTyped(value?: NetworkBulkFeeds | null, ign
|
|
|
136
154
|
'subaccountId': value['subaccountId'],
|
|
137
155
|
'network': value['network'],
|
|
138
156
|
'networkReference': value['networkReference'],
|
|
139
|
-
'
|
|
140
|
-
'
|
|
157
|
+
'state': value['state'],
|
|
158
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
159
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
141
160
|
};
|
|
142
161
|
}
|
|
143
162
|
|
package/src/models/Subaccount.ts
CHANGED
|
@@ -127,8 +127,8 @@ export function SubaccountToJSONTyped(value?: Subaccount | null, ignoreDiscrimin
|
|
|
127
127
|
'accountId': value['accountId'],
|
|
128
128
|
'id': value['id'],
|
|
129
129
|
'name': value['name'],
|
|
130
|
-
'createdAt':
|
|
131
|
-
'updatedAt':
|
|
130
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
131
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
132
132
|
'configurations': SubaccountConfigurationToJSON(value['configurations']),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
@@ -229,10 +229,10 @@ export function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscrim
|
|
|
229
229
|
'status': value['status'],
|
|
230
230
|
'transactionCurrency': value['transactionCurrency'],
|
|
231
231
|
'transactionHoldAmount': value['transactionHoldAmount'],
|
|
232
|
-
'transactionOccurrenceDate':
|
|
232
|
+
'transactionOccurrenceDate': value['transactionOccurrenceDate'] == null ? value['transactionOccurrenceDate'] : value['transactionOccurrenceDate'].toISOString().substring(0,10),
|
|
233
233
|
'transactionSettledAmount': value['transactionSettledAmount'],
|
|
234
|
-
'createdAt':
|
|
235
|
-
'updatedAt':
|
|
234
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
235
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
|
|
@@ -273,8 +273,8 @@ export function TransactionMessageToJSONTyped(value?: TransactionMessage | null,
|
|
|
273
273
|
'cardType': value['cardType'],
|
|
274
274
|
'cardholderBillingAmount': value['cardholderBillingAmount'],
|
|
275
275
|
'cardholderBillingCurrency': value['cardholderBillingCurrency'],
|
|
276
|
-
'createdDateTime':
|
|
277
|
-
'dateTime':
|
|
276
|
+
'createdDateTime': value['createdDateTime'].toISOString(),
|
|
277
|
+
'dateTime': value['dateTime'].toISOString(),
|
|
278
278
|
'messageType': value['messageType'],
|
|
279
279
|
'network': value['network'],
|
|
280
280
|
'subaccountId': value['subaccountId'],
|
|
@@ -283,7 +283,7 @@ export function TransactionMessageToJSONTyped(value?: TransactionMessage | null,
|
|
|
283
283
|
'transactionCurrency': value['transactionCurrency'],
|
|
284
284
|
'transactionReference': value['transactionReference'],
|
|
285
285
|
'transactionType': value['transactionType'],
|
|
286
|
-
'transmissionDateTime':
|
|
286
|
+
'transmissionDateTime': value['transmissionDateTime'] == null ? value['transmissionDateTime'] : value['transmissionDateTime'].toISOString(),
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -54,7 +54,9 @@ export const UpdateWebhookRequestEventTypesEnum = {
|
|
|
54
54
|
CardsubscriptionUpdated: 'cardsubscription.updated',
|
|
55
55
|
TransactionCreated: 'transaction.created',
|
|
56
56
|
TransactionUpdated: 'transaction.updated',
|
|
57
|
-
TransactionmessageCreated: 'transactionmessage.created'
|
|
57
|
+
TransactionmessageCreated: 'transactionmessage.created',
|
|
58
|
+
NetworkbulkfeedStatechanged: 'networkbulkfeed.statechanged',
|
|
59
|
+
EnrichmentMerchantCreated: 'enrichment.merchant.created'
|
|
58
60
|
} as const;
|
|
59
61
|
export type UpdateWebhookRequestEventTypesEnum = typeof UpdateWebhookRequestEventTypesEnum[keyof typeof UpdateWebhookRequestEventTypesEnum];
|
|
60
62
|
|
package/src/models/Webhook.ts
CHANGED
|
@@ -92,7 +92,9 @@ export const WebhookEventTypesEnum = {
|
|
|
92
92
|
CardsubscriptionUpdated: 'cardsubscription.updated',
|
|
93
93
|
TransactionCreated: 'transaction.created',
|
|
94
94
|
TransactionUpdated: 'transaction.updated',
|
|
95
|
-
TransactionmessageCreated: 'transactionmessage.created'
|
|
95
|
+
TransactionmessageCreated: 'transactionmessage.created',
|
|
96
|
+
NetworkbulkfeedStatechanged: 'networkbulkfeed.statechanged',
|
|
97
|
+
EnrichmentMerchantCreated: 'enrichment.merchant.created'
|
|
96
98
|
} as const;
|
|
97
99
|
export type WebhookEventTypesEnum = typeof WebhookEventTypesEnum[keyof typeof WebhookEventTypesEnum];
|
|
98
100
|
|
|
@@ -151,8 +153,8 @@ export function WebhookToJSONTyped(value?: Webhook | null, ignoreDiscriminator:
|
|
|
151
153
|
'description': value['description'],
|
|
152
154
|
'eventTypes': value['eventTypes'],
|
|
153
155
|
'subaccountId': value['subaccountId'],
|
|
154
|
-
'createdAt':
|
|
155
|
-
'updatedAt':
|
|
156
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
157
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
156
158
|
'enabled': value['enabled'],
|
|
157
159
|
};
|
|
158
160
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -13,23 +13,23 @@ export * from './CreateSubaccountRequest';
|
|
|
13
13
|
export * from './CreateWebhook201Response';
|
|
14
14
|
export * from './CreateWebhookRequest';
|
|
15
15
|
export * from './EnrollmentMethods200Response';
|
|
16
|
+
export * from './EnrollmentMethods413Response';
|
|
16
17
|
export * from './EnrollmentMethodsRequest';
|
|
18
|
+
export * from './GetCardSubscription404Response';
|
|
17
19
|
export * from './GetSubaccounts200Response';
|
|
18
20
|
export * from './GetSubaccounts200ResponseEmbedded';
|
|
19
21
|
export * from './GetSubaccounts200ResponseLinks';
|
|
20
22
|
export * from './GetTransactions200Response';
|
|
21
23
|
export * from './GetTransactions200ResponseEmbedded';
|
|
22
|
-
export * from './InlineObject';
|
|
23
|
-
export * from './InlineObject1';
|
|
24
|
-
export * from './InlineObject2';
|
|
25
|
-
export * from './InlineObject3';
|
|
26
|
-
export * from './InlineObject4';
|
|
27
|
-
export * from './InlineObject5';
|
|
28
|
-
export * from './InlineObjectErrorsInner';
|
|
29
24
|
export * from './Link';
|
|
30
25
|
export * from './ListCardSubscriptions200Response';
|
|
31
26
|
export * from './ListCardSubscriptions200ResponseEmbedded';
|
|
32
27
|
export * from './ListCardSubscriptions200ResponseLinks';
|
|
28
|
+
export * from './ListCardSubscriptions400Response';
|
|
29
|
+
export * from './ListCardSubscriptions400ResponseErrorsInner';
|
|
30
|
+
export * from './ListCardSubscriptions401Response';
|
|
31
|
+
export * from './ListCardSubscriptions403Response';
|
|
32
|
+
export * from './ListCardSubscriptions500Response';
|
|
33
33
|
export * from './ListCards200Response';
|
|
34
34
|
export * from './ListCards200ResponseEmbedded';
|
|
35
35
|
export * from './ListNetworkBulkFeeds200Response';
|
package/src/runtime.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"outDir": "./lib",
|
|
4
3
|
"declaration": true,
|
|
5
|
-
"target": "
|
|
6
|
-
"lib": ["ES2020"],
|
|
7
|
-
"moduleResolution": "node",
|
|
4
|
+
"target": "es5",
|
|
8
5
|
"module": "commonjs",
|
|
9
|
-
"
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"lib": [
|
|
9
|
+
"es6",
|
|
10
|
+
"dom"
|
|
11
|
+
],
|
|
12
|
+
"typeRoots": [
|
|
13
|
+
"node_modules/@types"
|
|
14
|
+
]
|
|
10
15
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
16
|
+
"exclude": [
|
|
17
|
+
"dist",
|
|
18
|
+
"node_modules"
|
|
19
|
+
]
|
|
13
20
|
}
|
|
Binary file
|
package/lib/apis/CardApi.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Astrada API
|
|
6
|
-
* Welcome to our API Reference. 👋
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 2024-02-28
|
|
9
|
-
* Contact: developer@astrada.co
|
|
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.ListCardsCountryEnum = exports.CardApi = void 0;
|
|
17
|
-
const runtime = require("../runtime");
|
|
18
|
-
const index_1 = require("../models/index");
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
class CardApi extends runtime.BaseAPI {
|
|
23
|
-
/**
|
|
24
|
-
* Returns detailed information about a specific card by its identifier.
|
|
25
|
-
* Retrieve card
|
|
26
|
-
*/
|
|
27
|
-
async getCardRaw(requestParameters, initOverrides) {
|
|
28
|
-
if (requestParameters['cardId'] == null) {
|
|
29
|
-
throw new runtime.RequiredError('cardId', 'Required parameter "cardId" was null or undefined when calling getCard().');
|
|
30
|
-
}
|
|
31
|
-
const queryParameters = {};
|
|
32
|
-
const headerParameters = {};
|
|
33
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
34
|
-
// oauth required
|
|
35
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("main-auth", ["cards:read"]);
|
|
36
|
-
}
|
|
37
|
-
let urlPath = `/cards/{cardId}`;
|
|
38
|
-
urlPath = urlPath.replace(`{${"cardId"}}`, encodeURIComponent(String(requestParameters['cardId'])));
|
|
39
|
-
const response = await this.request({
|
|
40
|
-
path: urlPath,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
headers: headerParameters,
|
|
43
|
-
query: queryParameters,
|
|
44
|
-
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CardFromJSON)(jsonValue));
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns detailed information about a specific card by its identifier.
|
|
49
|
-
* Retrieve card
|
|
50
|
-
*/
|
|
51
|
-
async getCard(requestParameters, initOverrides) {
|
|
52
|
-
const response = await this.getCardRaw(requestParameters, initOverrides);
|
|
53
|
-
return await response.value();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns a list of all cards linked to the account. By default, `GET /cards` returns cards ordered by the latest updatedAt. You can combine the different filters as documented. This endpoint supports [offset-based pagination](https://docs.astrada.co/reference/pagination).
|
|
57
|
-
* List cards
|
|
58
|
-
*/
|
|
59
|
-
async listCardsRaw(requestParameters, initOverrides) {
|
|
60
|
-
const queryParameters = {};
|
|
61
|
-
if (requestParameters['country'] != null) {
|
|
62
|
-
queryParameters['country'] = requestParameters['country'];
|
|
63
|
-
}
|
|
64
|
-
if (requestParameters['expiryMonth'] != null) {
|
|
65
|
-
queryParameters['expiryMonth'] = requestParameters['expiryMonth'];
|
|
66
|
-
}
|
|
67
|
-
if (requestParameters['expiryYear'] != null) {
|
|
68
|
-
queryParameters['expiryYear'] = requestParameters['expiryYear'];
|
|
69
|
-
}
|
|
70
|
-
if (requestParameters['subaccountId'] != null) {
|
|
71
|
-
queryParameters['subaccountId'] = requestParameters['subaccountId'];
|
|
72
|
-
}
|
|
73
|
-
if (requestParameters['limit'] != null) {
|
|
74
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
75
|
-
}
|
|
76
|
-
if (requestParameters['offset'] != null) {
|
|
77
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
78
|
-
}
|
|
79
|
-
const headerParameters = {};
|
|
80
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
-
// oauth required
|
|
82
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("main-auth", ["cards:read"]);
|
|
83
|
-
}
|
|
84
|
-
let urlPath = `/cards`;
|
|
85
|
-
const response = await this.request({
|
|
86
|
-
path: urlPath,
|
|
87
|
-
method: 'GET',
|
|
88
|
-
headers: headerParameters,
|
|
89
|
-
query: queryParameters,
|
|
90
|
-
}, initOverrides);
|
|
91
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListCards200ResponseFromJSON)(jsonValue));
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Returns a list of all cards linked to the account. By default, `GET /cards` returns cards ordered by the latest updatedAt. You can combine the different filters as documented. This endpoint supports [offset-based pagination](https://docs.astrada.co/reference/pagination).
|
|
95
|
-
* List cards
|
|
96
|
-
*/
|
|
97
|
-
async listCards(requestParameters = {}, initOverrides) {
|
|
98
|
-
const response = await this.listCardsRaw(requestParameters, initOverrides);
|
|
99
|
-
return await response.value();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.CardApi = CardApi;
|
|
103
|
-
/**
|
|
104
|
-
* @export
|
|
105
|
-
*/
|
|
106
|
-
exports.ListCardsCountryEnum = {
|
|
107
|
-
Usa: 'USA',
|
|
108
|
-
Can: 'CAN'
|
|
109
|
-
};
|