-
Notifications
You must be signed in to change notification settings - Fork 57
Application documents #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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
and small refactoring
resources/application.ts
Outdated
|
|
||
| return res | ||
| } | ||
| // var data = new FormData() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
resources/application.ts
Outdated
| } | ||
|
|
||
| var path = `${this.basePath + this.resourcePath}/${id}` | ||
| public async listDocuments(id: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> { |
There was a problem hiding this comment.
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
| public async listDocuments(id: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> { | |
| public async listDocuments(applicationId: number: number): Promise<UnitResponse<ApplicationDocument[]> | UnitError> { |
resources/baseResource.ts
Outdated
| } | ||
|
|
||
|
|
||
| // export async function delete(){ |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
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