@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,194 @@
|
|
|
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 { CardSubscriptionLinks } from './CardSubscriptionLinks';
|
|
17
|
+
import {
|
|
18
|
+
CardSubscriptionLinksFromJSON,
|
|
19
|
+
CardSubscriptionLinksFromJSONTyped,
|
|
20
|
+
CardSubscriptionLinksToJSON,
|
|
21
|
+
CardSubscriptionLinksToJSONTyped,
|
|
22
|
+
} from './CardSubscriptionLinks';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CardSubscription
|
|
28
|
+
*/
|
|
29
|
+
export interface CardSubscription {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CardSubscriptionLinks}
|
|
33
|
+
* @memberof CardSubscription
|
|
34
|
+
*/
|
|
35
|
+
_links: CardSubscriptionLinks;
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of this subscription entity.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CardSubscription
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The unique identifier of the account related to this entity.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CardSubscription
|
|
46
|
+
*/
|
|
47
|
+
accountId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The unique identifier of the subaccount related to this entity.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CardSubscription
|
|
52
|
+
*/
|
|
53
|
+
subaccountId: string;
|
|
54
|
+
/**
|
|
55
|
+
* The unique identifier of the card related to this entity.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CardSubscription
|
|
58
|
+
*/
|
|
59
|
+
cardId: string;
|
|
60
|
+
/**
|
|
61
|
+
* An optional id in UUID format passed by the customer to associate a context with the subscription.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CardSubscription
|
|
64
|
+
*/
|
|
65
|
+
customerReferenceId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* State of the subscription.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CardSubscription
|
|
70
|
+
*/
|
|
71
|
+
state: CardSubscriptionStateEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Date and Time when this card subscription will be activated and start receiving data following ISO 8601 format.
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof CardSubscription
|
|
76
|
+
*/
|
|
77
|
+
effectiveDate: Date;
|
|
78
|
+
/**
|
|
79
|
+
* Date and Time when this card subscription will become expired and stop receiving data following ISO 8601 format.
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof CardSubscription
|
|
82
|
+
*/
|
|
83
|
+
expirationDate: Date;
|
|
84
|
+
/**
|
|
85
|
+
* The flow that led to the creation of the card subscription. `cardholder-single` refers to enrollments where cardholders themselves are responsible for inputting card data and where a single card is attempted at a time. `network-bulk` refers to enrollments where card data will be captured by Astrada using network data sources (eg Mastercard Smart Data) and where many cards may be attempted at once.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CardSubscription
|
|
88
|
+
*/
|
|
89
|
+
enrollmentType: CardSubscriptionEnrollmentTypeEnum;
|
|
90
|
+
/**
|
|
91
|
+
* Date and Time at which this entity was created following ISO 8601 format.
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof CardSubscription
|
|
94
|
+
*/
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
/**
|
|
97
|
+
* Date and Time at which this entity was last updated following ISO 8601 format.
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof CardSubscription
|
|
100
|
+
*/
|
|
101
|
+
updatedAt: Date;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export const CardSubscriptionStateEnum = {
|
|
109
|
+
Active: 'active',
|
|
110
|
+
Deactivated: 'deactivated',
|
|
111
|
+
Expired: 'expired',
|
|
112
|
+
ReqSca: 'reqSCA',
|
|
113
|
+
FailedToCreate: 'failed-to-create'
|
|
114
|
+
} as const;
|
|
115
|
+
export type CardSubscriptionStateEnum = typeof CardSubscriptionStateEnum[keyof typeof CardSubscriptionStateEnum];
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export const CardSubscriptionEnrollmentTypeEnum = {
|
|
121
|
+
CardholderSingle: 'cardholder-single',
|
|
122
|
+
NetworkBulk: 'network-bulk'
|
|
123
|
+
} as const;
|
|
124
|
+
export type CardSubscriptionEnrollmentTypeEnum = typeof CardSubscriptionEnrollmentTypeEnum[keyof typeof CardSubscriptionEnrollmentTypeEnum];
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the CardSubscription interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfCardSubscription(value: object): value is CardSubscription {
|
|
131
|
+
if (!('_links' in value) || value['_links'] === undefined) return false;
|
|
132
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
133
|
+
if (!('subaccountId' in value) || value['subaccountId'] === undefined) return false;
|
|
134
|
+
if (!('cardId' in value) || value['cardId'] === undefined) return false;
|
|
135
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
136
|
+
if (!('effectiveDate' in value) || value['effectiveDate'] === undefined) return false;
|
|
137
|
+
if (!('expirationDate' in value) || value['expirationDate'] === undefined) return false;
|
|
138
|
+
if (!('enrollmentType' in value) || value['enrollmentType'] === undefined) return false;
|
|
139
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
140
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function CardSubscriptionFromJSON(json: any): CardSubscription {
|
|
145
|
+
return CardSubscriptionFromJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function CardSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardSubscription {
|
|
149
|
+
if (json == null) {
|
|
150
|
+
return json;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'_links': CardSubscriptionLinksFromJSON(json['_links']),
|
|
155
|
+
'id': json['id'],
|
|
156
|
+
'accountId': json['accountId'] == null ? undefined : json['accountId'],
|
|
157
|
+
'subaccountId': json['subaccountId'],
|
|
158
|
+
'cardId': json['cardId'],
|
|
159
|
+
'customerReferenceId': json['customerReferenceId'] == null ? undefined : json['customerReferenceId'],
|
|
160
|
+
'state': json['state'],
|
|
161
|
+
'effectiveDate': (new Date(json['effectiveDate'])),
|
|
162
|
+
'expirationDate': (new Date(json['expirationDate'])),
|
|
163
|
+
'enrollmentType': json['enrollmentType'],
|
|
164
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
165
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function CardSubscriptionToJSON(json: any): CardSubscription {
|
|
170
|
+
return CardSubscriptionToJSONTyped(json, false);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function CardSubscriptionToJSONTyped(value?: CardSubscription | null, ignoreDiscriminator: boolean = false): any {
|
|
174
|
+
if (value == null) {
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
|
|
180
|
+
'_links': CardSubscriptionLinksToJSON(value['_links']),
|
|
181
|
+
'id': value['id'],
|
|
182
|
+
'accountId': value['accountId'],
|
|
183
|
+
'subaccountId': value['subaccountId'],
|
|
184
|
+
'cardId': value['cardId'],
|
|
185
|
+
'customerReferenceId': value['customerReferenceId'],
|
|
186
|
+
'state': value['state'],
|
|
187
|
+
'effectiveDate': ((value['effectiveDate']).toISOString()),
|
|
188
|
+
'expirationDate': ((value['expirationDate']).toISOString()),
|
|
189
|
+
'enrollmentType': value['enrollmentType'],
|
|
190
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
191
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 CardSubscriptionLinks
|
|
28
|
+
*/
|
|
29
|
+
export interface CardSubscriptionLinks {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Link}
|
|
33
|
+
* @memberof CardSubscriptionLinks
|
|
34
|
+
*/
|
|
35
|
+
self: Link;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Link}
|
|
39
|
+
* @memberof CardSubscriptionLinks
|
|
40
|
+
*/
|
|
41
|
+
card: Link;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Link}
|
|
45
|
+
* @memberof CardSubscriptionLinks
|
|
46
|
+
*/
|
|
47
|
+
networkBulkFeed?: Link;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the CardSubscriptionLinks interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfCardSubscriptionLinks(value: object): value is CardSubscriptionLinks {
|
|
54
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
55
|
+
if (!('card' in value) || value['card'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CardSubscriptionLinksFromJSON(json: any): CardSubscriptionLinks {
|
|
60
|
+
return CardSubscriptionLinksFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CardSubscriptionLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardSubscriptionLinks {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'self': LinkFromJSON(json['self']),
|
|
70
|
+
'card': LinkFromJSON(json['card']),
|
|
71
|
+
'networkBulkFeed': json['networkBulkFeed'] == null ? undefined : LinkFromJSON(json['networkBulkFeed']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CardSubscriptionLinksToJSON(json: any): CardSubscriptionLinks {
|
|
76
|
+
return CardSubscriptionLinksToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CardSubscriptionLinksToJSONTyped(value?: CardSubscriptionLinks | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'self': LinkToJSON(value['self']),
|
|
87
|
+
'card': LinkToJSON(value['card']),
|
|
88
|
+
'networkBulkFeed': LinkToJSON(value['networkBulkFeed']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { CardholderLinks } from './CardholderLinks';
|
|
17
|
+
import {
|
|
18
|
+
CardholderLinksFromJSON,
|
|
19
|
+
CardholderLinksFromJSONTyped,
|
|
20
|
+
CardholderLinksToJSON,
|
|
21
|
+
CardholderLinksToJSONTyped,
|
|
22
|
+
} from './CardholderLinks';
|
|
23
|
+
import type { CardholderCorporate } from './CardholderCorporate';
|
|
24
|
+
import {
|
|
25
|
+
CardholderCorporateFromJSON,
|
|
26
|
+
CardholderCorporateFromJSONTyped,
|
|
27
|
+
CardholderCorporateToJSON,
|
|
28
|
+
CardholderCorporateToJSONTyped,
|
|
29
|
+
} from './CardholderCorporate';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface Cardholder
|
|
35
|
+
*/
|
|
36
|
+
export interface Cardholder {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CardholderLinks}
|
|
40
|
+
* @memberof Cardholder
|
|
41
|
+
*/
|
|
42
|
+
_links: CardholderLinks;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CardholderCorporate}
|
|
46
|
+
* @memberof Cardholder
|
|
47
|
+
*/
|
|
48
|
+
corporate: CardholderCorporate;
|
|
49
|
+
/**
|
|
50
|
+
* The first name of the cardholder
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Cardholder
|
|
53
|
+
*/
|
|
54
|
+
firstName?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The last name of the cardholder
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Cardholder
|
|
59
|
+
*/
|
|
60
|
+
lastName?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Date and Time when this entity was created following ISO 8601 format.
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof Cardholder
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Date and Time when this entity was last updated following ISO 8601 format.
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof Cardholder
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the Cardholder interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfCardholder(value: object): value is Cardholder {
|
|
79
|
+
if (!('_links' in value) || value['_links'] === undefined) return false;
|
|
80
|
+
if (!('corporate' in value) || value['corporate'] === undefined) return false;
|
|
81
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
82
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CardholderFromJSON(json: any): Cardholder {
|
|
87
|
+
return CardholderFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function CardholderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cardholder {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'_links': CardholderLinksFromJSON(json['_links']),
|
|
97
|
+
'corporate': CardholderCorporateFromJSON(json['corporate']),
|
|
98
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
99
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
100
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
101
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function CardholderToJSON(json: any): Cardholder {
|
|
106
|
+
return CardholderToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function CardholderToJSONTyped(value?: Cardholder | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'_links': CardholderLinksToJSON(value['_links']),
|
|
117
|
+
'corporate': CardholderCorporateToJSON(value['corporate']),
|
|
118
|
+
'firstName': value['firstName'],
|
|
119
|
+
'lastName': value['lastName'],
|
|
120
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
121
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* The corporate entity that this cardholder is associated with
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CardholderCorporate
|
|
20
|
+
*/
|
|
21
|
+
export interface CardholderCorporate {
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of the employee
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CardholderCorporate
|
|
26
|
+
*/
|
|
27
|
+
employeeId?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The identifier of the corporate
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CardholderCorporate
|
|
32
|
+
*/
|
|
33
|
+
id?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CardholderCorporate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCardholderCorporate(value: object): value is CardholderCorporate {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CardholderCorporateFromJSON(json: any): CardholderCorporate {
|
|
44
|
+
return CardholderCorporateFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CardholderCorporateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardholderCorporate {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CardholderCorporateToJSON(json: any): CardholderCorporate {
|
|
59
|
+
return CardholderCorporateToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CardholderCorporateToJSONTyped(value?: CardholderCorporate | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'employeeId': value['employeeId'],
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 { Link } from './Link';
|
|
17
|
+
import {
|
|
18
|
+
LinkFromJSON,
|
|
19
|
+
LinkFromJSONTyped,
|
|
20
|
+
LinkToJSON,
|
|
21
|
+
LinkToJSONTyped,
|
|
22
|
+
} from './Link';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CardholderLinks
|
|
28
|
+
*/
|
|
29
|
+
export interface CardholderLinks {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Link}
|
|
33
|
+
* @memberof CardholderLinks
|
|
34
|
+
*/
|
|
35
|
+
self: Link;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CardholderLinks interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCardholderLinks(value: object): value is CardholderLinks {
|
|
42
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function CardholderLinksFromJSON(json: any): CardholderLinks {
|
|
47
|
+
return CardholderLinksFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CardholderLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardholderLinks {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'self': LinkFromJSON(json['self']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CardholderLinksToJSON(json: any): CardholderLinks {
|
|
61
|
+
return CardholderLinksToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CardholderLinksToJSONTyped(value?: CardholderLinks | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'self': LinkToJSON(value['self']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Conflict
|
|
20
|
+
*/
|
|
21
|
+
export interface Conflict {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Conflict
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Conflict
|
|
32
|
+
*/
|
|
33
|
+
title: ConflictTitleEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Current value for the property causing the conflict
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Conflict
|
|
38
|
+
*/
|
|
39
|
+
currentValue: string;
|
|
40
|
+
/**
|
|
41
|
+
* Requested value for the property causing the conflict
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Conflict
|
|
44
|
+
*/
|
|
45
|
+
requestedValue?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const ConflictTitleEnum = {
|
|
53
|
+
Conflict: 'Conflict'
|
|
54
|
+
} as const;
|
|
55
|
+
export type ConflictTitleEnum = typeof ConflictTitleEnum[keyof typeof ConflictTitleEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the Conflict interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfConflict(value: object): value is Conflict {
|
|
62
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
63
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
64
|
+
if (!('currentValue' in value) || value['currentValue'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ConflictFromJSON(json: any): Conflict {
|
|
69
|
+
return ConflictFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ConflictFromJSONTyped(json: any, ignoreDiscriminator: boolean): Conflict {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'detail': json['detail'],
|
|
79
|
+
'title': json['title'],
|
|
80
|
+
'currentValue': json['currentValue'],
|
|
81
|
+
'requestedValue': json['requestedValue'] == null ? undefined : json['requestedValue'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function ConflictToJSON(json: any): Conflict {
|
|
86
|
+
return ConflictToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ConflictToJSONTyped(value?: Conflict | 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
|
+
'currentValue': value['currentValue'],
|
|
99
|
+
'requestedValue': value['requestedValue'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|