Skip to content

Conversation

@axshani
Copy link
Contributor

@axshani axshani commented May 26, 2021

added Customer interface in core
added Customer methods in resources

username removed from authorizedUser
added baseResource class, every resource extends this class now.

created types/depositAccount.ts
created PatchCustomerRequest interfaces

axshani added 5 commits May 22, 2021 19:46
added Customer methods in resources

username removed from authorizedUser
DepsitAccount was added
every resource extends this class now.
created PatchCustomerRequest interface
added default content-type to header

return res
}
// var data = new FormData()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comments

}

var path = `${this.basePath + this.resourcePath}/${id}`
public async listDocuments(id: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not just an id its an applicationId

Suggested change
public async listDocuments(id: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> {
public async listDocuments(applicationId: number: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> {

}


// export async function delete(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove until you will implement it

types/core.ts Outdated
}]
}

export function createAddress(street: string, city: string, postalCode: string, country: string, state?: State, street2?: string): Address {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the rest of the creational functions (e.g. createFullName etc)

factory methods were completed
added httpDelete for future use
id renamed to customerId or applicationId
@Elroie Elroie merged commit c532c9b into main May 27, 2021
@Elroie Elroie deleted the application-documents branch May 27, 2021 14:20
ilyamerman pushed a commit that referenced this pull request Jan 6, 2022
YegorZh pushed a commit to YegorZh/unit-node-sdk that referenced this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants