@monarkmarkets/api-client 1.3.15 → 1.3.16
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/dist/Client.d.ts +72 -63
- package/dist/Client.js +21 -2
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare class Client {
|
|
|
16
16
|
* Get a Document by ID.
|
|
17
17
|
* @param id The Document ID for the document to retrieve.
|
|
18
18
|
* @return OK
|
|
19
|
+
* @deprecated
|
|
19
20
|
*/
|
|
20
21
|
getDocumentById(id: string): Promise<Document>;
|
|
21
22
|
protected processGetDocumentById(response: Response): Promise<Document>;
|
|
@@ -36,6 +37,7 @@ export declare class Client {
|
|
|
36
37
|
* @param exactMatch (optional) Only returns the items exactly matching the parameters given.
|
|
37
38
|
* @param sortOrder (optional)
|
|
38
39
|
* @return OK
|
|
40
|
+
* @deprecated
|
|
39
41
|
*/
|
|
40
42
|
getAllDocuments(investorId: string | undefined, preIPOCompanyId: string | undefined, preIPOCompanySPVId: string | undefined, preIPOCompanyInvestmentId: string | undefined, investorSubscriptionId: string | undefined, registeredFundId: string | undefined, registeredFundSubscriptionId: string | undefined, documentType: DocumentType | undefined, page: number | undefined, pageSize: number | undefined, exactMatch: boolean | undefined, sortOrder: SortOrder | undefined): Promise<DocumentApiResponse>;
|
|
41
43
|
protected processGetAllDocuments(response: Response): Promise<DocumentApiResponse>;
|
|
@@ -44,6 +46,7 @@ export declare class Client {
|
|
|
44
46
|
* @param id The Document ID for the document to sign.
|
|
45
47
|
* @param body (optional) Data about the signing.
|
|
46
48
|
* @return No Content
|
|
49
|
+
* @deprecated
|
|
47
50
|
*/
|
|
48
51
|
signDocument(id: string, body: SignDocument | undefined): Promise<void>;
|
|
49
52
|
protected processSignDocument(response: Response): Promise<void>;
|
|
@@ -51,6 +54,7 @@ export declare class Client {
|
|
|
51
54
|
* Downloads a document using document ID and token. The document is accessed anonymously using a secure token.
|
|
52
55
|
* @param id The Document ID for the document to download.
|
|
53
56
|
* @param token The secure token required to access the document.
|
|
57
|
+
* @deprecated
|
|
54
58
|
*/
|
|
55
59
|
downloadDocument(id: string, token: string): Promise<void>;
|
|
56
60
|
protected processDownloadDocument(response: Response): Promise<void>;
|
|
@@ -1138,9 +1142,10 @@ export declare class Client {
|
|
|
1138
1142
|
/**
|
|
1139
1143
|
* Get an order by ID.
|
|
1140
1144
|
* @param id The order ID.
|
|
1145
|
+
* @param includeDocuments (optional) Optional flag to include associated documents.
|
|
1141
1146
|
* @return OK
|
|
1142
1147
|
*/
|
|
1143
|
-
getTransactionById(id: string): Promise<Transaction>;
|
|
1148
|
+
getTransactionById(id: string, includeDocuments: boolean | undefined): Promise<Transaction>;
|
|
1144
1149
|
protected processGetTransactionById(response: Response): Promise<Transaction>;
|
|
1145
1150
|
/**
|
|
1146
1151
|
* Get all transactions for a specific investor filtered by target asset type.
|
|
@@ -1792,33 +1797,33 @@ export interface ICookie {
|
|
|
1792
1797
|
}
|
|
1793
1798
|
export declare class CreateFinancialAdvisor implements ICreateFinancialAdvisor {
|
|
1794
1799
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
1795
|
-
financialInstitutionId
|
|
1800
|
+
financialInstitutionId: string;
|
|
1796
1801
|
/** CRD Number of the Financial Advisor. */
|
|
1797
|
-
crdNumber
|
|
1802
|
+
crdNumber?: string | undefined;
|
|
1798
1803
|
/** IARD Number of the Financial Advisor. */
|
|
1799
1804
|
iardNumber?: string | undefined;
|
|
1800
1805
|
/** Financial Advisor first name. */
|
|
1801
|
-
firstName: string
|
|
1806
|
+
firstName: string;
|
|
1802
1807
|
/** Financial advisor middle name. */
|
|
1803
1808
|
middleName?: string | undefined;
|
|
1804
1809
|
/** Financial advisor last name. */
|
|
1805
|
-
lastName: string
|
|
1810
|
+
lastName: string;
|
|
1806
1811
|
/** Financial advisor mailing address. */
|
|
1807
|
-
mailingAddress: string
|
|
1812
|
+
mailingAddress: string;
|
|
1808
1813
|
/** Financial advisor mailing city. */
|
|
1809
|
-
mailingCity: string
|
|
1814
|
+
mailingCity: string;
|
|
1810
1815
|
/** Financial advisor mailing state. */
|
|
1811
|
-
mailingState: string
|
|
1816
|
+
mailingState: string;
|
|
1812
1817
|
/** Financial advisor mailing zip code. */
|
|
1813
|
-
mailingZipCode: string
|
|
1818
|
+
mailingZipCode: string;
|
|
1814
1819
|
/** Financial advisor mailing country code. */
|
|
1815
|
-
mailingCountryCode: string
|
|
1820
|
+
mailingCountryCode: string;
|
|
1816
1821
|
/** Financial Advisor branch number. */
|
|
1817
|
-
branchNumber: string
|
|
1822
|
+
branchNumber: string;
|
|
1818
1823
|
/** Financial advisor phone country code. */
|
|
1819
|
-
phoneCountryCode: string
|
|
1824
|
+
phoneCountryCode: string;
|
|
1820
1825
|
/** Financial advisor phone number. */
|
|
1821
|
-
phoneNumber: string
|
|
1826
|
+
phoneNumber: string;
|
|
1822
1827
|
/** Financial advisor phone number extension. */
|
|
1823
1828
|
phoneExtension?: string | undefined;
|
|
1824
1829
|
/** Financial advisor email address. */
|
|
@@ -1826,9 +1831,9 @@ export declare class CreateFinancialAdvisor implements ICreateFinancialAdvisor {
|
|
|
1826
1831
|
/** Financial advisor fax number. */
|
|
1827
1832
|
fax?: string | undefined;
|
|
1828
1833
|
/** Prefix for the Financial Advisor. */
|
|
1829
|
-
prefix: string
|
|
1834
|
+
prefix: string;
|
|
1830
1835
|
/** Financial advisor broker. */
|
|
1831
|
-
broker
|
|
1836
|
+
broker?: string | undefined;
|
|
1832
1837
|
constructor(data?: ICreateFinancialAdvisor);
|
|
1833
1838
|
init(_data?: any): void;
|
|
1834
1839
|
static fromJS(data: any): CreateFinancialAdvisor;
|
|
@@ -1836,33 +1841,33 @@ export declare class CreateFinancialAdvisor implements ICreateFinancialAdvisor {
|
|
|
1836
1841
|
}
|
|
1837
1842
|
export interface ICreateFinancialAdvisor {
|
|
1838
1843
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
1839
|
-
financialInstitutionId
|
|
1844
|
+
financialInstitutionId: string;
|
|
1840
1845
|
/** CRD Number of the Financial Advisor. */
|
|
1841
|
-
crdNumber
|
|
1846
|
+
crdNumber?: string | undefined;
|
|
1842
1847
|
/** IARD Number of the Financial Advisor. */
|
|
1843
1848
|
iardNumber?: string | undefined;
|
|
1844
1849
|
/** Financial Advisor first name. */
|
|
1845
|
-
firstName: string
|
|
1850
|
+
firstName: string;
|
|
1846
1851
|
/** Financial advisor middle name. */
|
|
1847
1852
|
middleName?: string | undefined;
|
|
1848
1853
|
/** Financial advisor last name. */
|
|
1849
|
-
lastName: string
|
|
1854
|
+
lastName: string;
|
|
1850
1855
|
/** Financial advisor mailing address. */
|
|
1851
|
-
mailingAddress: string
|
|
1856
|
+
mailingAddress: string;
|
|
1852
1857
|
/** Financial advisor mailing city. */
|
|
1853
|
-
mailingCity: string
|
|
1858
|
+
mailingCity: string;
|
|
1854
1859
|
/** Financial advisor mailing state. */
|
|
1855
|
-
mailingState: string
|
|
1860
|
+
mailingState: string;
|
|
1856
1861
|
/** Financial advisor mailing zip code. */
|
|
1857
|
-
mailingZipCode: string
|
|
1862
|
+
mailingZipCode: string;
|
|
1858
1863
|
/** Financial advisor mailing country code. */
|
|
1859
|
-
mailingCountryCode: string
|
|
1864
|
+
mailingCountryCode: string;
|
|
1860
1865
|
/** Financial Advisor branch number. */
|
|
1861
|
-
branchNumber: string
|
|
1866
|
+
branchNumber: string;
|
|
1862
1867
|
/** Financial advisor phone country code. */
|
|
1863
|
-
phoneCountryCode: string
|
|
1868
|
+
phoneCountryCode: string;
|
|
1864
1869
|
/** Financial advisor phone number. */
|
|
1865
|
-
phoneNumber: string
|
|
1870
|
+
phoneNumber: string;
|
|
1866
1871
|
/** Financial advisor phone number extension. */
|
|
1867
1872
|
phoneExtension?: string | undefined;
|
|
1868
1873
|
/** Financial advisor email address. */
|
|
@@ -1870,9 +1875,9 @@ export interface ICreateFinancialAdvisor {
|
|
|
1870
1875
|
/** Financial advisor fax number. */
|
|
1871
1876
|
fax?: string | undefined;
|
|
1872
1877
|
/** Prefix for the Financial Advisor. */
|
|
1873
|
-
prefix: string
|
|
1878
|
+
prefix: string;
|
|
1874
1879
|
/** Financial advisor broker. */
|
|
1875
|
-
broker
|
|
1880
|
+
broker?: string | undefined;
|
|
1876
1881
|
}
|
|
1877
1882
|
/** CreateIndicationOfInterest represents the primary offering information to Create an IoI. */
|
|
1878
1883
|
export declare class CreateIndicationOfInterest implements ICreateIndicationOfInterest {
|
|
@@ -2851,7 +2856,7 @@ export declare class FinancialAdvisor implements IFinancialAdvisor {
|
|
|
2851
2856
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
2852
2857
|
financialInstitutionId?: string;
|
|
2853
2858
|
/** CRD Number of the Financial Advisor. */
|
|
2854
|
-
crdNumber
|
|
2859
|
+
crdNumber?: string | undefined;
|
|
2855
2860
|
/** IARD Number of the Financial Advisor. */
|
|
2856
2861
|
iardNumber?: string | undefined;
|
|
2857
2862
|
/** Financial Advisor first name. */
|
|
@@ -2867,7 +2872,7 @@ export declare class FinancialAdvisor implements IFinancialAdvisor {
|
|
|
2867
2872
|
/** Prefix for the Financial Advisor. */
|
|
2868
2873
|
prefix: string | undefined;
|
|
2869
2874
|
/** Financial advisor broker. */
|
|
2870
|
-
broker
|
|
2875
|
+
broker?: string | undefined;
|
|
2871
2876
|
constructor(data?: IFinancialAdvisor);
|
|
2872
2877
|
init(_data?: any): void;
|
|
2873
2878
|
static fromJS(data: any): FinancialAdvisor;
|
|
@@ -2880,7 +2885,7 @@ export interface IFinancialAdvisor {
|
|
|
2880
2885
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
2881
2886
|
financialInstitutionId?: string;
|
|
2882
2887
|
/** CRD Number of the Financial Advisor. */
|
|
2883
|
-
crdNumber
|
|
2888
|
+
crdNumber?: string | undefined;
|
|
2884
2889
|
/** IARD Number of the Financial Advisor. */
|
|
2885
2890
|
iardNumber?: string | undefined;
|
|
2886
2891
|
/** Financial Advisor first name. */
|
|
@@ -2896,7 +2901,7 @@ export interface IFinancialAdvisor {
|
|
|
2896
2901
|
/** Prefix for the Financial Advisor. */
|
|
2897
2902
|
prefix: string | undefined;
|
|
2898
2903
|
/** Financial advisor broker. */
|
|
2899
|
-
broker
|
|
2904
|
+
broker?: string | undefined;
|
|
2900
2905
|
}
|
|
2901
2906
|
export declare class FinancialAdvisorApiResponse implements IFinancialAdvisorApiResponse {
|
|
2902
2907
|
items?: FinancialAdvisor[] | undefined;
|
|
@@ -6911,6 +6916,8 @@ export declare class Transaction implements ITransaction {
|
|
|
6911
6916
|
companyName?: string | undefined;
|
|
6912
6917
|
/** The reference ID of an order submitted. */
|
|
6913
6918
|
referenceId?: string | undefined;
|
|
6919
|
+
/** Optional list of documents associated with this transaction. */
|
|
6920
|
+
documents?: DocumentV2[] | undefined;
|
|
6914
6921
|
constructor(data?: ITransaction);
|
|
6915
6922
|
init(_data?: any): void;
|
|
6916
6923
|
static fromJS(data: any): Transaction;
|
|
@@ -6949,6 +6956,8 @@ export interface ITransaction {
|
|
|
6949
6956
|
companyName?: string | undefined;
|
|
6950
6957
|
/** The reference ID of an order submitted. */
|
|
6951
6958
|
referenceId?: string | undefined;
|
|
6959
|
+
/** Optional list of documents associated with this transaction. */
|
|
6960
|
+
documents?: DocumentV2[] | undefined;
|
|
6952
6961
|
}
|
|
6953
6962
|
export declare class TransactionAction implements ITransactionAction {
|
|
6954
6963
|
/** Unique ID associated with an TransactionAction. */
|
|
@@ -7446,33 +7455,33 @@ https://github.com/country-regions/country-region-data/blob/master/data.json for
|
|
|
7446
7455
|
}
|
|
7447
7456
|
export declare class UpdateFinancialAdvisor implements IUpdateFinancialAdvisor {
|
|
7448
7457
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
7449
|
-
financialInstitutionId
|
|
7458
|
+
financialInstitutionId: string;
|
|
7450
7459
|
/** CRD Number of the Financial Advisor. */
|
|
7451
|
-
crdNumber
|
|
7460
|
+
crdNumber?: string | undefined;
|
|
7452
7461
|
/** IARD Number of the Financial Advisor. */
|
|
7453
7462
|
iardNumber?: string | undefined;
|
|
7454
7463
|
/** Financial Advisor first name. */
|
|
7455
|
-
firstName: string
|
|
7464
|
+
firstName: string;
|
|
7456
7465
|
/** Financial advisor middle name. */
|
|
7457
7466
|
middleName?: string | undefined;
|
|
7458
7467
|
/** Financial advisor last name. */
|
|
7459
|
-
lastName: string
|
|
7468
|
+
lastName: string;
|
|
7460
7469
|
/** Financial advisor mailing address. */
|
|
7461
|
-
mailingAddress: string
|
|
7470
|
+
mailingAddress: string;
|
|
7462
7471
|
/** Financial advisor mailing city. */
|
|
7463
|
-
mailingCity: string
|
|
7472
|
+
mailingCity: string;
|
|
7464
7473
|
/** Financial advisor mailing state. */
|
|
7465
|
-
mailingState: string
|
|
7474
|
+
mailingState: string;
|
|
7466
7475
|
/** Financial advisor mailing zip code. */
|
|
7467
|
-
mailingZipCode: string
|
|
7476
|
+
mailingZipCode: string;
|
|
7468
7477
|
/** Financial advisor mailing country code. */
|
|
7469
|
-
mailingCountryCode: string
|
|
7478
|
+
mailingCountryCode: string;
|
|
7470
7479
|
/** Financial Advisor branch number. */
|
|
7471
|
-
branchNumber: string
|
|
7480
|
+
branchNumber: string;
|
|
7472
7481
|
/** Financial advisor phone country code. */
|
|
7473
|
-
phoneCountryCode: string
|
|
7482
|
+
phoneCountryCode: string;
|
|
7474
7483
|
/** Financial advisor phone number. */
|
|
7475
|
-
phoneNumber: string
|
|
7484
|
+
phoneNumber: string;
|
|
7476
7485
|
/** Financial advisor phone number extension. */
|
|
7477
7486
|
phoneExtension?: string | undefined;
|
|
7478
7487
|
/** Financial advisor email address. */
|
|
@@ -7480,11 +7489,11 @@ export declare class UpdateFinancialAdvisor implements IUpdateFinancialAdvisor {
|
|
|
7480
7489
|
/** Financial advisor fax number. */
|
|
7481
7490
|
fax?: string | undefined;
|
|
7482
7491
|
/** Prefix for the Financial Advisor. */
|
|
7483
|
-
prefix: string
|
|
7492
|
+
prefix: string;
|
|
7484
7493
|
/** Financial advisor broker. */
|
|
7485
|
-
broker
|
|
7494
|
+
broker?: string | undefined;
|
|
7486
7495
|
/** ID of the FinancialAdvisor to edit. */
|
|
7487
|
-
id
|
|
7496
|
+
id: string;
|
|
7488
7497
|
constructor(data?: IUpdateFinancialAdvisor);
|
|
7489
7498
|
init(_data?: any): void;
|
|
7490
7499
|
static fromJS(data: any): UpdateFinancialAdvisor;
|
|
@@ -7492,33 +7501,33 @@ export declare class UpdateFinancialAdvisor implements IUpdateFinancialAdvisor {
|
|
|
7492
7501
|
}
|
|
7493
7502
|
export interface IUpdateFinancialAdvisor {
|
|
7494
7503
|
/** This is the unique identifier of the Institution that the Financial Advisor is attached to. */
|
|
7495
|
-
financialInstitutionId
|
|
7504
|
+
financialInstitutionId: string;
|
|
7496
7505
|
/** CRD Number of the Financial Advisor. */
|
|
7497
|
-
crdNumber
|
|
7506
|
+
crdNumber?: string | undefined;
|
|
7498
7507
|
/** IARD Number of the Financial Advisor. */
|
|
7499
7508
|
iardNumber?: string | undefined;
|
|
7500
7509
|
/** Financial Advisor first name. */
|
|
7501
|
-
firstName: string
|
|
7510
|
+
firstName: string;
|
|
7502
7511
|
/** Financial advisor middle name. */
|
|
7503
7512
|
middleName?: string | undefined;
|
|
7504
7513
|
/** Financial advisor last name. */
|
|
7505
|
-
lastName: string
|
|
7514
|
+
lastName: string;
|
|
7506
7515
|
/** Financial advisor mailing address. */
|
|
7507
|
-
mailingAddress: string
|
|
7516
|
+
mailingAddress: string;
|
|
7508
7517
|
/** Financial advisor mailing city. */
|
|
7509
|
-
mailingCity: string
|
|
7518
|
+
mailingCity: string;
|
|
7510
7519
|
/** Financial advisor mailing state. */
|
|
7511
|
-
mailingState: string
|
|
7520
|
+
mailingState: string;
|
|
7512
7521
|
/** Financial advisor mailing zip code. */
|
|
7513
|
-
mailingZipCode: string
|
|
7522
|
+
mailingZipCode: string;
|
|
7514
7523
|
/** Financial advisor mailing country code. */
|
|
7515
|
-
mailingCountryCode: string
|
|
7524
|
+
mailingCountryCode: string;
|
|
7516
7525
|
/** Financial Advisor branch number. */
|
|
7517
|
-
branchNumber: string
|
|
7526
|
+
branchNumber: string;
|
|
7518
7527
|
/** Financial advisor phone country code. */
|
|
7519
|
-
phoneCountryCode: string
|
|
7528
|
+
phoneCountryCode: string;
|
|
7520
7529
|
/** Financial advisor phone number. */
|
|
7521
|
-
phoneNumber: string
|
|
7530
|
+
phoneNumber: string;
|
|
7522
7531
|
/** Financial advisor phone number extension. */
|
|
7523
7532
|
phoneExtension?: string | undefined;
|
|
7524
7533
|
/** Financial advisor email address. */
|
|
@@ -7526,11 +7535,11 @@ export interface IUpdateFinancialAdvisor {
|
|
|
7526
7535
|
/** Financial advisor fax number. */
|
|
7527
7536
|
fax?: string | undefined;
|
|
7528
7537
|
/** Prefix for the Financial Advisor. */
|
|
7529
|
-
prefix: string
|
|
7538
|
+
prefix: string;
|
|
7530
7539
|
/** Financial advisor broker. */
|
|
7531
|
-
broker
|
|
7540
|
+
broker?: string | undefined;
|
|
7532
7541
|
/** ID of the FinancialAdvisor to edit. */
|
|
7533
|
-
id
|
|
7542
|
+
id: string;
|
|
7534
7543
|
}
|
|
7535
7544
|
export declare class UpdateFinancialInstitutionReferenceId implements IUpdateFinancialInstitutionReferenceId {
|
|
7536
7545
|
/** ID of the FinancialInstitution to edit. */
|
package/dist/Client.js
CHANGED
|
@@ -71,6 +71,7 @@ export class Client {
|
|
|
71
71
|
* Get a Document by ID.
|
|
72
72
|
* @param id The Document ID for the document to retrieve.
|
|
73
73
|
* @return OK
|
|
74
|
+
* @deprecated
|
|
74
75
|
*/
|
|
75
76
|
getDocumentById(id) {
|
|
76
77
|
let url_ = this.baseUrl + "/primary/v1/document/{id}";
|
|
@@ -135,6 +136,7 @@ export class Client {
|
|
|
135
136
|
* @param exactMatch (optional) Only returns the items exactly matching the parameters given.
|
|
136
137
|
* @param sortOrder (optional)
|
|
137
138
|
* @return OK
|
|
139
|
+
* @deprecated
|
|
138
140
|
*/
|
|
139
141
|
getAllDocuments(investorId, preIPOCompanyId, preIPOCompanySPVId, preIPOCompanyInvestmentId, investorSubscriptionId, registeredFundId, registeredFundSubscriptionId, documentType, page, pageSize, exactMatch, sortOrder) {
|
|
140
142
|
let url_ = this.baseUrl + "/primary/v1/document?";
|
|
@@ -224,6 +226,7 @@ export class Client {
|
|
|
224
226
|
* @param id The Document ID for the document to sign.
|
|
225
227
|
* @param body (optional) Data about the signing.
|
|
226
228
|
* @return No Content
|
|
229
|
+
* @deprecated
|
|
227
230
|
*/
|
|
228
231
|
signDocument(id, body) {
|
|
229
232
|
let url_ = this.baseUrl + "/primary/v1/document/{id}/sign";
|
|
@@ -274,6 +277,7 @@ export class Client {
|
|
|
274
277
|
* Downloads a document using document ID and token. The document is accessed anonymously using a secure token.
|
|
275
278
|
* @param id The Document ID for the document to download.
|
|
276
279
|
* @param token The secure token required to access the document.
|
|
280
|
+
* @deprecated
|
|
277
281
|
*/
|
|
278
282
|
downloadDocument(id, token) {
|
|
279
283
|
let url_ = this.baseUrl + "/primary/v1/document/{id}/download/{token}";
|
|
@@ -7392,13 +7396,18 @@ export class Client {
|
|
|
7392
7396
|
/**
|
|
7393
7397
|
* Get an order by ID.
|
|
7394
7398
|
* @param id The order ID.
|
|
7399
|
+
* @param includeDocuments (optional) Optional flag to include associated documents.
|
|
7395
7400
|
* @return OK
|
|
7396
7401
|
*/
|
|
7397
|
-
getTransactionById(id) {
|
|
7398
|
-
let url_ = this.baseUrl + "/primary/v2/transaction/{id}";
|
|
7402
|
+
getTransactionById(id, includeDocuments) {
|
|
7403
|
+
let url_ = this.baseUrl + "/primary/v2/transaction/{id}?";
|
|
7399
7404
|
if (id === undefined || id === null)
|
|
7400
7405
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7401
7406
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7407
|
+
if (includeDocuments === null)
|
|
7408
|
+
throw new globalThis.Error("The parameter 'includeDocuments' cannot be null.");
|
|
7409
|
+
else if (includeDocuments !== undefined)
|
|
7410
|
+
url_ += "includeDocuments=" + encodeURIComponent("" + includeDocuments) + "&";
|
|
7402
7411
|
url_ = url_.replace(/[?&]$/, "");
|
|
7403
7412
|
let options_ = {
|
|
7404
7413
|
method: "GET",
|
|
@@ -14745,6 +14754,11 @@ export class Transaction {
|
|
|
14745
14754
|
this.targetName = _data["targetName"];
|
|
14746
14755
|
this.companyName = _data["companyName"];
|
|
14747
14756
|
this.referenceId = _data["referenceId"];
|
|
14757
|
+
if (Array.isArray(_data["documents"])) {
|
|
14758
|
+
this.documents = [];
|
|
14759
|
+
for (let item of _data["documents"])
|
|
14760
|
+
this.documents.push(DocumentV2.fromJS(item));
|
|
14761
|
+
}
|
|
14748
14762
|
}
|
|
14749
14763
|
}
|
|
14750
14764
|
static fromJS(data) {
|
|
@@ -14771,6 +14785,11 @@ export class Transaction {
|
|
|
14771
14785
|
data["targetName"] = this.targetName;
|
|
14772
14786
|
data["companyName"] = this.companyName;
|
|
14773
14787
|
data["referenceId"] = this.referenceId;
|
|
14788
|
+
if (Array.isArray(this.documents)) {
|
|
14789
|
+
data["documents"] = [];
|
|
14790
|
+
for (let item of this.documents)
|
|
14791
|
+
data["documents"].push(item ? item.toJSON() : undefined);
|
|
14792
|
+
}
|
|
14774
14793
|
return data;
|
|
14775
14794
|
}
|
|
14776
14795
|
}
|