Paths: {
    /billing-keys: {
        get: {
            parameters: {
                body: GetBillingKeyInfosBody;
            };
            success: GetBillingKeyInfosResponse;
            error: Schema.ForbiddenError | Schema.InvalidRequestError | Schema.UnauthorizedError;
        };
        post: {
            parameters: {
                body: IssueBillingKeyBody;
            };
            success: IssueBillingKeyResponse;
            error:
                | Schema.ChannelNotFoundError
                | Schema.ChannelSpecificError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /billing-keys/{billingKey}: {
        get: {
            parameters: {
                path: {
                    billingKey: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: DeletedBillingKeyInfo | IssuedBillingKeyInfo;
            error:
                | Schema.BillingKeyNotFoundError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.UnauthorizedError;
        };
        delete: {
            parameters: {
                path: {
                    billingKey: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: DeleteBillingKeyResponse;
            error:
                | Schema.BillingKeyAlreadyDeletedError
                | Schema.BillingKeyNotFoundError
                | Schema.BillingKeyNotIssuedError
                | Schema.ChannelSpecificError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentScheduleAlreadyExistsError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /cash-receipts: {
        post: {
            parameters: {
                body: IssueCashReceiptBody;
            };
            success: IssueCashReceiptResponse;
            error:
                | Schema.CashReceiptAlreadyIssuedError
                | Schema.ChannelNotFoundError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /identity-verifications/{identityVerificationId}: {
        get: {
            parameters: {
                path: {
                    identityVerificationId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: FailedIdentityVerification | ReadyIdentityVerification | VerifiedIdentityVerification;
            error:
                | Schema.ForbiddenError
                | Schema.IdentityVerificationNotFoundError
                | Schema.InvalidRequestError
                | Schema.UnauthorizedError;
        };
    };
    /identity-verifications/{identityVerificationId}/confirm: {
        post: {
            parameters: {
                path: {
                    identityVerificationId: string;
                };
                body: ConfirmIdentityVerificationBody;
            };
            success: ConfirmIdentityVerificationResponse;
            error:
                | Schema.ForbiddenError
                | Schema.IdentityVerificationAlreadyVerifiedError
                | Schema.IdentityVerificationNotFoundError
                | Schema.IdentityVerificationNotSentError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /identity-verifications/{identityVerificationId}/resend: {
        post: {
            parameters: {
                path: {
                    identityVerificationId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: void;
            error:
                | Schema.ForbiddenError
                | Schema.IdentityVerificationAlreadyVerifiedError
                | Schema.IdentityVerificationNotFoundError
                | Schema.IdentityVerificationNotSentError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /identity-verifications/{identityVerificationId}/send: {
        post: {
            parameters: {
                path: {
                    identityVerificationId: string;
                };
                body: SendIdentityVerificationBody;
            };
            success: void;
            error:
                | Schema.ChannelNotFoundError
                | Schema.ForbiddenError
                | Schema.IdentityVerificationAlreadySentError
                | Schema.IdentityVerificationAlreadyVerifiedError
                | Schema.IdentityVerificationNotFoundError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /kakaopay/payment/order: {
        get: {
            parameters: {
                query: {
                    pgTxId: string;
                    channelKey: string;
                };
            };
            success: GetKakaopayPaymentOrderResponse;
            error: Schema.InvalidRequestError | Schema.UnauthorizedError;
        };
    };
    /payment-schedules: {
        get: {
            parameters: {
                body: GetPaymentSchedulesBody;
            };
            success: GetPaymentSchedulesResponse;
            error: Schema.ForbiddenError | Schema.InvalidRequestError | Schema.UnauthorizedError;
        };
        delete: {
            parameters: {
                body: RevokePaymentSchedulesBody;
            };
            success: RevokePaymentSchedulesResponse;
            error:
                | Schema.BillingKeyAlreadyDeletedError
                | Schema.BillingKeyNotFoundError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentScheduleAlreadyProcessedError
                | Schema.PaymentScheduleAlreadyRevokedError
                | Schema.PaymentScheduleNotFoundError
                | Schema.UnauthorizedError;
        };
    };
    /payment-schedules/{paymentScheduleId}: {
        get: {
            parameters: {
                path: {
                    paymentScheduleId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success:
                | FailedPaymentSchedule
                | PendingPaymentSchedule
                | RevokedPaymentSchedule
                | ScheduledPaymentSchedule
                | StartedPaymentSchedule
                | SucceededPaymentSchedule;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentScheduleNotFoundError
                | Schema.UnauthorizedError;
        };
    };
    /payments: {
        get: {
            parameters: {
                body: GetPaymentsBody;
            };
            success: GetPaymentsResponse;
            error: Schema.ForbiddenError | Schema.InvalidRequestError | Schema.UnauthorizedError;
        };
    };
    /payments-by-cursor: {
        get: {
            parameters: {
                body: GetAllPaymentsByCursorBody;
            };
            success: GetAllPaymentsByCursorResponse;
            error: Schema.ForbiddenError | Schema.InvalidRequestError | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}: {
        get: {
            parameters: {
                path: {
                    paymentId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success:
                | CancelledPayment
                | FailedPayment
                | PaidPayment
                | PartialCancelledPayment
                | PayPendingPayment
                | ReadyPayment
                | VirtualAccountIssuedPayment;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/billing-key: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: BillingKeyPaymentInput;
            };
            success: PayWithBillingKeyResponse;
            error:
                | Schema.AlreadyPaidError
                | Schema.BillingKeyAlreadyDeletedError
                | Schema.BillingKeyNotFoundError
                | Schema.ChannelNotFoundError
                | Schema.DiscountAmountExceedsTotalAmountError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.PromotionPayMethodDoesNotMatchError
                | Schema.SumOfPartsExceedsTotalAmountError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/cancel: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: CancelPaymentBody;
            };
            success: CancelPaymentResponse;
            error:
                | Schema.CancellableAmountConsistencyBrokenError
                | Schema.CancelAmountExceedsCancellableAmountError
                | Schema.CancelTaxAmountExceedsCancellableTaxAmountError
                | Schema.CancelTaxFreeAmountExceedsCancellableTaxFreeAmountError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentAlreadyCancelledError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotPaidError
                | Schema.PgProviderError
                | Schema.RemainedAmountLessThanPromotionMinPaymentAmountError
                | Schema.SumOfPartsExceedsCancelAmountError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/cash-receipt: {
        get: {
            parameters: {
                path: {
                    paymentId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: CancelledCashReceipt | IssuedCashReceipt | IssueFailedCashReceipt;
            error:
                | Schema.CashReceiptNotFoundError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/cash-receipt/cancel: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: CancelCashReceiptResponse;
            error:
                | Schema.CashReceiptNotFoundError
                | Schema.CashReceiptNotIssuedError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/escrow/complete: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: ConfirmEscrowBody;
            };
            success: ConfirmEscrowResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotPaidError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/escrow/logistics: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: RegisterEscrowLogisticsBody;
            };
            success: ApplyEscrowLogisticsResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotPaidError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
        patch: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: ModifyEscrowLogisticsBody;
            };
            success: ModifyEscrowLogisticsResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotPaidError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/instant: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: InstantPaymentInput;
            };
            success: PayInstantlyResponse;
            error:
                | Schema.AlreadyPaidError
                | Schema.ChannelNotFoundError
                | Schema.DiscountAmountExceedsTotalAmountError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PgProviderError
                | Schema.PromotionPayMethodDoesNotMatchError
                | Schema.SumOfPartsExceedsTotalAmountError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/pre-register: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: PreRegisterPaymentBody;
            };
            success: void;
            error:
                | Schema.AlreadyPaidError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/register-store-receipt: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: RegisterStoreReceiptBody;
            };
            success: RegisterStoreReceiptResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotPaidError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/resend-webhook: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: ResendWebhookBody;
            };
            success: ResendWebhookResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.UnauthorizedError
                | Schema.WebhookNotFoundError;
        };
    };
    /payments/{paymentId}/schedule: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                body: CreatePaymentScheduleBody;
            };
            success: CreatePaymentScheduleResponse;
            error:
                | Schema.AlreadyPaidOrWaitingError
                | Schema.BillingKeyAlreadyDeletedError
                | Schema.BillingKeyNotFoundError
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentScheduleAlreadyExistsError
                | Schema.SumOfPartsExceedsTotalAmountError
                | Schema.UnauthorizedError;
        };
    };
    /payments/{paymentId}/virtual-account/close: {
        post: {
            parameters: {
                path: {
                    paymentId: string;
                };
                query: {
                    storeId?: string;
                };
            };
            success: CloseVirtualAccountResponse;
            error:
                | Schema.ForbiddenError
                | Schema.InvalidRequestError
                | Schema.PaymentNotFoundError
                | Schema.PaymentNotWaitingForDepositError
                | Schema.PgProviderError
                | Schema.UnauthorizedError;
        };
    };
}

타입 선언