@reposit/api-client 6.56.0 → 6.57.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/dist/api.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare enum AddRejectionReasonRequestDTORejectionReasonEnum {
14
14
  NONREFUNDABLEFEE = "NON_REFUNDABLE_FEE",
15
15
  TOOEXPENSIVE = "TOO_EXPENSIVE",
16
16
  DONTUNDERSTAND = "DONT_UNDERSTAND",
17
+ FAILEDREFERENCING = "FAILED_REFERENCING",
17
18
  OTHER = "OTHER"
18
19
  }
19
20
  export interface AddTenantRequestDTO {
@@ -103,6 +104,11 @@ export interface ArbitrationResponseDTO {
103
104
  message?: string;
104
105
  createdAt: string;
105
106
  }
107
+ export interface BankDetailsDTO {
108
+ accountNumber: string;
109
+ sortCode: string;
110
+ reference: string;
111
+ }
106
112
  export interface BeneficiaryDTO {
107
113
  id: string;
108
114
  firstName: string;
@@ -113,6 +119,26 @@ export interface BeneficiaryDTO {
113
119
  export interface CashDepositDTO {
114
120
  cashDeposit: number;
115
121
  }
122
+ export interface CashDepositDetailsDTO {
123
+ amount: number;
124
+ PPM: number;
125
+ letOnly: boolean;
126
+ startDate: string;
127
+ property: CashDepositPropertyDTO;
128
+ cashDepositScheme: CashDepositSchemeDTO;
129
+ }
130
+ export interface CashDepositPropertyDTO {
131
+ address: CoreAddressDTO;
132
+ }
133
+ export interface CashDepositSchemeDTO {
134
+ id: string;
135
+ name: string;
136
+ }
137
+ export interface CashDepositTenantDTO {
138
+ firstName: string;
139
+ lastName: string;
140
+ email: string;
141
+ }
116
142
  export interface ChangeInstalmentDatesDTO {
117
143
  targetInstalmentDate: number;
118
144
  }
@@ -417,6 +443,9 @@ export declare enum ClaimWithCheckoutRelationsDTOStatusEnum {
417
443
  ARBITRATION = "ARBITRATION",
418
444
  INSURANCECLAIM = "INSURANCE_CLAIM"
419
445
  }
446
+ export interface ConfirmTenancyDetailsResponseDTO {
447
+ confirmedAt: Date;
448
+ }
420
449
  export interface CoreAddressDTO {
421
450
  roomNumber?: string;
422
451
  flatNumber?: string;
@@ -1002,6 +1031,10 @@ export interface DeactivateClaimDTO {
1002
1031
  export interface DeferPaymentPlanInstalmentDTO {
1003
1032
  deferredDate: string;
1004
1033
  }
1034
+ export interface DepositDTO {
1035
+ cashDepositScheme: OfferDepositSchemeDTO;
1036
+ status: string;
1037
+ }
1005
1038
  export interface DocumentDTO {
1006
1039
  id: string;
1007
1040
  name: string;
@@ -1316,6 +1349,10 @@ export interface NextPaymentPlanActionDTO {
1316
1349
  export interface NotifyIntegratorDTO {
1317
1350
  integratorId: string;
1318
1351
  }
1352
+ export interface OfferDepositSchemeDTO {
1353
+ id: string;
1354
+ name: string;
1355
+ }
1319
1356
  export interface OfferToTenantRequestDTO {
1320
1357
  propertyId: string;
1321
1358
  PPM: number;
@@ -1582,6 +1619,7 @@ export interface OrganizationSettingsDTO {
1582
1619
  offerRepositEnabled?: boolean;
1583
1620
  inventoryChaserDisabled?: boolean;
1584
1621
  minimumFeeDisabled?: boolean;
1622
+ pendingSwitchRemindersDisabled?: boolean;
1585
1623
  }
1586
1624
  export declare enum OrganizationSettingsDTOPricingRuleEnum {
1587
1625
  STANDARD = "STANDARD",
@@ -1960,7 +1998,8 @@ export declare enum QueueMessageDTOTypeEnum {
1960
1998
  IVRCALLPROCESSING = "IVR_CALL_PROCESSING",
1961
1999
  PROCESSTWILIOIVRWEBHOOK = "PROCESS_TWILIO_IVR_WEBHOOK",
1962
2000
  PROCESSTWILIOVOICEMAILWEBHOOK = "PROCESS_TWILIO_VOICEMAIL_WEBHOOK",
1963
- PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER"
2001
+ PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER",
2002
+ DEPOSITCOMPLETED = "DEPOSIT_COMPLETED"
1964
2003
  }
1965
2004
  export declare enum QueueMessageDTOCronNameEnum {
1966
2005
  DAILYKPIS = "DAILY_KPIS",
@@ -2003,7 +2042,8 @@ export declare enum QueueMessageDTOCronNameEnum {
2003
2042
  DAILYEVIDENCECHASERSUPPLIERDRAFTREMINDER = "DAILY_EVIDENCE_CHASER_SUPPLIER_DRAFT_REMINDER",
2004
2043
  DAILYARBITRATIONSENTNOTIFICATION = "DAILY_ARBITRATION_SENT_NOTIFICATION",
2005
2044
  DAILYIVRCALLPROCESSING = "DAILY_IVR_CALL_PROCESSING",
2006
- WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER"
2045
+ WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER",
2046
+ POLLPENDINGCASHDEPOSITS = "POLL_PENDING_CASH_DEPOSITS"
2007
2047
  }
2008
2048
  export interface ReconciliationDocumentDTO {
2009
2049
  document: DocumentDTO;
@@ -2138,6 +2178,7 @@ export interface RepositOfferDTO {
2138
2178
  repositAmount: number;
2139
2179
  savingAmount: number;
2140
2180
  tenancyOrder?: TenancyOrderDTO;
2181
+ cashDeposit?: DepositDTO;
2141
2182
  tenantsReferenceStatus?: RepositOfferDTOTenantsReferenceStatusEnum;
2142
2183
  tenancyStartDate?: string;
2143
2184
  tenancyEndDate?: string;
@@ -2351,6 +2392,7 @@ export interface SearchRepositOfferDTO {
2351
2392
  repositAmount: number;
2352
2393
  savingAmount: number;
2353
2394
  tenancyOrder?: TenancyOrderDTO;
2395
+ cashDeposit?: DepositDTO;
2354
2396
  tenantsReferenceStatus?: SearchRepositOfferDTOTenantsReferenceStatusEnum;
2355
2397
  tenancyStartDate?: string;
2356
2398
  tenancyEndDate?: string;
@@ -2870,6 +2912,21 @@ export interface UserFeatureFlagsDTO {
2870
2912
  betaAllowed?: boolean;
2871
2913
  betaEnabled?: boolean;
2872
2914
  }
2915
+ export interface VerifyPostcodeRequestDTO {
2916
+ token: string;
2917
+ postcode: string;
2918
+ }
2919
+ export interface VerifyPostcodeResponseDTO {
2920
+ status: VerifyPostcodeResponseDTOStatusEnum;
2921
+ bankDetails?: BankDetailsDTO;
2922
+ cashDeposit?: CashDepositDetailsDTO;
2923
+ tenants: Array<CashDepositTenantDTO>;
2924
+ }
2925
+ export declare enum VerifyPostcodeResponseDTOStatusEnum {
2926
+ PENDING = "PENDING",
2927
+ CANCELLED = "CANCELLED",
2928
+ PAID = "PAID"
2929
+ }
2873
2930
  export declare const AddressesApiAxiosParamCreator: (configuration?: Configuration) => {
2874
2931
  createAddress(createAddressWithOrgDTO: CreateAddressWithOrgDTO, options?: any): RequestArgs;
2875
2932
  findAddressById(id: string, options?: any): RequestArgs;
@@ -3050,6 +3107,26 @@ export interface BeneficiariesApiInterface {
3050
3107
  export declare class BeneficiariesApi extends BaseAPI implements BeneficiariesApiInterface {
3051
3108
  updateBeneficiary(id: string, updateBeneficiaryDTO: UpdateBeneficiaryDTO, options?: any): AxiosPromise<BeneficiaryDTO>;
3052
3109
  }
3110
+ export declare const CashDepositsApiAxiosParamCreator: (configuration?: Configuration) => {
3111
+ confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): RequestArgs;
3112
+ verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): RequestArgs;
3113
+ };
3114
+ export declare const CashDepositsApiFp: (configuration?: Configuration) => {
3115
+ confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
3116
+ verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyPostcodeResponseDTO>;
3117
+ };
3118
+ export declare const CashDepositsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3119
+ confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
3120
+ verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
3121
+ };
3122
+ export interface CashDepositsApiInterface {
3123
+ confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
3124
+ verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
3125
+ }
3126
+ export declare class CashDepositsApi extends BaseAPI implements CashDepositsApiInterface {
3127
+ confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
3128
+ verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
3129
+ }
3053
3130
  export declare const ChecksApiAxiosParamCreator: (configuration?: Configuration) => {
3054
3131
  findCheckById(id: string, options?: any): RequestArgs;
3055
3132
  override(id: string, options?: any): RequestArgs;
package/dist/api.js CHANGED
@@ -32,6 +32,7 @@ var AddRejectionReasonRequestDTORejectionReasonEnum;
32
32
  AddRejectionReasonRequestDTORejectionReasonEnum["NONREFUNDABLEFEE"] = "NON_REFUNDABLE_FEE";
33
33
  AddRejectionReasonRequestDTORejectionReasonEnum["TOOEXPENSIVE"] = "TOO_EXPENSIVE";
34
34
  AddRejectionReasonRequestDTORejectionReasonEnum["DONTUNDERSTAND"] = "DONT_UNDERSTAND";
35
+ AddRejectionReasonRequestDTORejectionReasonEnum["FAILEDREFERENCING"] = "FAILED_REFERENCING";
35
36
  AddRejectionReasonRequestDTORejectionReasonEnum["OTHER"] = "OTHER";
36
37
  })(AddRejectionReasonRequestDTORejectionReasonEnum = exports.AddRejectionReasonRequestDTORejectionReasonEnum || (exports.AddRejectionReasonRequestDTORejectionReasonEnum = {}));
37
38
  var ArbitrationDTOStatusEnum;
@@ -806,6 +807,7 @@ var QueueMessageDTOTypeEnum;
806
807
  QueueMessageDTOTypeEnum["PROCESSTWILIOIVRWEBHOOK"] = "PROCESS_TWILIO_IVR_WEBHOOK";
807
808
  QueueMessageDTOTypeEnum["PROCESSTWILIOVOICEMAILWEBHOOK"] = "PROCESS_TWILIO_VOICEMAIL_WEBHOOK";
808
809
  QueueMessageDTOTypeEnum["PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER"] = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER";
810
+ QueueMessageDTOTypeEnum["DEPOSITCOMPLETED"] = "DEPOSIT_COMPLETED";
809
811
  })(QueueMessageDTOTypeEnum = exports.QueueMessageDTOTypeEnum || (exports.QueueMessageDTOTypeEnum = {}));
810
812
  var QueueMessageDTOCronNameEnum;
811
813
  (function (QueueMessageDTOCronNameEnum) {
@@ -850,6 +852,7 @@ var QueueMessageDTOCronNameEnum;
850
852
  QueueMessageDTOCronNameEnum["DAILYARBITRATIONSENTNOTIFICATION"] = "DAILY_ARBITRATION_SENT_NOTIFICATION";
851
853
  QueueMessageDTOCronNameEnum["DAILYIVRCALLPROCESSING"] = "DAILY_IVR_CALL_PROCESSING";
852
854
  QueueMessageDTOCronNameEnum["WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER"] = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER";
855
+ QueueMessageDTOCronNameEnum["POLLPENDINGCASHDEPOSITS"] = "POLL_PENDING_CASH_DEPOSITS";
853
856
  })(QueueMessageDTOCronNameEnum = exports.QueueMessageDTOCronNameEnum || (exports.QueueMessageDTOCronNameEnum = {}));
854
857
  var ReferenceDTOStatusEnum;
855
858
  (function (ReferenceDTOStatusEnum) {
@@ -1016,6 +1019,12 @@ var UserDTOInternalRolesEnum;
1016
1019
  UserDTOInternalRolesEnum["INTERNALREPORTSALES"] = "INTERNAL_REPORT_SALES";
1017
1020
  UserDTOInternalRolesEnum["MANAGEORGANIZATIONUSERROLES"] = "MANAGE_ORGANIZATION_USER_ROLES";
1018
1021
  })(UserDTOInternalRolesEnum = exports.UserDTOInternalRolesEnum || (exports.UserDTOInternalRolesEnum = {}));
1022
+ var VerifyPostcodeResponseDTOStatusEnum;
1023
+ (function (VerifyPostcodeResponseDTOStatusEnum) {
1024
+ VerifyPostcodeResponseDTOStatusEnum["PENDING"] = "PENDING";
1025
+ VerifyPostcodeResponseDTOStatusEnum["CANCELLED"] = "CANCELLED";
1026
+ VerifyPostcodeResponseDTOStatusEnum["PAID"] = "PAID";
1027
+ })(VerifyPostcodeResponseDTOStatusEnum = exports.VerifyPostcodeResponseDTOStatusEnum || (exports.VerifyPostcodeResponseDTOStatusEnum = {}));
1019
1028
  exports.AddressesApiAxiosParamCreator = function (configuration) {
1020
1029
  return {
1021
1030
  createAddress: function (createAddressWithOrgDTO, options) {
@@ -2059,6 +2068,106 @@ var BeneficiariesApi = (function (_super) {
2059
2068
  return BeneficiariesApi;
2060
2069
  }(base_1.BaseAPI));
2061
2070
  exports.BeneficiariesApi = BeneficiariesApi;
2071
+ exports.CashDepositsApiAxiosParamCreator = function (configuration) {
2072
+ return {
2073
+ confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
2074
+ if (options === void 0) { options = {}; }
2075
+ if (verifyPostcodeRequestDTO === null || verifyPostcodeRequestDTO === undefined) {
2076
+ throw new base_1.RequiredError('verifyPostcodeRequestDTO', 'Required parameter verifyPostcodeRequestDTO was null or undefined when calling confirmTenancyDetails.');
2077
+ }
2078
+ var localVarPath = "/v2/cash-deposit/confirm-tenancy-details";
2079
+ var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
2080
+ var baseOptions;
2081
+ if (configuration) {
2082
+ baseOptions = configuration.baseOptions;
2083
+ }
2084
+ var localVarRequestOptions = __assign({ method: 'POST' }, baseOptions, options);
2085
+ var localVarHeaderParameter = {};
2086
+ var localVarQueryParameter = {};
2087
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2088
+ localVarUrlObj.query = __assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2089
+ delete localVarUrlObj.search;
2090
+ localVarRequestOptions.headers = __assign({}, localVarHeaderParameter, options.headers);
2091
+ var needsSerialization = ("VerifyPostcodeRequestDTO" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2092
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(verifyPostcodeRequestDTO !== undefined ? verifyPostcodeRequestDTO : {}) : (verifyPostcodeRequestDTO || "");
2093
+ return {
2094
+ url: globalImportUrl.format(localVarUrlObj),
2095
+ options: localVarRequestOptions,
2096
+ };
2097
+ },
2098
+ verifyPostcode: function (verifyPostcodeRequestDTO, options) {
2099
+ if (options === void 0) { options = {}; }
2100
+ if (verifyPostcodeRequestDTO === null || verifyPostcodeRequestDTO === undefined) {
2101
+ throw new base_1.RequiredError('verifyPostcodeRequestDTO', 'Required parameter verifyPostcodeRequestDTO was null or undefined when calling verifyPostcode.');
2102
+ }
2103
+ var localVarPath = "/v2/cash-deposit/verify-postcode";
2104
+ var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
2105
+ var baseOptions;
2106
+ if (configuration) {
2107
+ baseOptions = configuration.baseOptions;
2108
+ }
2109
+ var localVarRequestOptions = __assign({ method: 'POST' }, baseOptions, options);
2110
+ var localVarHeaderParameter = {};
2111
+ var localVarQueryParameter = {};
2112
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2113
+ localVarUrlObj.query = __assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2114
+ delete localVarUrlObj.search;
2115
+ localVarRequestOptions.headers = __assign({}, localVarHeaderParameter, options.headers);
2116
+ var needsSerialization = ("VerifyPostcodeRequestDTO" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2117
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(verifyPostcodeRequestDTO !== undefined ? verifyPostcodeRequestDTO : {}) : (verifyPostcodeRequestDTO || "");
2118
+ return {
2119
+ url: globalImportUrl.format(localVarUrlObj),
2120
+ options: localVarRequestOptions,
2121
+ };
2122
+ },
2123
+ };
2124
+ };
2125
+ exports.CashDepositsApiFp = function (configuration) {
2126
+ return {
2127
+ confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
2128
+ var localVarAxiosArgs = exports.CashDepositsApiAxiosParamCreator(configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options);
2129
+ return function (axios, basePath) {
2130
+ if (axios === void 0) { axios = axios_1.default; }
2131
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
2132
+ var axiosRequestArgs = __assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
2133
+ return axios.request(axiosRequestArgs);
2134
+ };
2135
+ },
2136
+ verifyPostcode: function (verifyPostcodeRequestDTO, options) {
2137
+ var localVarAxiosArgs = exports.CashDepositsApiAxiosParamCreator(configuration).verifyPostcode(verifyPostcodeRequestDTO, options);
2138
+ return function (axios, basePath) {
2139
+ if (axios === void 0) { axios = axios_1.default; }
2140
+ if (basePath === void 0) { basePath = base_1.BASE_PATH; }
2141
+ var axiosRequestArgs = __assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
2142
+ return axios.request(axiosRequestArgs);
2143
+ };
2144
+ },
2145
+ };
2146
+ };
2147
+ exports.CashDepositsApiFactory = function (configuration, basePath, axios) {
2148
+ return {
2149
+ confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
2150
+ return exports.CashDepositsApiFp(configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options)(axios, basePath);
2151
+ },
2152
+ verifyPostcode: function (verifyPostcodeRequestDTO, options) {
2153
+ return exports.CashDepositsApiFp(configuration).verifyPostcode(verifyPostcodeRequestDTO, options)(axios, basePath);
2154
+ },
2155
+ };
2156
+ };
2157
+ var CashDepositsApi = (function (_super) {
2158
+ __extends(CashDepositsApi, _super);
2159
+ function CashDepositsApi() {
2160
+ return _super !== null && _super.apply(this, arguments) || this;
2161
+ }
2162
+ CashDepositsApi.prototype.confirmTenancyDetails = function (verifyPostcodeRequestDTO, options) {
2163
+ return exports.CashDepositsApiFp(this.configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options)(this.axios, this.basePath);
2164
+ };
2165
+ CashDepositsApi.prototype.verifyPostcode = function (verifyPostcodeRequestDTO, options) {
2166
+ return exports.CashDepositsApiFp(this.configuration).verifyPostcode(verifyPostcodeRequestDTO, options)(this.axios, this.basePath);
2167
+ };
2168
+ return CashDepositsApi;
2169
+ }(base_1.BaseAPI));
2170
+ exports.CashDepositsApi = CashDepositsApi;
2062
2171
  exports.ChecksApiAxiosParamCreator = function (configuration) {
2063
2172
  return {
2064
2173
  findCheckById: function (id, options) {