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:
1 parent
dec7d20b89
commit
669adbcdc9
1 file changed
-27
@@ -14,33 +14,6 @@ export class PaymentCollection {
|
|||||||
this.client = client
|
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(
|
async create(
|
||||||
body: HttpTypes.AdminCreatePaymentCollection,
|
body: HttpTypes.AdminCreatePaymentCollection,
|
||||||
query?: SelectParams,
|
query?: SelectParams,
|
||||||
|
|||||||
Reference in new issue
Block a user