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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user