Skip to content

Commit

Permalink
fix(js-sdk): remove list and retrieve methods of paymentCollection (#…
Browse files Browse the repository at this point in the history
…9746)

Co-authored-by: Harminder Virk <[email protected]>
  • Loading branch information
shahednasser and thetutlage authored Oct 24, 2024
1 parent dec7d20 commit 669adbc
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions packages/core/js-sdk/src/admin/payment-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,6 @@ export class PaymentCollection {
this.client = client
}

async list(
query?: HttpTypes.AdminPaymentCollectionFilters,
headers?: ClientHeaders
) {
return await this.client.fetch<HttpTypes.AdminPaymentCollectionsResponse>(
`/admin/payment-collections`,
{
query,
headers,
}
)
}

async retrieve(
id: string,
query?: HttpTypes.AdminPaymentCollectionFilters,
headers?: ClientHeaders
) {
return await this.client.fetch<HttpTypes.AdminPaymentCollectionResponse>(
`/admin/payment-collections/${id}`,
{
query,
headers,
}
)
}

async create(
body: HttpTypes.AdminCreatePaymentCollection,
query?: SelectParams,
Expand Down

0 comments on commit 669adbc

Please sign in to comment.