Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
weronika-kurczyna committed Sep 29, 2023
1 parent 846ea41 commit 4c1ba0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/Customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ class Customers {
/**
* @see https://docs.voucherify.io/reference/update-customers-in-bulk
*/
public updateCustomersInBulk(customers: T.UpdateCustomersInBulk) {
public updateCustomersInBulk(customers: T.CustomersUpdateCustomersInBulkRequestBody) {
return this.client.post<AAT.AsyncActionCreateResponse>(`/customers/bulk/async`, customers)
}
/**
* @see https://docs.voucherify.io/reference/update-customers-metadata-in-bulk
*/
public updateCustomersMetadataInBulk(sourceIdsAndMetadata: T.UpdateCustomersMetadataInBulk) {
public updateCustomersMetadataInBulk(sourceIdsAndMetadata: T.CustomersUpdateCustomersMetadataInBulkRequestBody) {
return this.client.post<AAT.AsyncActionCreateResponse>(`/customers/metadata/async`, sourceIdsAndMetadata)
}
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/types/Customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface CustomerRequest extends CustomerRequestBasicData {
source_id?: string
}

export type UpdateCustomersInBulk = (CustomerRequestBasicData & { source_id: string })[]
export type CustomersUpdateCustomersInBulkRequestBody = (CustomerRequestBasicData & { source_id: string })[]

export interface CustomersCommonListRequest {
limit?: number
Expand Down Expand Up @@ -161,7 +161,7 @@ export type CustomersUpdateResponse = CustomerObject | CustomerUnconfirmed

export type CustomersUpdateConsentsBody = Record<string, boolean>

export interface UpdateCustomersMetadataInBulk {
export interface CustomersUpdateCustomersMetadataInBulkRequestBody {
source_ids: string[]
metadata: Record<string, any>
}

0 comments on commit 4c1ba0a

Please sign in to comment.