Skip to content

Commit 7f71235

Browse files
feat(api): api update
1 parent d4fb00e commit 7f71235

File tree

2 files changed

+147
-2
lines changed

2 files changed

+147
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-b7fdba3d3f97c7debc22c7ca30b828bce81bcd64648df8c94029b27a3321ebb9.yml
3-
openapi_spec_hash: 03f1315f1d32ada42445ca920f047dff
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-9eaed98ce5934f11e901cef376a28257d2c196bd3dba7c690babc6741a730ded.yml
3+
openapi_spec_hash: b76e4e830c4d03ba4cf9429bb9fb9c8a
44
config_hash: cb5d75abef6264b5d86448caf7295afa

src/resources/cas-parser.ts

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ export interface UnifiedResponse {
6767

6868
mutual_funds?: Array<UnifiedResponse.MutualFund>;
6969

70+
/**
71+
* List of NPS accounts
72+
*/
73+
nps?: Array<UnifiedResponse.Np>;
74+
7075
summary?: UnifiedResponse.Summary;
7176
}
7277

@@ -104,6 +109,11 @@ export namespace UnifiedResponse {
104109

105110
holdings?: DematAccount.Holdings;
106111

112+
/**
113+
* List of account holders linked to this demat account
114+
*/
115+
linked_holders?: Array<DematAccount.LinkedHolder>;
116+
107117
/**
108118
* Total value of the demat account
109119
*/
@@ -304,6 +314,18 @@ export namespace UnifiedResponse {
304314
value?: number;
305315
}
306316
}
317+
318+
export interface LinkedHolder {
319+
/**
320+
* Name of the account holder
321+
*/
322+
name?: string;
323+
324+
/**
325+
* PAN of the account holder
326+
*/
327+
pan?: string;
328+
}
307329
}
308330

309331
export interface Insurance {
@@ -440,6 +462,11 @@ export namespace UnifiedResponse {
440462
*/
441463
folio_number?: string;
442464

465+
/**
466+
* List of account holders linked to this mutual fund folio
467+
*/
468+
linked_holders?: Array<MutualFund.LinkedHolder>;
469+
443470
/**
444471
* Registrar and Transfer Agent name
445472
*/
@@ -474,6 +501,18 @@ export namespace UnifiedResponse {
474501
pankyc?: string;
475502
}
476503

504+
export interface LinkedHolder {
505+
/**
506+
* Name of the account holder
507+
*/
508+
name?: string;
509+
510+
/**
511+
* PAN of the account holder
512+
*/
513+
pan?: string;
514+
}
515+
477516
export interface Scheme {
478517
/**
479518
* Additional information specific to the scheme
@@ -615,6 +654,98 @@ export namespace UnifiedResponse {
615654
}
616655
}
617656

657+
export interface Np {
658+
/**
659+
* Additional information specific to the NPS account
660+
*/
661+
additional_info?: unknown;
662+
663+
/**
664+
* Central Record Keeping Agency name
665+
*/
666+
cra?: string;
667+
668+
funds?: Array<Np.Fund>;
669+
670+
/**
671+
* List of account holders linked to this NPS account
672+
*/
673+
linked_holders?: Array<Np.LinkedHolder>;
674+
675+
/**
676+
* Permanent Retirement Account Number (PRAN)
677+
*/
678+
pran?: string;
679+
680+
/**
681+
* Total value of the NPS account
682+
*/
683+
value?: number;
684+
}
685+
686+
export namespace Np {
687+
export interface Fund {
688+
/**
689+
* Additional information specific to the NPS fund
690+
*/
691+
additional_info?: Fund.AdditionalInfo;
692+
693+
/**
694+
* Cost of investment
695+
*/
696+
cost?: number;
697+
698+
/**
699+
* Name of the NPS fund
700+
*/
701+
name?: string;
702+
703+
/**
704+
* Net Asset Value per unit
705+
*/
706+
nav?: number;
707+
708+
/**
709+
* Number of units held
710+
*/
711+
units?: number;
712+
713+
/**
714+
* Current market value of the holding
715+
*/
716+
value?: number;
717+
}
718+
719+
export namespace Fund {
720+
/**
721+
* Additional information specific to the NPS fund
722+
*/
723+
export interface AdditionalInfo {
724+
/**
725+
* Fund manager name
726+
*/
727+
manager?: string;
728+
729+
/**
730+
* NPS tier (Tier I or Tier II)
731+
*/
732+
tier?: 1 | 2 | null;
733+
}
734+
}
735+
736+
export interface LinkedHolder {
737+
/**
738+
* Name of the account holder
739+
*/
740+
name?: string;
741+
742+
/**
743+
* PAN of the account holder
744+
*/
745+
pan?: string;
746+
}
747+
}
748+
618749
export interface Summary {
619750
accounts?: Summary.Accounts;
620751

@@ -631,6 +762,8 @@ export namespace UnifiedResponse {
631762
insurance?: Accounts.Insurance;
632763

633764
mutual_funds?: Accounts.MutualFunds;
765+
766+
nps?: Accounts.Nps;
634767
}
635768

636769
export namespace Accounts {
@@ -669,6 +802,18 @@ export namespace UnifiedResponse {
669802
*/
670803
total_value?: number;
671804
}
805+
806+
export interface Nps {
807+
/**
808+
* Number of NPS accounts
809+
*/
810+
count?: number;
811+
812+
/**
813+
* Total value of NPS accounts
814+
*/
815+
total_value?: number;
816+
}
672817
}
673818
}
674819
}

0 commit comments

Comments
 (0)