fix(oas): fix paths and fix schema names to match convention (#3288)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
AdminUpdatePaymentCollectionsReq,
|
||||
AdminGetPaymentCollectionsParams,
|
||||
AdminPaymentCollectionDeleteRes,
|
||||
AdminPaymentCollectionsRes,
|
||||
GetPaymentCollectionsParams,
|
||||
AdminUpdatePaymentCollectionsReq,
|
||||
} from "@medusajs/medusa"
|
||||
import { ResponsePromise } from "../../typings"
|
||||
import BaseResource from "../base"
|
||||
@@ -11,7 +11,7 @@ import qs from "qs"
|
||||
class AdminPaymentCollectionsResource extends BaseResource {
|
||||
retrieve(
|
||||
id: string,
|
||||
query?: GetPaymentCollectionsParams,
|
||||
query?: AdminGetPaymentCollectionsParams,
|
||||
customHeaders: Record<string, any> = {}
|
||||
): ResponsePromise<AdminPaymentCollectionsRes> {
|
||||
let path = `/admin/payment-collections/${id}`
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
GetPaymentCollectionsParams,
|
||||
StorePostPaymentCollectionsBatchSessionsReq,
|
||||
StorePostPaymentCollectionsBatchSessionsAuthorizeReq,
|
||||
StoreGetPaymentCollectionsParams,
|
||||
StorePaymentCollectionSessionsReq,
|
||||
StorePaymentCollectionsSessionRes,
|
||||
StorePaymentCollectionsRes,
|
||||
StorePaymentCollectionsSessionRes,
|
||||
StorePostPaymentCollectionsBatchSessionsAuthorizeReq,
|
||||
StorePostPaymentCollectionsBatchSessionsReq,
|
||||
} from "@medusajs/medusa"
|
||||
import { ResponsePromise } from "../typings"
|
||||
import BaseResource from "./base"
|
||||
@@ -13,7 +13,7 @@ import qs from "qs"
|
||||
class PaymentCollectionsResource extends BaseResource {
|
||||
retrieve(
|
||||
id: string,
|
||||
query?: GetPaymentCollectionsParams,
|
||||
query?: StoreGetPaymentCollectionsParams,
|
||||
customHeaders: Record<string, any> = {}
|
||||
): ResponsePromise<StorePaymentCollectionsRes> {
|
||||
let path = `/store/payment-collections/${id}`
|
||||
|
||||
Reference in New Issue
Block a user