@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,126 @@
|
|
|
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.TransactionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfTransaction = instanceOfTransaction;
|
|
18
|
+
exports.TransactionFromJSON = TransactionFromJSON;
|
|
19
|
+
exports.TransactionFromJSONTyped = TransactionFromJSONTyped;
|
|
20
|
+
exports.TransactionToJSON = TransactionToJSON;
|
|
21
|
+
exports.TransactionToJSONTyped = TransactionToJSONTyped;
|
|
22
|
+
const TransactionLinks_1 = require("./TransactionLinks");
|
|
23
|
+
const TransactionAcceptor_1 = require("./TransactionAcceptor");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.TransactionStatusEnum = {
|
|
28
|
+
Pending: 'PENDING',
|
|
29
|
+
Voided: 'VOIDED',
|
|
30
|
+
Declined: 'DECLINED',
|
|
31
|
+
Settled: 'SETTLED'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the Transaction interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfTransaction(value) {
|
|
37
|
+
if (!('_links' in value) || value['_links'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('acceptor' in value) || value['acceptor'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('cardId' in value) || value['cardId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('cardholderBillingCurrency' in value) || value['cardholderBillingCurrency'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('cardholderBillingHoldAmount' in value) || value['cardholderBillingHoldAmount'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('cardholderBillingSettledAmount' in value) || value['cardholderBillingSettledAmount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('descriptor' in value) || value['descriptor'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('network' in value) || value['network'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('subaccountId' in value) || value['subaccountId'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('transactionCurrency' in value) || value['transactionCurrency'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('transactionHoldAmount' in value) || value['transactionHoldAmount'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('transactionOccurrenceDate' in value) || value['transactionOccurrenceDate'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('transactionSettledAmount' in value) || value['transactionSettledAmount'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
function TransactionFromJSON(json) {
|
|
74
|
+
return TransactionFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function TransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'_links': (0, TransactionLinks_1.TransactionLinksFromJSON)(json['_links']),
|
|
82
|
+
'acceptor': (0, TransactionAcceptor_1.TransactionAcceptorFromJSON)(json['acceptor']),
|
|
83
|
+
'cardId': json['cardId'],
|
|
84
|
+
'cardholderBillingCurrency': json['cardholderBillingCurrency'],
|
|
85
|
+
'cardholderBillingHoldAmount': json['cardholderBillingHoldAmount'],
|
|
86
|
+
'cardholderBillingSettledAmount': json['cardholderBillingSettledAmount'],
|
|
87
|
+
'descriptor': json['descriptor'],
|
|
88
|
+
'id': json['id'],
|
|
89
|
+
'network': json['network'],
|
|
90
|
+
'subaccountId': json['subaccountId'],
|
|
91
|
+
'status': json['status'],
|
|
92
|
+
'transactionCurrency': json['transactionCurrency'],
|
|
93
|
+
'transactionHoldAmount': json['transactionHoldAmount'],
|
|
94
|
+
'transactionOccurrenceDate': (json['transactionOccurrenceDate'] == null ? null : new Date(json['transactionOccurrenceDate'])),
|
|
95
|
+
'transactionSettledAmount': json['transactionSettledAmount'],
|
|
96
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
97
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function TransactionToJSON(json) {
|
|
101
|
+
return TransactionToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
function TransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
'_links': (0, TransactionLinks_1.TransactionLinksToJSON)(value['_links']),
|
|
109
|
+
'acceptor': (0, TransactionAcceptor_1.TransactionAcceptorToJSON)(value['acceptor']),
|
|
110
|
+
'cardId': value['cardId'],
|
|
111
|
+
'cardholderBillingCurrency': value['cardholderBillingCurrency'],
|
|
112
|
+
'cardholderBillingHoldAmount': value['cardholderBillingHoldAmount'],
|
|
113
|
+
'cardholderBillingSettledAmount': value['cardholderBillingSettledAmount'],
|
|
114
|
+
'descriptor': value['descriptor'],
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'network': value['network'],
|
|
117
|
+
'subaccountId': value['subaccountId'],
|
|
118
|
+
'status': value['status'],
|
|
119
|
+
'transactionCurrency': value['transactionCurrency'],
|
|
120
|
+
'transactionHoldAmount': value['transactionHoldAmount'],
|
|
121
|
+
'transactionOccurrenceDate': (value['transactionOccurrenceDate'].toISOString().substring(0, 10)),
|
|
122
|
+
'transactionSettledAmount': value['transactionSettledAmount'],
|
|
123
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
124
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* The details relating to the acceptor (merchant) from the latest transaction message.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionAcceptor
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionAcceptor {
|
|
18
|
+
/**
|
|
19
|
+
* The acceptor's registered city. Defined by the acquirer/processor.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransactionAcceptor
|
|
22
|
+
*/
|
|
23
|
+
city: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The acceptor's registered country following ISO 3166 alpha-3.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionAcceptor
|
|
28
|
+
*/
|
|
29
|
+
country: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The Merchant Category Code provided by the acquirer/processor. Used to classify businesses by the types of goods provided or services rendered.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TransactionAcceptor
|
|
34
|
+
*/
|
|
35
|
+
mcc: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The acceptor's registered state (e.g. Michigan) as assigned by the acquirer/processor.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TransactionAcceptor
|
|
40
|
+
*/
|
|
41
|
+
state: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the TransactionAcceptor interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfTransactionAcceptor(value: object): value is TransactionAcceptor;
|
|
47
|
+
export declare function TransactionAcceptorFromJSON(json: any): TransactionAcceptor;
|
|
48
|
+
export declare function TransactionAcceptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionAcceptor;
|
|
49
|
+
export declare function TransactionAcceptorToJSON(json: any): TransactionAcceptor;
|
|
50
|
+
export declare function TransactionAcceptorToJSONTyped(value?: TransactionAcceptor | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfTransactionAcceptor = instanceOfTransactionAcceptor;
|
|
17
|
+
exports.TransactionAcceptorFromJSON = TransactionAcceptorFromJSON;
|
|
18
|
+
exports.TransactionAcceptorFromJSONTyped = TransactionAcceptorFromJSONTyped;
|
|
19
|
+
exports.TransactionAcceptorToJSON = TransactionAcceptorToJSON;
|
|
20
|
+
exports.TransactionAcceptorToJSONTyped = TransactionAcceptorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionAcceptor interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionAcceptor(value) {
|
|
25
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mcc' in value) || value['mcc'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function TransactionAcceptorFromJSON(json) {
|
|
36
|
+
return TransactionAcceptorFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function TransactionAcceptorFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'city': json['city'],
|
|
44
|
+
'country': json['country'],
|
|
45
|
+
'mcc': json['mcc'],
|
|
46
|
+
'state': json['state'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function TransactionAcceptorToJSON(json) {
|
|
50
|
+
return TransactionAcceptorToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function TransactionAcceptorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'city': value['city'],
|
|
58
|
+
'country': value['country'],
|
|
59
|
+
'mcc': value['mcc'],
|
|
60
|
+
'state': value['state'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { Link } from './Link';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionLinks
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionLinks {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Link>}
|
|
22
|
+
* @memberof TransactionLinks
|
|
23
|
+
*/
|
|
24
|
+
messages: Array<Link>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Link}
|
|
28
|
+
* @memberof TransactionLinks
|
|
29
|
+
*/
|
|
30
|
+
card?: Link;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Link}
|
|
34
|
+
* @memberof TransactionLinks
|
|
35
|
+
*/
|
|
36
|
+
self?: Link;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Link}
|
|
40
|
+
* @memberof TransactionLinks
|
|
41
|
+
*/
|
|
42
|
+
subaccount?: Link;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the TransactionLinks interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfTransactionLinks(value: object): value is TransactionLinks;
|
|
48
|
+
export declare function TransactionLinksFromJSON(json: any): TransactionLinks;
|
|
49
|
+
export declare function TransactionLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLinks;
|
|
50
|
+
export declare function TransactionLinksToJSON(json: any): TransactionLinks;
|
|
51
|
+
export declare function TransactionLinksToJSONTyped(value?: TransactionLinks | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfTransactionLinks = instanceOfTransactionLinks;
|
|
17
|
+
exports.TransactionLinksFromJSON = TransactionLinksFromJSON;
|
|
18
|
+
exports.TransactionLinksFromJSONTyped = TransactionLinksFromJSONTyped;
|
|
19
|
+
exports.TransactionLinksToJSON = TransactionLinksToJSON;
|
|
20
|
+
exports.TransactionLinksToJSONTyped = TransactionLinksToJSONTyped;
|
|
21
|
+
const Link_1 = require("./Link");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionLinks interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionLinks(value) {
|
|
26
|
+
if (!('messages' in value) || value['messages'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function TransactionLinksFromJSON(json) {
|
|
31
|
+
return TransactionLinksFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function TransactionLinksFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'messages': (json['messages'].map(Link_1.LinkFromJSON)),
|
|
39
|
+
'card': json['card'] == null ? undefined : (0, Link_1.LinkFromJSON)(json['card']),
|
|
40
|
+
'self': json['self'] == null ? undefined : (0, Link_1.LinkFromJSON)(json['self']),
|
|
41
|
+
'subaccount': json['subaccount'] == null ? undefined : (0, Link_1.LinkFromJSON)(json['subaccount']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function TransactionLinksToJSON(json) {
|
|
45
|
+
return TransactionLinksToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function TransactionLinksToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'messages': (value['messages'].map(Link_1.LinkToJSON)),
|
|
53
|
+
'card': (0, Link_1.LinkToJSON)(value['card']),
|
|
54
|
+
'self': (0, Link_1.LinkToJSON)(value['self']),
|
|
55
|
+
'subaccount': (0, Link_1.LinkToJSON)(value['subaccount']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
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 { CardholderLinks } from './CardholderLinks';
|
|
13
|
+
import type { TransactionMessageAcceptor } from './TransactionMessageAcceptor';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TransactionMessage
|
|
18
|
+
*/
|
|
19
|
+
export interface TransactionMessage {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CardholderLinks}
|
|
23
|
+
* @memberof TransactionMessage
|
|
24
|
+
*/
|
|
25
|
+
_links: CardholderLinks;
|
|
26
|
+
/**
|
|
27
|
+
* The unique identifier of this transaction message entity.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TransactionMessage
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {TransactionMessageAcceptor}
|
|
35
|
+
* @memberof TransactionMessage
|
|
36
|
+
*/
|
|
37
|
+
acceptor: TransactionMessageAcceptor;
|
|
38
|
+
/**
|
|
39
|
+
* Unique code that authorizes a transaction message, sent by the card issuer/issuer-processor when approving a transaction.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TransactionMessage
|
|
42
|
+
*/
|
|
43
|
+
approvalCode?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The unique identifier of the card related to this entity.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TransactionMessage
|
|
48
|
+
*/
|
|
49
|
+
cardId: string;
|
|
50
|
+
/**
|
|
51
|
+
* The type of card used in the transaction. The only available value is 'virtual' and the field is nullable.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TransactionMessage
|
|
54
|
+
*/
|
|
55
|
+
cardType?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The amount in the currency of the country of issuance. The transactionAmount and cardholderBillingAmount values may differ in case of international transactions.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof TransactionMessage
|
|
60
|
+
*/
|
|
61
|
+
cardholderBillingAmount: number;
|
|
62
|
+
/**
|
|
63
|
+
* The currency of the country of issuance following ISO 4217 alpha-3 format.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TransactionMessage
|
|
66
|
+
*/
|
|
67
|
+
cardholderBillingCurrency: string;
|
|
68
|
+
/**
|
|
69
|
+
* Date and Time when this entity was created following ISO 8601 format.
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof TransactionMessage
|
|
72
|
+
*/
|
|
73
|
+
createdDateTime: Date;
|
|
74
|
+
/**
|
|
75
|
+
* The timestamp of the transaction message (e.g. authorization, movement of funds, etc) in either UTC or local time zone of the merchant/ acquirer following ISO 8601 format. We are not always able to provide a dateTime in UTC as this is not available at all sources. We are unable to provide the timezone. We may provide it in the future should it become available.
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof TransactionMessage
|
|
78
|
+
*/
|
|
79
|
+
dateTime: Date;
|
|
80
|
+
/**
|
|
81
|
+
* The type of operation this transaction message represents. [Learn More](https://docs.astrada.co/docs/transaction-message)
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof TransactionMessage
|
|
84
|
+
*/
|
|
85
|
+
messageType: TransactionMessageMessageTypeEnum;
|
|
86
|
+
/**
|
|
87
|
+
* The card network that processed this payment.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof TransactionMessage
|
|
90
|
+
*/
|
|
91
|
+
network: TransactionMessageNetworkEnum;
|
|
92
|
+
/**
|
|
93
|
+
* The unique identifier of the subaccount related to this entity.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof TransactionMessage
|
|
96
|
+
*/
|
|
97
|
+
subaccountId: string;
|
|
98
|
+
/**
|
|
99
|
+
* The issuer's decision on whether the transaction message is authorized.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof TransactionMessage
|
|
102
|
+
*/
|
|
103
|
+
result: TransactionMessageResultEnum;
|
|
104
|
+
/**
|
|
105
|
+
* The amount of the transaction message in the currency it was charged in. In the case of international transactions, the transactionAmount and cardholderBillingAmount may differ due to being in different currencies.
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof TransactionMessage
|
|
108
|
+
*/
|
|
109
|
+
transactionAmount: number;
|
|
110
|
+
/**
|
|
111
|
+
* The currency in which the transaction took place following ISO 4217 alpha-3 format.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof TransactionMessage
|
|
114
|
+
*/
|
|
115
|
+
transactionCurrency: string;
|
|
116
|
+
/**
|
|
117
|
+
* Identification of the Transaction that has to be unique for a time period.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof TransactionMessage
|
|
120
|
+
*/
|
|
121
|
+
transactionReference: string;
|
|
122
|
+
/**
|
|
123
|
+
* Types provide additional information about the transaction message, describing the effect that it had on the customer account and the type of accounts affected. [Learn More](https://docs.astrada.co/docs/transaction-message)
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof TransactionMessage
|
|
126
|
+
*/
|
|
127
|
+
transactionType: TransactionMessageTransactionTypeEnum | null;
|
|
128
|
+
/**
|
|
129
|
+
* The timestamp of when the transaction message object was received by the data source (i.e. Mastercard or Visa) in UTC following ISO 8601 format.
|
|
130
|
+
* @type {Date}
|
|
131
|
+
* @memberof TransactionMessage
|
|
132
|
+
*/
|
|
133
|
+
transmissionDateTime: Date | null;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export declare const TransactionMessageMessageTypeEnum: {
|
|
139
|
+
readonly AuthAdvc: "AUTH_ADVC";
|
|
140
|
+
readonly AuthRequ: "AUTH_REQU";
|
|
141
|
+
readonly FinlAdvc: "FINL_ADVC";
|
|
142
|
+
readonly CbckAdvc: "CBCK_ADVC";
|
|
143
|
+
readonly FinlRequ: "FINL_REQU";
|
|
144
|
+
};
|
|
145
|
+
export type TransactionMessageMessageTypeEnum = typeof TransactionMessageMessageTypeEnum[keyof typeof TransactionMessageMessageTypeEnum];
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export declare const TransactionMessageNetworkEnum: {
|
|
150
|
+
readonly Visa: "VISA";
|
|
151
|
+
readonly Mastercard: "MASTERCARD";
|
|
152
|
+
};
|
|
153
|
+
export type TransactionMessageNetworkEnum = typeof TransactionMessageNetworkEnum[keyof typeof TransactionMessageNetworkEnum];
|
|
154
|
+
/**
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export declare const TransactionMessageResultEnum: {
|
|
158
|
+
readonly Approved: "APPROVED";
|
|
159
|
+
readonly Declined: "DECLINED";
|
|
160
|
+
};
|
|
161
|
+
export type TransactionMessageResultEnum = typeof TransactionMessageResultEnum[keyof typeof TransactionMessageResultEnum];
|
|
162
|
+
/**
|
|
163
|
+
* @export
|
|
164
|
+
*/
|
|
165
|
+
export declare const TransactionMessageTransactionTypeEnum: {
|
|
166
|
+
readonly Debit01: "DEBIT_01";
|
|
167
|
+
readonly Debit02: "DEBIT_02";
|
|
168
|
+
readonly Debit19: "DEBIT_19";
|
|
169
|
+
readonly Credit01: "CREDIT_01";
|
|
170
|
+
readonly Credit02: "CREDIT_02";
|
|
171
|
+
readonly Inquiry01: "INQUIRY_01";
|
|
172
|
+
readonly Transfer01: "TRANSFER_01";
|
|
173
|
+
readonly Admin01: "ADMIN_01";
|
|
174
|
+
readonly Admin02: "ADMIN_02";
|
|
175
|
+
};
|
|
176
|
+
export type TransactionMessageTransactionTypeEnum = typeof TransactionMessageTransactionTypeEnum[keyof typeof TransactionMessageTransactionTypeEnum];
|
|
177
|
+
/**
|
|
178
|
+
* Check if a given object implements the TransactionMessage interface.
|
|
179
|
+
*/
|
|
180
|
+
export declare function instanceOfTransactionMessage(value: object): value is TransactionMessage;
|
|
181
|
+
export declare function TransactionMessageFromJSON(json: any): TransactionMessage;
|
|
182
|
+
export declare function TransactionMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionMessage;
|
|
183
|
+
export declare function TransactionMessageToJSON(json: any): TransactionMessage;
|
|
184
|
+
export declare function TransactionMessageToJSONTyped(value?: TransactionMessage | null, ignoreDiscriminator?: boolean): any;
|