fix(js-sdk): remove list and retrieve methods of paymentCollection (#9746)

Co-authored-by: Harminder Virk <virk.officials@gmail.com>
This commit is contained in:
Shahed Nasser
2024-10-24 13:27:57 +03:00
committed by GitHub
parent dec7d20b89
commit 669adbcdc9
@@ -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,