@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,83 @@
|
|
|
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.NetworkBulkFeedsNetworkEnum = void 0;
|
|
17
|
+
exports.instanceOfNetworkBulkFeeds = instanceOfNetworkBulkFeeds;
|
|
18
|
+
exports.NetworkBulkFeedsFromJSON = NetworkBulkFeedsFromJSON;
|
|
19
|
+
exports.NetworkBulkFeedsFromJSONTyped = NetworkBulkFeedsFromJSONTyped;
|
|
20
|
+
exports.NetworkBulkFeedsToJSON = NetworkBulkFeedsToJSON;
|
|
21
|
+
exports.NetworkBulkFeedsToJSONTyped = NetworkBulkFeedsToJSONTyped;
|
|
22
|
+
const CardholderLinks_1 = require("./CardholderLinks");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NetworkBulkFeedsNetworkEnum = {
|
|
27
|
+
Mastercard: 'MASTERCARD',
|
|
28
|
+
Visa: 'VISA'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the NetworkBulkFeeds interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfNetworkBulkFeeds(value) {
|
|
34
|
+
if (!('_links' in value) || value['_links'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('subaccountId' in value) || value['subaccountId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('network' in value) || value['network'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('networkReference' in value) || value['networkReference'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function NetworkBulkFeedsFromJSON(json) {
|
|
51
|
+
return NetworkBulkFeedsFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function NetworkBulkFeedsFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'_links': (0, CardholderLinks_1.CardholderLinksFromJSON)(json['_links']),
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'subaccountId': json['subaccountId'],
|
|
61
|
+
'network': json['network'],
|
|
62
|
+
'networkReference': json['networkReference'],
|
|
63
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
64
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function NetworkBulkFeedsToJSON(json) {
|
|
68
|
+
return NetworkBulkFeedsToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function NetworkBulkFeedsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'_links': (0, CardholderLinks_1.CardholderLinksToJSON)(value['_links']),
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'subaccountId': value['subaccountId'],
|
|
78
|
+
'network': value['network'],
|
|
79
|
+
'networkReference': value['networkReference'],
|
|
80
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
81
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Astrada API
|
|
3
|
+
* Welcome to our API Reference. 👋
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
6
|
+
* Contact: developer@astrada.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubaccountConfiguration } from './SubaccountConfiguration';
|
|
13
|
+
import type { CardholderLinks } from './CardholderLinks';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Subaccount
|
|
18
|
+
*/
|
|
19
|
+
export interface Subaccount {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CardholderLinks}
|
|
23
|
+
* @memberof Subaccount
|
|
24
|
+
*/
|
|
25
|
+
_links: CardholderLinks;
|
|
26
|
+
/**
|
|
27
|
+
* The unique identifier of the account related to this entity.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Subaccount
|
|
30
|
+
*/
|
|
31
|
+
accountId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The unique identifier of this subaccount entity.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Subaccount
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* The name of this subaccount entity.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Subaccount
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Date and Time when this entity was created following ISO 8601 format.
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof Subaccount
|
|
48
|
+
*/
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Date and Time when this entity was last updated following ISO 8601 format.
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof Subaccount
|
|
54
|
+
*/
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SubaccountConfiguration}
|
|
59
|
+
* @memberof Subaccount
|
|
60
|
+
*/
|
|
61
|
+
configurations: SubaccountConfiguration;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the Subaccount interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfSubaccount(value: object): value is Subaccount;
|
|
67
|
+
export declare function SubaccountFromJSON(json: any): Subaccount;
|
|
68
|
+
export declare function SubaccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subaccount;
|
|
69
|
+
export declare function SubaccountToJSON(json: any): Subaccount;
|
|
70
|
+
export declare function SubaccountToJSONTyped(value?: Subaccount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfSubaccount = instanceOfSubaccount;
|
|
17
|
+
exports.SubaccountFromJSON = SubaccountFromJSON;
|
|
18
|
+
exports.SubaccountFromJSONTyped = SubaccountFromJSONTyped;
|
|
19
|
+
exports.SubaccountToJSON = SubaccountToJSON;
|
|
20
|
+
exports.SubaccountToJSONTyped = SubaccountToJSONTyped;
|
|
21
|
+
const SubaccountConfiguration_1 = require("./SubaccountConfiguration");
|
|
22
|
+
const CardholderLinks_1 = require("./CardholderLinks");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the Subaccount interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSubaccount(value) {
|
|
27
|
+
if (!('_links' in value) || value['_links'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('configurations' in value) || value['configurations'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function SubaccountFromJSON(json) {
|
|
44
|
+
return SubaccountFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SubaccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'_links': (0, CardholderLinks_1.CardholderLinksFromJSON)(json['_links']),
|
|
52
|
+
'accountId': json['accountId'],
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
56
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
57
|
+
'configurations': (0, SubaccountConfiguration_1.SubaccountConfigurationFromJSON)(json['configurations']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function SubaccountToJSON(json) {
|
|
61
|
+
return SubaccountToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function SubaccountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'_links': (0, CardholderLinks_1.CardholderLinksToJSON)(value['_links']),
|
|
69
|
+
'accountId': value['accountId'],
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
73
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
74
|
+
'configurations': (0, SubaccountConfiguration_1.SubaccountConfigurationToJSON)(value['configurations']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Astrada API
|
|
3
|
+
* Welcome to our API Reference. 👋
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
6
|
+
* Contact: developer@astrada.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SubaccountConfigurationVISA } from './SubaccountConfigurationVISA';
|
|
13
|
+
/**
|
|
14
|
+
* Subaccount network and regional configurations which determine the available networks and geographies during card enrollment.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubaccountConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export interface SubaccountConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SubaccountConfigurationVISA}
|
|
22
|
+
* @memberof SubaccountConfiguration
|
|
23
|
+
*/
|
|
24
|
+
VISA?: SubaccountConfigurationVISA;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SubaccountConfigurationVISA}
|
|
28
|
+
* @memberof SubaccountConfiguration
|
|
29
|
+
*/
|
|
30
|
+
MASTERCARD?: SubaccountConfigurationVISA;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SubaccountConfiguration interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSubaccountConfiguration(value: object): value is SubaccountConfiguration;
|
|
36
|
+
export declare function SubaccountConfigurationFromJSON(json: any): SubaccountConfiguration;
|
|
37
|
+
export declare function SubaccountConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubaccountConfiguration;
|
|
38
|
+
export declare function SubaccountConfigurationToJSON(json: any): SubaccountConfiguration;
|
|
39
|
+
export declare function SubaccountConfigurationToJSONTyped(value?: SubaccountConfiguration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfSubaccountConfiguration = instanceOfSubaccountConfiguration;
|
|
17
|
+
exports.SubaccountConfigurationFromJSON = SubaccountConfigurationFromJSON;
|
|
18
|
+
exports.SubaccountConfigurationFromJSONTyped = SubaccountConfigurationFromJSONTyped;
|
|
19
|
+
exports.SubaccountConfigurationToJSON = SubaccountConfigurationToJSON;
|
|
20
|
+
exports.SubaccountConfigurationToJSONTyped = SubaccountConfigurationToJSONTyped;
|
|
21
|
+
const SubaccountConfigurationVISA_1 = require("./SubaccountConfigurationVISA");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubaccountConfiguration interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubaccountConfiguration(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SubaccountConfigurationFromJSON(json) {
|
|
29
|
+
return SubaccountConfigurationFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SubaccountConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'VISA': json['VISA'] == null ? undefined : (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAFromJSON)(json['VISA']),
|
|
37
|
+
'MASTERCARD': json['MASTERCARD'] == null ? undefined : (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAFromJSON)(json['MASTERCARD']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SubaccountConfigurationToJSON(json) {
|
|
41
|
+
return SubaccountConfigurationToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SubaccountConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'VISA': (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAToJSON)(value['VISA']),
|
|
49
|
+
'MASTERCARD': (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAToJSON)(value['MASTERCARD']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Astrada API
|
|
3
|
+
* Welcome to our API Reference. 👋
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
6
|
+
* Contact: developer@astrada.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubaccountConfigurationVISA
|
|
16
|
+
*/
|
|
17
|
+
export interface SubaccountConfigurationVISA {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof SubaccountConfigurationVISA
|
|
22
|
+
*/
|
|
23
|
+
countries: Array<SubaccountConfigurationVISACountriesEnum>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const SubaccountConfigurationVISACountriesEnum: {
|
|
29
|
+
readonly Usa: "USA";
|
|
30
|
+
readonly Can: "CAN";
|
|
31
|
+
readonly Gbr: "GBR";
|
|
32
|
+
readonly Ita: "ITA";
|
|
33
|
+
readonly Swe: "SWE";
|
|
34
|
+
};
|
|
35
|
+
export type SubaccountConfigurationVISACountriesEnum = typeof SubaccountConfigurationVISACountriesEnum[keyof typeof SubaccountConfigurationVISACountriesEnum];
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SubaccountConfigurationVISA interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfSubaccountConfigurationVISA(value: object): value is SubaccountConfigurationVISA;
|
|
40
|
+
export declare function SubaccountConfigurationVISAFromJSON(json: any): SubaccountConfigurationVISA;
|
|
41
|
+
export declare function SubaccountConfigurationVISAFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubaccountConfigurationVISA;
|
|
42
|
+
export declare function SubaccountConfigurationVISAToJSON(json: any): SubaccountConfigurationVISA;
|
|
43
|
+
export declare function SubaccountConfigurationVISAToJSONTyped(value?: SubaccountConfigurationVISA | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.SubaccountConfigurationVISACountriesEnum = void 0;
|
|
17
|
+
exports.instanceOfSubaccountConfigurationVISA = instanceOfSubaccountConfigurationVISA;
|
|
18
|
+
exports.SubaccountConfigurationVISAFromJSON = SubaccountConfigurationVISAFromJSON;
|
|
19
|
+
exports.SubaccountConfigurationVISAFromJSONTyped = SubaccountConfigurationVISAFromJSONTyped;
|
|
20
|
+
exports.SubaccountConfigurationVISAToJSON = SubaccountConfigurationVISAToJSON;
|
|
21
|
+
exports.SubaccountConfigurationVISAToJSONTyped = SubaccountConfigurationVISAToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SubaccountConfigurationVISACountriesEnum = {
|
|
26
|
+
Usa: 'USA',
|
|
27
|
+
Can: 'CAN',
|
|
28
|
+
Gbr: 'GBR',
|
|
29
|
+
Ita: 'ITA',
|
|
30
|
+
Swe: 'SWE'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SubaccountConfigurationVISA interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfSubaccountConfigurationVISA(value) {
|
|
36
|
+
if (!('countries' in value) || value['countries'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function SubaccountConfigurationVISAFromJSON(json) {
|
|
41
|
+
return SubaccountConfigurationVISAFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SubaccountConfigurationVISAFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'countries': json['countries'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function SubaccountConfigurationVISAToJSON(json) {
|
|
52
|
+
return SubaccountConfigurationVISAToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SubaccountConfigurationVISAToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'countries': value['countries'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Astrada API
|
|
3
|
+
* Welcome to our API Reference. 👋
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-02-28
|
|
6
|
+
* Contact: developer@astrada.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionLinks } from './TransactionLinks';
|
|
13
|
+
import type { TransactionAcceptor } from './TransactionAcceptor';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Transaction
|
|
18
|
+
*/
|
|
19
|
+
export interface Transaction {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {TransactionLinks}
|
|
23
|
+
* @memberof Transaction
|
|
24
|
+
*/
|
|
25
|
+
_links: TransactionLinks;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {TransactionAcceptor}
|
|
29
|
+
* @memberof Transaction
|
|
30
|
+
*/
|
|
31
|
+
acceptor: TransactionAcceptor;
|
|
32
|
+
/**
|
|
33
|
+
* The unique identifier of the card related to this entity.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Transaction
|
|
36
|
+
*/
|
|
37
|
+
cardId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The currency of the country of issuance following ISO 4217 alpha-3 format.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Transaction
|
|
42
|
+
*/
|
|
43
|
+
cardholderBillingCurrency: string;
|
|
44
|
+
/**
|
|
45
|
+
* This amount models the hold on the cardholder account, in the card's issued currency, that occurs after an authorization and before a financial message. This amount will change as both authorization and financial messages are added to the Transaction in order to reflect the remaining hold amount.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof Transaction
|
|
48
|
+
*/
|
|
49
|
+
cardholderBillingHoldAmount: number;
|
|
50
|
+
/**
|
|
51
|
+
* The settled amount models the bottom line impact to the customer's bank statement in the card's issued currency. This amount will change as financial messages are added to the Transaction.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Transaction
|
|
54
|
+
*/
|
|
55
|
+
cardholderBillingSettledAmount: number;
|
|
56
|
+
/**
|
|
57
|
+
* Cleansed merchant name.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Transaction
|
|
60
|
+
*/
|
|
61
|
+
descriptor: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The unique identifier of this transaction entity.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Transaction
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* The card network that processed this payment.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Transaction
|
|
72
|
+
*/
|
|
73
|
+
network: string;
|
|
74
|
+
/**
|
|
75
|
+
* The unique identifier of the subaccount related to this entity.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Transaction
|
|
78
|
+
*/
|
|
79
|
+
subaccountId: string;
|
|
80
|
+
/**
|
|
81
|
+
* A semantic understanding of the state of the transaction within the transaction lifecycle. [Learn More](https://docs.astrada.co/docs/transaction)
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof Transaction
|
|
84
|
+
*/
|
|
85
|
+
status: TransactionStatusEnum;
|
|
86
|
+
/**
|
|
87
|
+
* The currency in which the transaction took place following ISO 4217 alpha-3 format.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Transaction
|
|
90
|
+
*/
|
|
91
|
+
transactionCurrency: string;
|
|
92
|
+
/**
|
|
93
|
+
* This amount models the hold on the cardholder account, in the currency the transaction was conducted in, that occurs after an authorization and before a financial message. This amount will change as both authorization and financial messages are added to the Transaction in order to reflect the remaining hold amount.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof Transaction
|
|
96
|
+
*/
|
|
97
|
+
transactionHoldAmount: number;
|
|
98
|
+
/**
|
|
99
|
+
* The date when the transaction took place following ISO 8601 format.
|
|
100
|
+
* @type {Date}
|
|
101
|
+
* @memberof Transaction
|
|
102
|
+
*/
|
|
103
|
+
transactionOccurrenceDate: Date | null;
|
|
104
|
+
/**
|
|
105
|
+
* The settled amount models the bottom line impact to the customer's bank statement in the currency the transaction was conducted in. This amount will change as financial messages are added to the Transaction.
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof Transaction
|
|
108
|
+
*/
|
|
109
|
+
transactionSettledAmount: number;
|
|
110
|
+
/**
|
|
111
|
+
* Date and Time when this entity was created following ISO 8601 format.
|
|
112
|
+
* @type {Date}
|
|
113
|
+
* @memberof Transaction
|
|
114
|
+
*/
|
|
115
|
+
createdAt: Date;
|
|
116
|
+
/**
|
|
117
|
+
* Date and Time when this entity was last updated following ISO 8601 format.
|
|
118
|
+
* @type {Date}
|
|
119
|
+
* @memberof Transaction
|
|
120
|
+
*/
|
|
121
|
+
updatedAt: Date;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export declare const TransactionStatusEnum: {
|
|
127
|
+
readonly Pending: "PENDING";
|
|
128
|
+
readonly Voided: "VOIDED";
|
|
129
|
+
readonly Declined: "DECLINED";
|
|
130
|
+
readonly Settled: "SETTLED";
|
|
131
|
+
};
|
|
132
|
+
export type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof TransactionStatusEnum];
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the Transaction interface.
|
|
135
|
+
*/
|
|
136
|
+
export declare function instanceOfTransaction(value: object): value is Transaction;
|
|
137
|
+
export declare function TransactionFromJSON(json: any): Transaction;
|
|
138
|
+
export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction;
|
|
139
|
+
export declare function TransactionToJSON(json: any): Transaction;
|
|
140
|
+
export declare function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator?: boolean): any;
|