@reposit/api-client 6.56.0 → 6.58.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 +88 -2
- package/dist/api.js +119 -0
- package/dist/api.js.map +1 -1
- package/package.json +1 -1
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,16 @@ export interface DeactivateClaimDTO {
|
|
|
1002
1031
|
export interface DeferPaymentPlanInstalmentDTO {
|
|
1003
1032
|
deferredDate: string;
|
|
1004
1033
|
}
|
|
1034
|
+
export interface DepositDTO {
|
|
1035
|
+
cashDepositScheme: OfferDepositSchemeDTO;
|
|
1036
|
+
status: DepositDTOStatusEnum;
|
|
1037
|
+
}
|
|
1038
|
+
export declare enum DepositDTOStatusEnum {
|
|
1039
|
+
PENDING = "PENDING",
|
|
1040
|
+
CANCELLED = "CANCELLED",
|
|
1041
|
+
PARTIALLYPAID = "PARTIALLY_PAID",
|
|
1042
|
+
PAID = "PAID"
|
|
1043
|
+
}
|
|
1005
1044
|
export interface DocumentDTO {
|
|
1006
1045
|
id: string;
|
|
1007
1046
|
name: string;
|
|
@@ -1316,6 +1355,10 @@ export interface NextPaymentPlanActionDTO {
|
|
|
1316
1355
|
export interface NotifyIntegratorDTO {
|
|
1317
1356
|
integratorId: string;
|
|
1318
1357
|
}
|
|
1358
|
+
export interface OfferDepositSchemeDTO {
|
|
1359
|
+
id: string;
|
|
1360
|
+
name: string;
|
|
1361
|
+
}
|
|
1319
1362
|
export interface OfferToTenantRequestDTO {
|
|
1320
1363
|
propertyId: string;
|
|
1321
1364
|
PPM: number;
|
|
@@ -1582,6 +1625,7 @@ export interface OrganizationSettingsDTO {
|
|
|
1582
1625
|
offerRepositEnabled?: boolean;
|
|
1583
1626
|
inventoryChaserDisabled?: boolean;
|
|
1584
1627
|
minimumFeeDisabled?: boolean;
|
|
1628
|
+
pendingSwitchRemindersDisabled?: boolean;
|
|
1585
1629
|
}
|
|
1586
1630
|
export declare enum OrganizationSettingsDTOPricingRuleEnum {
|
|
1587
1631
|
STANDARD = "STANDARD",
|
|
@@ -1960,7 +2004,9 @@ export declare enum QueueMessageDTOTypeEnum {
|
|
|
1960
2004
|
IVRCALLPROCESSING = "IVR_CALL_PROCESSING",
|
|
1961
2005
|
PROCESSTWILIOIVRWEBHOOK = "PROCESS_TWILIO_IVR_WEBHOOK",
|
|
1962
2006
|
PROCESSTWILIOVOICEMAILWEBHOOK = "PROCESS_TWILIO_VOICEMAIL_WEBHOOK",
|
|
1963
|
-
PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER"
|
|
2007
|
+
PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER",
|
|
2008
|
+
DEPOSITCOMPLETED = "DEPOSIT_COMPLETED",
|
|
2009
|
+
REFRESHMYDEPOSITSACCESSTOKEN = "REFRESH_MY_DEPOSITS_ACCESS_TOKEN"
|
|
1964
2010
|
}
|
|
1965
2011
|
export declare enum QueueMessageDTOCronNameEnum {
|
|
1966
2012
|
DAILYKPIS = "DAILY_KPIS",
|
|
@@ -2003,7 +2049,9 @@ export declare enum QueueMessageDTOCronNameEnum {
|
|
|
2003
2049
|
DAILYEVIDENCECHASERSUPPLIERDRAFTREMINDER = "DAILY_EVIDENCE_CHASER_SUPPLIER_DRAFT_REMINDER",
|
|
2004
2050
|
DAILYARBITRATIONSENTNOTIFICATION = "DAILY_ARBITRATION_SENT_NOTIFICATION",
|
|
2005
2051
|
DAILYIVRCALLPROCESSING = "DAILY_IVR_CALL_PROCESSING",
|
|
2006
|
-
WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER"
|
|
2052
|
+
WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER",
|
|
2053
|
+
POLLPENDINGCASHDEPOSITS = "POLL_PENDING_CASH_DEPOSITS",
|
|
2054
|
+
REFRESHMYDEPOSITSACCESSTOKENS = "REFRESH_MY_DEPOSITS_ACCESS_TOKENS"
|
|
2007
2055
|
}
|
|
2008
2056
|
export interface ReconciliationDocumentDTO {
|
|
2009
2057
|
document: DocumentDTO;
|
|
@@ -2138,6 +2186,7 @@ export interface RepositOfferDTO {
|
|
|
2138
2186
|
repositAmount: number;
|
|
2139
2187
|
savingAmount: number;
|
|
2140
2188
|
tenancyOrder?: TenancyOrderDTO;
|
|
2189
|
+
cashDeposit?: DepositDTO;
|
|
2141
2190
|
tenantsReferenceStatus?: RepositOfferDTOTenantsReferenceStatusEnum;
|
|
2142
2191
|
tenancyStartDate?: string;
|
|
2143
2192
|
tenancyEndDate?: string;
|
|
@@ -2351,6 +2400,7 @@ export interface SearchRepositOfferDTO {
|
|
|
2351
2400
|
repositAmount: number;
|
|
2352
2401
|
savingAmount: number;
|
|
2353
2402
|
tenancyOrder?: TenancyOrderDTO;
|
|
2403
|
+
cashDeposit?: DepositDTO;
|
|
2354
2404
|
tenantsReferenceStatus?: SearchRepositOfferDTOTenantsReferenceStatusEnum;
|
|
2355
2405
|
tenancyStartDate?: string;
|
|
2356
2406
|
tenancyEndDate?: string;
|
|
@@ -2870,6 +2920,22 @@ export interface UserFeatureFlagsDTO {
|
|
|
2870
2920
|
betaAllowed?: boolean;
|
|
2871
2921
|
betaEnabled?: boolean;
|
|
2872
2922
|
}
|
|
2923
|
+
export interface VerifyPostcodeRequestDTO {
|
|
2924
|
+
token: string;
|
|
2925
|
+
postcode: string;
|
|
2926
|
+
}
|
|
2927
|
+
export interface VerifyPostcodeResponseDTO {
|
|
2928
|
+
status: VerifyPostcodeResponseDTOStatusEnum;
|
|
2929
|
+
bankDetails?: BankDetailsDTO;
|
|
2930
|
+
cashDeposit?: CashDepositDetailsDTO;
|
|
2931
|
+
tenants: Array<CashDepositTenantDTO>;
|
|
2932
|
+
}
|
|
2933
|
+
export declare enum VerifyPostcodeResponseDTOStatusEnum {
|
|
2934
|
+
PENDING = "PENDING",
|
|
2935
|
+
CANCELLED = "CANCELLED",
|
|
2936
|
+
PARTIALLYPAID = "PARTIALLY_PAID",
|
|
2937
|
+
PAID = "PAID"
|
|
2938
|
+
}
|
|
2873
2939
|
export declare const AddressesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2874
2940
|
createAddress(createAddressWithOrgDTO: CreateAddressWithOrgDTO, options?: any): RequestArgs;
|
|
2875
2941
|
findAddressById(id: string, options?: any): RequestArgs;
|
|
@@ -3050,6 +3116,26 @@ export interface BeneficiariesApiInterface {
|
|
|
3050
3116
|
export declare class BeneficiariesApi extends BaseAPI implements BeneficiariesApiInterface {
|
|
3051
3117
|
updateBeneficiary(id: string, updateBeneficiaryDTO: UpdateBeneficiaryDTO, options?: any): AxiosPromise<BeneficiaryDTO>;
|
|
3052
3118
|
}
|
|
3119
|
+
export declare const CashDepositsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3120
|
+
confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): RequestArgs;
|
|
3121
|
+
verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): RequestArgs;
|
|
3122
|
+
};
|
|
3123
|
+
export declare const CashDepositsApiFp: (configuration?: Configuration) => {
|
|
3124
|
+
confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
|
|
3125
|
+
verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyPostcodeResponseDTO>;
|
|
3126
|
+
};
|
|
3127
|
+
export declare const CashDepositsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3128
|
+
confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
|
|
3129
|
+
verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
|
|
3130
|
+
};
|
|
3131
|
+
export interface CashDepositsApiInterface {
|
|
3132
|
+
confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
|
|
3133
|
+
verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
|
|
3134
|
+
}
|
|
3135
|
+
export declare class CashDepositsApi extends BaseAPI implements CashDepositsApiInterface {
|
|
3136
|
+
confirmTenancyDetails(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<ConfirmTenancyDetailsResponseDTO>;
|
|
3137
|
+
verifyPostcode(verifyPostcodeRequestDTO: VerifyPostcodeRequestDTO, options?: any): AxiosPromise<VerifyPostcodeResponseDTO>;
|
|
3138
|
+
}
|
|
3053
3139
|
export declare const ChecksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3054
3140
|
findCheckById(id: string, options?: any): RequestArgs;
|
|
3055
3141
|
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;
|
|
@@ -393,6 +394,13 @@ var CurrentUserInfoDTOCurrentOrganizationRolesEnum;
|
|
|
393
394
|
CurrentUserInfoDTOCurrentOrganizationRolesEnum["BANKACCOUNTS"] = "BANK_ACCOUNTS";
|
|
394
395
|
CurrentUserInfoDTOCurrentOrganizationRolesEnum["ONBOARDING"] = "ONBOARDING";
|
|
395
396
|
})(CurrentUserInfoDTOCurrentOrganizationRolesEnum = exports.CurrentUserInfoDTOCurrentOrganizationRolesEnum || (exports.CurrentUserInfoDTOCurrentOrganizationRolesEnum = {}));
|
|
397
|
+
var DepositDTOStatusEnum;
|
|
398
|
+
(function (DepositDTOStatusEnum) {
|
|
399
|
+
DepositDTOStatusEnum["PENDING"] = "PENDING";
|
|
400
|
+
DepositDTOStatusEnum["CANCELLED"] = "CANCELLED";
|
|
401
|
+
DepositDTOStatusEnum["PARTIALLYPAID"] = "PARTIALLY_PAID";
|
|
402
|
+
DepositDTOStatusEnum["PAID"] = "PAID";
|
|
403
|
+
})(DepositDTOStatusEnum = exports.DepositDTOStatusEnum || (exports.DepositDTOStatusEnum = {}));
|
|
396
404
|
var EvidenceChaserDTOTypeEnum;
|
|
397
405
|
(function (EvidenceChaserDTOTypeEnum) {
|
|
398
406
|
EvidenceChaserDTOTypeEnum["AUTOACCEPTED"] = "AUTO_ACCEPTED";
|
|
@@ -806,6 +814,8 @@ var QueueMessageDTOTypeEnum;
|
|
|
806
814
|
QueueMessageDTOTypeEnum["PROCESSTWILIOIVRWEBHOOK"] = "PROCESS_TWILIO_IVR_WEBHOOK";
|
|
807
815
|
QueueMessageDTOTypeEnum["PROCESSTWILIOVOICEMAILWEBHOOK"] = "PROCESS_TWILIO_VOICEMAIL_WEBHOOK";
|
|
808
816
|
QueueMessageDTOTypeEnum["PENDINGREPOSITPOSTSTARTDATEWEEKLYREMINDER"] = "PENDING_REPOSIT_POST_START_DATE_WEEKLY_REMINDER";
|
|
817
|
+
QueueMessageDTOTypeEnum["DEPOSITCOMPLETED"] = "DEPOSIT_COMPLETED";
|
|
818
|
+
QueueMessageDTOTypeEnum["REFRESHMYDEPOSITSACCESSTOKEN"] = "REFRESH_MY_DEPOSITS_ACCESS_TOKEN";
|
|
809
819
|
})(QueueMessageDTOTypeEnum = exports.QueueMessageDTOTypeEnum || (exports.QueueMessageDTOTypeEnum = {}));
|
|
810
820
|
var QueueMessageDTOCronNameEnum;
|
|
811
821
|
(function (QueueMessageDTOCronNameEnum) {
|
|
@@ -850,6 +860,8 @@ var QueueMessageDTOCronNameEnum;
|
|
|
850
860
|
QueueMessageDTOCronNameEnum["DAILYARBITRATIONSENTNOTIFICATION"] = "DAILY_ARBITRATION_SENT_NOTIFICATION";
|
|
851
861
|
QueueMessageDTOCronNameEnum["DAILYIVRCALLPROCESSING"] = "DAILY_IVR_CALL_PROCESSING";
|
|
852
862
|
QueueMessageDTOCronNameEnum["WEEKLYPENDINGREPOSITPASTSTARTDATEREMINDER"] = "WEEKLY_PENDING_REPOSIT_PAST_START_DATE_REMINDER";
|
|
863
|
+
QueueMessageDTOCronNameEnum["POLLPENDINGCASHDEPOSITS"] = "POLL_PENDING_CASH_DEPOSITS";
|
|
864
|
+
QueueMessageDTOCronNameEnum["REFRESHMYDEPOSITSACCESSTOKENS"] = "REFRESH_MY_DEPOSITS_ACCESS_TOKENS";
|
|
853
865
|
})(QueueMessageDTOCronNameEnum = exports.QueueMessageDTOCronNameEnum || (exports.QueueMessageDTOCronNameEnum = {}));
|
|
854
866
|
var ReferenceDTOStatusEnum;
|
|
855
867
|
(function (ReferenceDTOStatusEnum) {
|
|
@@ -1016,6 +1028,13 @@ var UserDTOInternalRolesEnum;
|
|
|
1016
1028
|
UserDTOInternalRolesEnum["INTERNALREPORTSALES"] = "INTERNAL_REPORT_SALES";
|
|
1017
1029
|
UserDTOInternalRolesEnum["MANAGEORGANIZATIONUSERROLES"] = "MANAGE_ORGANIZATION_USER_ROLES";
|
|
1018
1030
|
})(UserDTOInternalRolesEnum = exports.UserDTOInternalRolesEnum || (exports.UserDTOInternalRolesEnum = {}));
|
|
1031
|
+
var VerifyPostcodeResponseDTOStatusEnum;
|
|
1032
|
+
(function (VerifyPostcodeResponseDTOStatusEnum) {
|
|
1033
|
+
VerifyPostcodeResponseDTOStatusEnum["PENDING"] = "PENDING";
|
|
1034
|
+
VerifyPostcodeResponseDTOStatusEnum["CANCELLED"] = "CANCELLED";
|
|
1035
|
+
VerifyPostcodeResponseDTOStatusEnum["PARTIALLYPAID"] = "PARTIALLY_PAID";
|
|
1036
|
+
VerifyPostcodeResponseDTOStatusEnum["PAID"] = "PAID";
|
|
1037
|
+
})(VerifyPostcodeResponseDTOStatusEnum = exports.VerifyPostcodeResponseDTOStatusEnum || (exports.VerifyPostcodeResponseDTOStatusEnum = {}));
|
|
1019
1038
|
exports.AddressesApiAxiosParamCreator = function (configuration) {
|
|
1020
1039
|
return {
|
|
1021
1040
|
createAddress: function (createAddressWithOrgDTO, options) {
|
|
@@ -2059,6 +2078,106 @@ var BeneficiariesApi = (function (_super) {
|
|
|
2059
2078
|
return BeneficiariesApi;
|
|
2060
2079
|
}(base_1.BaseAPI));
|
|
2061
2080
|
exports.BeneficiariesApi = BeneficiariesApi;
|
|
2081
|
+
exports.CashDepositsApiAxiosParamCreator = function (configuration) {
|
|
2082
|
+
return {
|
|
2083
|
+
confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
|
|
2084
|
+
if (options === void 0) { options = {}; }
|
|
2085
|
+
if (verifyPostcodeRequestDTO === null || verifyPostcodeRequestDTO === undefined) {
|
|
2086
|
+
throw new base_1.RequiredError('verifyPostcodeRequestDTO', 'Required parameter verifyPostcodeRequestDTO was null or undefined when calling confirmTenancyDetails.');
|
|
2087
|
+
}
|
|
2088
|
+
var localVarPath = "/v2/cash-deposit/confirm-tenancy-details";
|
|
2089
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2090
|
+
var baseOptions;
|
|
2091
|
+
if (configuration) {
|
|
2092
|
+
baseOptions = configuration.baseOptions;
|
|
2093
|
+
}
|
|
2094
|
+
var localVarRequestOptions = __assign({ method: 'POST' }, baseOptions, options);
|
|
2095
|
+
var localVarHeaderParameter = {};
|
|
2096
|
+
var localVarQueryParameter = {};
|
|
2097
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2098
|
+
localVarUrlObj.query = __assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
2099
|
+
delete localVarUrlObj.search;
|
|
2100
|
+
localVarRequestOptions.headers = __assign({}, localVarHeaderParameter, options.headers);
|
|
2101
|
+
var needsSerialization = ("VerifyPostcodeRequestDTO" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2102
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(verifyPostcodeRequestDTO !== undefined ? verifyPostcodeRequestDTO : {}) : (verifyPostcodeRequestDTO || "");
|
|
2103
|
+
return {
|
|
2104
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2105
|
+
options: localVarRequestOptions,
|
|
2106
|
+
};
|
|
2107
|
+
},
|
|
2108
|
+
verifyPostcode: function (verifyPostcodeRequestDTO, options) {
|
|
2109
|
+
if (options === void 0) { options = {}; }
|
|
2110
|
+
if (verifyPostcodeRequestDTO === null || verifyPostcodeRequestDTO === undefined) {
|
|
2111
|
+
throw new base_1.RequiredError('verifyPostcodeRequestDTO', 'Required parameter verifyPostcodeRequestDTO was null or undefined when calling verifyPostcode.');
|
|
2112
|
+
}
|
|
2113
|
+
var localVarPath = "/v2/cash-deposit/verify-postcode";
|
|
2114
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2115
|
+
var baseOptions;
|
|
2116
|
+
if (configuration) {
|
|
2117
|
+
baseOptions = configuration.baseOptions;
|
|
2118
|
+
}
|
|
2119
|
+
var localVarRequestOptions = __assign({ method: 'POST' }, baseOptions, options);
|
|
2120
|
+
var localVarHeaderParameter = {};
|
|
2121
|
+
var localVarQueryParameter = {};
|
|
2122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2123
|
+
localVarUrlObj.query = __assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
2124
|
+
delete localVarUrlObj.search;
|
|
2125
|
+
localVarRequestOptions.headers = __assign({}, localVarHeaderParameter, options.headers);
|
|
2126
|
+
var needsSerialization = ("VerifyPostcodeRequestDTO" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2127
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(verifyPostcodeRequestDTO !== undefined ? verifyPostcodeRequestDTO : {}) : (verifyPostcodeRequestDTO || "");
|
|
2128
|
+
return {
|
|
2129
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2130
|
+
options: localVarRequestOptions,
|
|
2131
|
+
};
|
|
2132
|
+
},
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
exports.CashDepositsApiFp = function (configuration) {
|
|
2136
|
+
return {
|
|
2137
|
+
confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
|
|
2138
|
+
var localVarAxiosArgs = exports.CashDepositsApiAxiosParamCreator(configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options);
|
|
2139
|
+
return function (axios, basePath) {
|
|
2140
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2141
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2142
|
+
var axiosRequestArgs = __assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
2143
|
+
return axios.request(axiosRequestArgs);
|
|
2144
|
+
};
|
|
2145
|
+
},
|
|
2146
|
+
verifyPostcode: function (verifyPostcodeRequestDTO, options) {
|
|
2147
|
+
var localVarAxiosArgs = exports.CashDepositsApiAxiosParamCreator(configuration).verifyPostcode(verifyPostcodeRequestDTO, options);
|
|
2148
|
+
return function (axios, basePath) {
|
|
2149
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2150
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2151
|
+
var axiosRequestArgs = __assign({}, localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url });
|
|
2152
|
+
return axios.request(axiosRequestArgs);
|
|
2153
|
+
};
|
|
2154
|
+
},
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
exports.CashDepositsApiFactory = function (configuration, basePath, axios) {
|
|
2158
|
+
return {
|
|
2159
|
+
confirmTenancyDetails: function (verifyPostcodeRequestDTO, options) {
|
|
2160
|
+
return exports.CashDepositsApiFp(configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options)(axios, basePath);
|
|
2161
|
+
},
|
|
2162
|
+
verifyPostcode: function (verifyPostcodeRequestDTO, options) {
|
|
2163
|
+
return exports.CashDepositsApiFp(configuration).verifyPostcode(verifyPostcodeRequestDTO, options)(axios, basePath);
|
|
2164
|
+
},
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
var CashDepositsApi = (function (_super) {
|
|
2168
|
+
__extends(CashDepositsApi, _super);
|
|
2169
|
+
function CashDepositsApi() {
|
|
2170
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2171
|
+
}
|
|
2172
|
+
CashDepositsApi.prototype.confirmTenancyDetails = function (verifyPostcodeRequestDTO, options) {
|
|
2173
|
+
return exports.CashDepositsApiFp(this.configuration).confirmTenancyDetails(verifyPostcodeRequestDTO, options)(this.axios, this.basePath);
|
|
2174
|
+
};
|
|
2175
|
+
CashDepositsApi.prototype.verifyPostcode = function (verifyPostcodeRequestDTO, options) {
|
|
2176
|
+
return exports.CashDepositsApiFp(this.configuration).verifyPostcode(verifyPostcodeRequestDTO, options)(this.axios, this.basePath);
|
|
2177
|
+
};
|
|
2178
|
+
return CashDepositsApi;
|
|
2179
|
+
}(base_1.BaseAPI));
|
|
2180
|
+
exports.CashDepositsApi = CashDepositsApi;
|
|
2062
2181
|
exports.ChecksApiAxiosParamCreator = function (configuration) {
|
|
2063
2182
|
return {
|
|
2064
2183
|
findCheckById: function (id, options) {
|