diff --git a/client/client/types.gen.ts b/client/client/types.gen.ts index cb6d0d5..a3f8616 100644 --- a/client/client/types.gen.ts +++ b/client/client/types.gen.ts @@ -66,6 +66,7 @@ export interface RequestOptions< }>, Pick< ServerSentEventsOptions, + | 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' diff --git a/client/index.ts b/client/index.ts index 46499f9..d9a204a 100644 --- a/client/index.ts +++ b/client/index.ts @@ -1,4 +1,4 @@ // This file is auto-generated by @hey-api/openapi-ts export { attachPaymentMethod, cancelPaymentFlow, cancelSetupFlow, capturePaymentFlow, confirmPaymentFlow, createBalanceUrl, createCheckoutSession, createCustomer, createPaymentFlow, createPaymentMethod, createPaymentRefund, createPrice, createProduct, createSetupFlow, createStatementUrl, createTaxRate, deleteCustomer, deleteProduct, detachPaymentMethod, getAllBalances, getAllCheckoutSessionLineItems, getAllCheckoutSessions, getAllCustomers, getAllEvents, getAllPaymentDisputes, getAllPaymentFlows, getAllPaymentMethodConfigurations, getAllPaymentMethods, getAllPaymentRefunds, getAllPaymentTransactions, getAllPrices, getAllProducts, getAllSetupFlows, getAllStatements, getAllTaxRates, getAllTerms, getBalance, getCheckoutSession, getCustomer, getCustomerPaymentMethods, getEvent, getPaymentDispute, getPaymentFlow, getPaymentFlowRefunds, getPaymentMethod, getPaymentMethodByCard, getPaymentMethodConfiguration, getPaymentRefund, getPaymentTransaction, getPrice, getProduct, getSetupFlow, getStatement, getTaxRate, getTerm, type Options, updateCheckoutSession, updateCustomer, updatePaymentFlow, updatePaymentMethod, updatePaymentMethodConfiguration, updatePaymentRefund, updatePrice, updateProduct, updateSetupFlow, updateTaxRate } from './sdk.gen'; -export type { AttachPaymentMethodData, AttachPaymentMethodError, AttachPaymentMethodErrors, AttachPaymentMethodResponse, AttachPaymentMethodResponses, BalanceListResponse, BalanceResponse, BalanceState, BalanceUrlResponse, BankInfoResponse, CancelPaymentFlowData, CancelPaymentFlowError, CancelPaymentFlowErrors, CancelPaymentFlowResponse, CancelPaymentFlowResponses, CancelSetupFlowData, CancelSetupFlowError, CancelSetupFlowErrors, CancelSetupFlowResponse, CancelSetupFlowResponses, CaptureMethod, CapturePaymentFlowData, CapturePaymentFlowError, CapturePaymentFlowErrors, CapturePaymentFlowResponse, CapturePaymentFlowResponses, CardConfigRequest, CheckoutSessionCreateRequest, CheckoutSessionCustomerDetailsAddressResponse, CheckoutSessionCustomerDetailsResponse, CheckoutSessionDetailsResponse, CheckoutSessionLineItemDataResponse, CheckoutSessionLineItemListResponse, CheckoutSessionListResponse, CheckoutSessionMode, CheckoutSessionPaymentMethodOptionsCardRequest, CheckoutSessionPaymentMethodOptionsRequest, CheckoutSessionStatus, CheckoutSessionSubmitType, CheckoutSessionUiMode, CheckoutSessionUpdateRequest, ClientOptions, ConfirmPaymentFlowData, ConfirmPaymentFlowError, ConfirmPaymentFlowErrors, ConfirmPaymentFlowResponse, ConfirmPaymentFlowResponses, Country, CreateBalanceUrlData, CreateBalanceUrlError, CreateBalanceUrlErrors, CreateBalanceUrlResponse, CreateBalanceUrlResponses, CreateCheckoutSessionData, CreateCheckoutSessionError, CreateCheckoutSessionErrors, CreateCheckoutSessionResponse, CreateCheckoutSessionResponses, CreateCustomerData, CreateCustomerError, CreateCustomerErrors, CreateCustomerResponse, CreateCustomerResponses, CreatePaymentFlowData, CreatePaymentFlowError, CreatePaymentFlowErrors, CreatePaymentFlowResponse, CreatePaymentFlowResponses, CreatePaymentMethodData, CreatePaymentMethodError, CreatePaymentMethodErrors, CreatePaymentMethodResponse, CreatePaymentMethodResponses, CreatePaymentRefundData, CreatePaymentRefundError, CreatePaymentRefundErrors, CreatePaymentRefundResponse, CreatePaymentRefundResponses, CreatePriceData, CreatePriceError, CreatePriceErrors, CreatePriceResponse, CreatePriceResponses, CreateProductData, CreateProductError, CreateProductErrors, CreateProductResponse, CreateProductResponses, CreateSetupFlowData, CreateSetupFlowError, CreateSetupFlowErrors, CreateSetupFlowResponse, CreateSetupFlowResponses, CreateStatementUrlData, CreateStatementUrlError, CreateStatementUrlErrors, CreateStatementUrlResponse, CreateStatementUrlResponses, CreateTaxRateData, CreateTaxRateError, CreateTaxRateErrors, CreateTaxRateResponse, CreateTaxRateResponses, Currency, CustomerCreateRequest, CustomerCreation, CustomerListResponse, CustomerResponse, CustomerUpdateRequest, DeleteCustomerData, DeleteCustomerError, DeleteCustomerErrors, DeleteCustomerResponse, DeleteCustomerResponses, DeleteProductData, DeleteProductError, DeleteProductErrors, DeleteProductResponse, DeleteProductResponses, DetachPaymentMethodData, DetachPaymentMethodError, DetachPaymentMethodErrors, DetachPaymentMethodResponse, DetachPaymentMethodResponses, DisplayPreferenceRequest, ErrorResponse, EventListResponse, EventResponse, GetAllBalancesData, GetAllBalancesError, GetAllBalancesErrors, GetAllBalancesResponse, GetAllBalancesResponses, GetAllCheckoutSessionLineItemsData, GetAllCheckoutSessionLineItemsError, GetAllCheckoutSessionLineItemsErrors, GetAllCheckoutSessionLineItemsResponse, GetAllCheckoutSessionLineItemsResponses, GetAllCheckoutSessionsData, GetAllCheckoutSessionsError, GetAllCheckoutSessionsErrors, GetAllCheckoutSessionsResponse, GetAllCheckoutSessionsResponses, GetAllCustomersData, GetAllCustomersError, GetAllCustomersErrors, GetAllCustomersResponse, GetAllCustomersResponses, GetAllEventsData, GetAllEventsError, GetAllEventsErrors, GetAllEventsResponse, GetAllEventsResponses, GetAllPaymentDisputesData, GetAllPaymentDisputesError, GetAllPaymentDisputesErrors, GetAllPaymentDisputesResponse, GetAllPaymentDisputesResponses, GetAllPaymentFlowsData, GetAllPaymentFlowsError, GetAllPaymentFlowsErrors, GetAllPaymentFlowsResponse, GetAllPaymentFlowsResponses, GetAllPaymentMethodConfigurationsData, GetAllPaymentMethodConfigurationsError, GetAllPaymentMethodConfigurationsErrors, GetAllPaymentMethodConfigurationsResponse, GetAllPaymentMethodConfigurationsResponses, GetAllPaymentMethodsData, GetAllPaymentMethodsError, GetAllPaymentMethodsErrors, GetAllPaymentMethodsResponse, GetAllPaymentMethodsResponses, GetAllPaymentRefundsData, GetAllPaymentRefundsError, GetAllPaymentRefundsErrors, GetAllPaymentRefundsResponse, GetAllPaymentRefundsResponses, GetAllPaymentTransactionsData, GetAllPaymentTransactionsError, GetAllPaymentTransactionsErrors, GetAllPaymentTransactionsResponse, GetAllPaymentTransactionsResponses, GetAllPricesData, GetAllPricesError, GetAllPricesErrors, GetAllPricesResponse, GetAllPricesResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAllSetupFlowsData, GetAllSetupFlowsError, GetAllSetupFlowsErrors, GetAllSetupFlowsResponse, GetAllSetupFlowsResponses, GetAllStatementsData, GetAllStatementsError, GetAllStatementsErrors, GetAllStatementsResponse, GetAllStatementsResponses, GetAllTaxRatesData, GetAllTaxRatesError, GetAllTaxRatesErrors, GetAllTaxRatesResponse, GetAllTaxRatesResponses, GetAllTermsData, GetAllTermsError, GetAllTermsErrors, GetAllTermsResponse, GetAllTermsResponses, GetBalanceData, GetBalanceError, GetBalanceErrors, GetBalanceResponse, GetBalanceResponses, GetCheckoutSessionData, GetCheckoutSessionError, GetCheckoutSessionErrors, GetCheckoutSessionResponse, GetCheckoutSessionResponses, GetCustomerData, GetCustomerError, GetCustomerErrors, GetCustomerPaymentMethodsData, GetCustomerPaymentMethodsError, GetCustomerPaymentMethodsErrors, GetCustomerPaymentMethodsResponse, GetCustomerPaymentMethodsResponses, GetCustomerResponse, GetCustomerResponses, GetEventData, GetEventError, GetEventErrors, GetEventResponse, GetEventResponses, GetPaymentDisputeData, GetPaymentDisputeError, GetPaymentDisputeErrors, GetPaymentDisputeResponse, GetPaymentDisputeResponses, GetPaymentFlowData, GetPaymentFlowError, GetPaymentFlowErrors, GetPaymentFlowRefundsData, GetPaymentFlowRefundsError, GetPaymentFlowRefundsErrors, GetPaymentFlowRefundsResponse, GetPaymentFlowRefundsResponses, GetPaymentFlowResponse, GetPaymentFlowResponses, GetPaymentMethodByCardData, GetPaymentMethodByCardError, GetPaymentMethodByCardErrors, GetPaymentMethodByCardResponse, GetPaymentMethodByCardResponses, GetPaymentMethodConfigurationData, GetPaymentMethodConfigurationError, GetPaymentMethodConfigurationErrors, GetPaymentMethodConfigurationResponse, GetPaymentMethodConfigurationResponses, GetPaymentMethodData, GetPaymentMethodError, GetPaymentMethodErrors, GetPaymentMethodResponse, GetPaymentMethodResponses, GetPaymentRefundData, GetPaymentRefundError, GetPaymentRefundErrors, GetPaymentRefundResponse, GetPaymentRefundResponses, GetPaymentTransactionData, GetPaymentTransactionError, GetPaymentTransactionErrors, GetPaymentTransactionResponse, GetPaymentTransactionResponses, GetPriceData, GetPriceError, GetPriceErrors, GetPriceResponse, GetPriceResponses, GetProductData, GetProductError, GetProductErrors, GetProductResponse, GetProductResponses, GetSetupFlowData, GetSetupFlowError, GetSetupFlowErrors, GetSetupFlowResponse, GetSetupFlowResponses, GetStatementData, GetStatementError, GetStatementErrors, GetStatementResponse, GetStatementResponses, GetTaxRateData, GetTaxRateError, GetTaxRateErrors, GetTaxRateResponse, GetTaxRateResponses, GetTermData, GetTermError, GetTermErrors, GetTermResponse, GetTermResponses, LineItemRequest, Locale, PaymentDisputeListResponse, PaymentDisputeReason, PaymentDisputeResponse, PaymentDisputeStatus, PaymentFlowCancellationReason, PaymentFlowCancelRequest, PaymentFlowCaptureRequest, PaymentFlowConfirmRequest, PaymentFlowCreateRequest, PaymentFlowDataRequest, PaymentFlowListResponse, PaymentFlowPaymentMethodOptionsCardRequest, PaymentFlowPaymentMethodOptionsRequest, PaymentFlowResponse, PaymentFlowStatus, PaymentFlowUpdateRequest, PaymentMethodApplePayCreateRequest, PaymentMethodApplePayUpdateRequest, PaymentMethodAttachRequest, PaymentMethodBillingAddressRequest, PaymentMethodBillingAddressResponse, PaymentMethodBillingDetailsRequest, PaymentMethodBillingDetailsResponse, PaymentMethodCardBillingDetailsRequest, PaymentMethodCardCreateRequest, PaymentMethodCardDetailsResponse, PaymentMethodCardResponse, PaymentMethodCardUpdateRequest, PaymentMethodConfigurationDetailsResponse, PaymentMethodConfigurationDisplayPreference, PaymentMethodConfigurationListResponse, PaymentMethodConfigurationSettingResponse, PaymentMethodConfigurationUpdateRequest, PaymentMethodCreateCardDetailsRequest, PaymentMethodCreateRequest, PaymentMethodListResponse, PaymentMethodPayPayCreateRequest, PaymentMethodPayPayResponse, PaymentMethodPayPayUpdateRequest, PaymentMethodResponse, PaymentMethodTypes, PaymentMethodUpdateRequest, PaymentRefundCreateRequest, PaymentRefundListResponse, PaymentRefundReason, PaymentRefundResponse, PaymentRefundStatus, PaymentRefundUpdateRequest, PaymentTransactionListResponse, PaymentTransactionResponse, PaymentTransactionType, PayPayConfigRequest, PriceCreateRequest, PriceDetailsResponse, PriceListResponse, PriceType, PriceUpdateRequest, ProductCreateRequest, ProductDeletedResponse, ProductDetailsResponse, ProductListResponse, ProductUpdateRequest, SetupFlowCancellationReason, SetupFlowCancelRequest, SetupFlowCreateRequest, SetupFlowDataRequest, SetupFlowListResponse, SetupFlowPaymentMethodOptionsCardRequest, SetupFlowPaymentMethodOptionsRequest, SetupFlowResponse, SetupFlowStatus, SetupFlowUpdateRequest, StatementItemResponse, StatementListResponse, StatementResponse, StatementSubject, StatementType, StatementUrlResponse, TaxRateCreateRequest, TaxRateDetailsResponse, TaxRateListResponse, TaxRateUpdateRequest, TermListResponse, TermResponse, UpdateCheckoutSessionData, UpdateCheckoutSessionError, UpdateCheckoutSessionErrors, UpdateCheckoutSessionResponse, UpdateCheckoutSessionResponses, UpdateCustomerData, UpdateCustomerError, UpdateCustomerErrors, UpdateCustomerResponse, UpdateCustomerResponses, UpdatePaymentFlowData, UpdatePaymentFlowError, UpdatePaymentFlowErrors, UpdatePaymentFlowResponse, UpdatePaymentFlowResponses, UpdatePaymentMethodConfigurationData, UpdatePaymentMethodConfigurationError, UpdatePaymentMethodConfigurationErrors, UpdatePaymentMethodConfigurationResponse, UpdatePaymentMethodConfigurationResponses, UpdatePaymentMethodData, UpdatePaymentMethodError, UpdatePaymentMethodErrors, UpdatePaymentMethodResponse, UpdatePaymentMethodResponses, UpdatePaymentRefundData, UpdatePaymentRefundError, UpdatePaymentRefundErrors, UpdatePaymentRefundResponse, UpdatePaymentRefundResponses, UpdatePriceData, UpdatePriceError, UpdatePriceErrors, UpdatePriceResponse, UpdatePriceResponses, UpdateProductData, UpdateProductError, UpdateProductErrors, UpdateProductResponse, UpdateProductResponses, UpdateSetupFlowData, UpdateSetupFlowError, UpdateSetupFlowErrors, UpdateSetupFlowResponse, UpdateSetupFlowResponses, UpdateTaxRateData, UpdateTaxRateError, UpdateTaxRateErrors, UpdateTaxRateResponse, UpdateTaxRateResponses, Usage } from './types.gen'; +export type { ApplePayConfigRequest, AttachPaymentMethodData, AttachPaymentMethodError, AttachPaymentMethodErrors, AttachPaymentMethodResponse, AttachPaymentMethodResponses, BalanceListResponse, BalanceResponse, BalanceState, BalanceUrlResponse, BankInfoResponse, CancelPaymentFlowData, CancelPaymentFlowError, CancelPaymentFlowErrors, CancelPaymentFlowResponse, CancelPaymentFlowResponses, CancelSetupFlowData, CancelSetupFlowError, CancelSetupFlowErrors, CancelSetupFlowResponse, CancelSetupFlowResponses, CaptureMethod, CapturePaymentFlowData, CapturePaymentFlowError, CapturePaymentFlowErrors, CapturePaymentFlowResponse, CapturePaymentFlowResponses, CardConfigRequest, CheckoutSessionCreateRequest, CheckoutSessionCustomerDetailsAddressResponse, CheckoutSessionCustomerDetailsResponse, CheckoutSessionDetailsResponse, CheckoutSessionLineItemDataResponse, CheckoutSessionLineItemListResponse, CheckoutSessionListResponse, CheckoutSessionMode, CheckoutSessionPaymentMethodOptionsCardRequest, CheckoutSessionPaymentMethodOptionsRequest, CheckoutSessionStatus, CheckoutSessionSubmitType, CheckoutSessionUiMode, CheckoutSessionUpdateRequest, ClientOptions, ConfirmPaymentFlowData, ConfirmPaymentFlowError, ConfirmPaymentFlowErrors, ConfirmPaymentFlowResponse, ConfirmPaymentFlowResponses, Country, CreateBalanceUrlData, CreateBalanceUrlError, CreateBalanceUrlErrors, CreateBalanceUrlResponse, CreateBalanceUrlResponses, CreateCheckoutSessionData, CreateCheckoutSessionError, CreateCheckoutSessionErrors, CreateCheckoutSessionResponse, CreateCheckoutSessionResponses, CreateCustomerData, CreateCustomerError, CreateCustomerErrors, CreateCustomerResponse, CreateCustomerResponses, CreatePaymentFlowData, CreatePaymentFlowError, CreatePaymentFlowErrors, CreatePaymentFlowResponse, CreatePaymentFlowResponses, CreatePaymentMethodData, CreatePaymentMethodError, CreatePaymentMethodErrors, CreatePaymentMethodResponse, CreatePaymentMethodResponses, CreatePaymentRefundData, CreatePaymentRefundError, CreatePaymentRefundErrors, CreatePaymentRefundResponse, CreatePaymentRefundResponses, CreatePriceData, CreatePriceError, CreatePriceErrors, CreatePriceResponse, CreatePriceResponses, CreateProductData, CreateProductError, CreateProductErrors, CreateProductResponse, CreateProductResponses, CreateSetupFlowData, CreateSetupFlowError, CreateSetupFlowErrors, CreateSetupFlowResponse, CreateSetupFlowResponses, CreateStatementUrlData, CreateStatementUrlError, CreateStatementUrlErrors, CreateStatementUrlResponse, CreateStatementUrlResponses, CreateTaxRateData, CreateTaxRateError, CreateTaxRateErrors, CreateTaxRateResponse, CreateTaxRateResponses, Currency, CustomerCreateRequest, CustomerCreation, CustomerListResponse, CustomerResponse, CustomerUpdateRequest, DeleteCustomerData, DeleteCustomerError, DeleteCustomerErrors, DeleteCustomerResponse, DeleteCustomerResponses, DeleteProductData, DeleteProductError, DeleteProductErrors, DeleteProductResponse, DeleteProductResponses, DetachPaymentMethodData, DetachPaymentMethodError, DetachPaymentMethodErrors, DetachPaymentMethodResponse, DetachPaymentMethodResponses, DisplayPreferenceRequest, ErrorResponse, EventListResponse, EventResponse, GetAllBalancesData, GetAllBalancesError, GetAllBalancesErrors, GetAllBalancesResponse, GetAllBalancesResponses, GetAllCheckoutSessionLineItemsData, GetAllCheckoutSessionLineItemsError, GetAllCheckoutSessionLineItemsErrors, GetAllCheckoutSessionLineItemsResponse, GetAllCheckoutSessionLineItemsResponses, GetAllCheckoutSessionsData, GetAllCheckoutSessionsError, GetAllCheckoutSessionsErrors, GetAllCheckoutSessionsResponse, GetAllCheckoutSessionsResponses, GetAllCustomersData, GetAllCustomersError, GetAllCustomersErrors, GetAllCustomersResponse, GetAllCustomersResponses, GetAllEventsData, GetAllEventsError, GetAllEventsErrors, GetAllEventsResponse, GetAllEventsResponses, GetAllPaymentDisputesData, GetAllPaymentDisputesError, GetAllPaymentDisputesErrors, GetAllPaymentDisputesResponse, GetAllPaymentDisputesResponses, GetAllPaymentFlowsData, GetAllPaymentFlowsError, GetAllPaymentFlowsErrors, GetAllPaymentFlowsResponse, GetAllPaymentFlowsResponses, GetAllPaymentMethodConfigurationsData, GetAllPaymentMethodConfigurationsError, GetAllPaymentMethodConfigurationsErrors, GetAllPaymentMethodConfigurationsResponse, GetAllPaymentMethodConfigurationsResponses, GetAllPaymentMethodsData, GetAllPaymentMethodsError, GetAllPaymentMethodsErrors, GetAllPaymentMethodsResponse, GetAllPaymentMethodsResponses, GetAllPaymentRefundsData, GetAllPaymentRefundsError, GetAllPaymentRefundsErrors, GetAllPaymentRefundsResponse, GetAllPaymentRefundsResponses, GetAllPaymentTransactionsData, GetAllPaymentTransactionsError, GetAllPaymentTransactionsErrors, GetAllPaymentTransactionsResponse, GetAllPaymentTransactionsResponses, GetAllPricesData, GetAllPricesError, GetAllPricesErrors, GetAllPricesResponse, GetAllPricesResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetAllSetupFlowsData, GetAllSetupFlowsError, GetAllSetupFlowsErrors, GetAllSetupFlowsResponse, GetAllSetupFlowsResponses, GetAllStatementsData, GetAllStatementsError, GetAllStatementsErrors, GetAllStatementsResponse, GetAllStatementsResponses, GetAllTaxRatesData, GetAllTaxRatesError, GetAllTaxRatesErrors, GetAllTaxRatesResponse, GetAllTaxRatesResponses, GetAllTermsData, GetAllTermsError, GetAllTermsErrors, GetAllTermsResponse, GetAllTermsResponses, GetBalanceData, GetBalanceError, GetBalanceErrors, GetBalanceResponse, GetBalanceResponses, GetCheckoutSessionData, GetCheckoutSessionError, GetCheckoutSessionErrors, GetCheckoutSessionResponse, GetCheckoutSessionResponses, GetCustomerData, GetCustomerError, GetCustomerErrors, GetCustomerPaymentMethodsData, GetCustomerPaymentMethodsError, GetCustomerPaymentMethodsErrors, GetCustomerPaymentMethodsResponse, GetCustomerPaymentMethodsResponses, GetCustomerResponse, GetCustomerResponses, GetEventData, GetEventError, GetEventErrors, GetEventResponse, GetEventResponses, GetPaymentDisputeData, GetPaymentDisputeError, GetPaymentDisputeErrors, GetPaymentDisputeResponse, GetPaymentDisputeResponses, GetPaymentFlowData, GetPaymentFlowError, GetPaymentFlowErrors, GetPaymentFlowRefundsData, GetPaymentFlowRefundsError, GetPaymentFlowRefundsErrors, GetPaymentFlowRefundsResponse, GetPaymentFlowRefundsResponses, GetPaymentFlowResponse, GetPaymentFlowResponses, GetPaymentMethodByCardData, GetPaymentMethodByCardError, GetPaymentMethodByCardErrors, GetPaymentMethodByCardResponse, GetPaymentMethodByCardResponses, GetPaymentMethodConfigurationData, GetPaymentMethodConfigurationError, GetPaymentMethodConfigurationErrors, GetPaymentMethodConfigurationResponse, GetPaymentMethodConfigurationResponses, GetPaymentMethodData, GetPaymentMethodError, GetPaymentMethodErrors, GetPaymentMethodResponse, GetPaymentMethodResponses, GetPaymentRefundData, GetPaymentRefundError, GetPaymentRefundErrors, GetPaymentRefundResponse, GetPaymentRefundResponses, GetPaymentTransactionData, GetPaymentTransactionError, GetPaymentTransactionErrors, GetPaymentTransactionResponse, GetPaymentTransactionResponses, GetPriceData, GetPriceError, GetPriceErrors, GetPriceResponse, GetPriceResponses, GetProductData, GetProductError, GetProductErrors, GetProductResponse, GetProductResponses, GetSetupFlowData, GetSetupFlowError, GetSetupFlowErrors, GetSetupFlowResponse, GetSetupFlowResponses, GetStatementData, GetStatementError, GetStatementErrors, GetStatementResponse, GetStatementResponses, GetTaxRateData, GetTaxRateError, GetTaxRateErrors, GetTaxRateResponse, GetTaxRateResponses, GetTermData, GetTermError, GetTermErrors, GetTermResponse, GetTermResponses, LineItemRequest, Locale, PaymentDisputeListResponse, PaymentDisputeReason, PaymentDisputeResponse, PaymentDisputeStatus, PaymentFlowCancellationReason, PaymentFlowCancelRequest, PaymentFlowCaptureRequest, PaymentFlowConfirmRequest, PaymentFlowCreateRequest, PaymentFlowDataRequest, PaymentFlowListResponse, PaymentFlowPaymentMethodOptionsCardRequest, PaymentFlowPaymentMethodOptionsRequest, PaymentFlowResponse, PaymentFlowStatus, PaymentFlowUpdateRequest, PaymentMethodApplePayCreateRequest, PaymentMethodApplePayUpdateRequest, PaymentMethodAttachRequest, PaymentMethodBillingAddressRequest, PaymentMethodBillingAddressResponse, PaymentMethodBillingDetailsRequest, PaymentMethodBillingDetailsResponse, PaymentMethodCardBillingDetailsRequest, PaymentMethodCardCreateRequest, PaymentMethodCardDetailsResponse, PaymentMethodCardResponse, PaymentMethodCardUpdateRequest, PaymentMethodConfigurationDetailsResponse, PaymentMethodConfigurationDisplayPreference, PaymentMethodConfigurationListResponse, PaymentMethodConfigurationSettingResponse, PaymentMethodConfigurationUpdateRequest, PaymentMethodCreateCardDetailsRequest, PaymentMethodCreateRequest, PaymentMethodListResponse, PaymentMethodPayPayCreateRequest, PaymentMethodPayPayResponse, PaymentMethodPayPayUpdateRequest, PaymentMethodResponse, PaymentMethodTypes, PaymentMethodUpdateRequest, PaymentRefundCreateRequest, PaymentRefundListResponse, PaymentRefundReason, PaymentRefundResponse, PaymentRefundStatus, PaymentRefundUpdateRequest, PaymentTransactionListResponse, PaymentTransactionResponse, PaymentTransactionType, PayPayConfigRequest, PriceCreateRequest, PriceDetailsResponse, PriceListResponse, PriceType, PriceUpdateRequest, ProductCreateRequest, ProductDeletedResponse, ProductDetailsResponse, ProductListResponse, ProductUpdateRequest, SetupFlowCancellationReason, SetupFlowCancelRequest, SetupFlowCreateRequest, SetupFlowDataRequest, SetupFlowListResponse, SetupFlowPaymentMethodOptionsCardRequest, SetupFlowPaymentMethodOptionsRequest, SetupFlowResponse, SetupFlowStatus, SetupFlowUpdateRequest, StatementItemResponse, StatementListResponse, StatementResponse, StatementSubject, StatementType, StatementUrlResponse, TaxRateCreateRequest, TaxRateDetailsResponse, TaxRateListResponse, TaxRateUpdateRequest, TermListResponse, TermResponse, UpdateCheckoutSessionData, UpdateCheckoutSessionError, UpdateCheckoutSessionErrors, UpdateCheckoutSessionResponse, UpdateCheckoutSessionResponses, UpdateCustomerData, UpdateCustomerError, UpdateCustomerErrors, UpdateCustomerResponse, UpdateCustomerResponses, UpdatePaymentFlowData, UpdatePaymentFlowError, UpdatePaymentFlowErrors, UpdatePaymentFlowResponse, UpdatePaymentFlowResponses, UpdatePaymentMethodConfigurationData, UpdatePaymentMethodConfigurationError, UpdatePaymentMethodConfigurationErrors, UpdatePaymentMethodConfigurationResponse, UpdatePaymentMethodConfigurationResponses, UpdatePaymentMethodData, UpdatePaymentMethodError, UpdatePaymentMethodErrors, UpdatePaymentMethodResponse, UpdatePaymentMethodResponses, UpdatePaymentRefundData, UpdatePaymentRefundError, UpdatePaymentRefundErrors, UpdatePaymentRefundResponse, UpdatePaymentRefundResponses, UpdatePriceData, UpdatePriceError, UpdatePriceErrors, UpdatePriceResponse, UpdatePriceResponses, UpdateProductData, UpdateProductError, UpdateProductErrors, UpdateProductResponse, UpdateProductResponses, UpdateSetupFlowData, UpdateSetupFlowError, UpdateSetupFlowErrors, UpdateSetupFlowResponse, UpdateSetupFlowResponses, UpdateTaxRateData, UpdateTaxRateError, UpdateTaxRateErrors, UpdateTaxRateResponse, UpdateTaxRateResponses, Usage } from './types.gen'; diff --git a/client/types.gen.ts b/client/types.gen.ts index 96802b7..ea95700 100644 --- a/client/types.gen.ts +++ b/client/types.gen.ts @@ -4,6 +4,16 @@ export type ClientOptions = { baseUrl: `${string}://${string}` | (string & {}); }; +/** + * ApplePayConfigRequest + */ +export type ApplePayConfigRequest = { + /** + * 支払い方法の表示設定 + */ + display_preference?: DisplayPreferenceRequest | null; +}; + /** * BalanceListResponse */ @@ -1246,7 +1256,7 @@ export type PaymentFlowCancelRequest = { * | **duplicate**: 重複した支払いである場合。 | * | **fraudulent**: 不正な利用だと考えられる場合。 | * | **requested_by_customer**: 顧客がキャンセルを要求した場合。 | - * | **abondoned**: 顧客が支払いを完了しなかった場合。 | + * | **abandoned**: 顧客が支払いを完了しなかった場合。 | * */ cancellation_reason?: 'duplicate' | 'fraudulent' | 'requested_by_customer' | 'abandoned'; @@ -1290,14 +1300,14 @@ export type PaymentFlowConfirmRequest = { */ payment_method_types?: Array; /** - * 支払いの確定方法を指定します。 + * 支払いの確定方法を指定します。未指定の場合は PaymentFlow 作成時に設定された値を使用します。 * * | 値 | * |:---| - * | **automatic**: (デフォルト) 顧客が支払いを承認すると、自動的に確定させます。 | + * | **automatic**: 顧客が支払いを承認すると、自動的に確定させます。 | * | **manual**: 顧客が支払いを承認すると一旦確定を保留し、後で Payment Flow の Capture API を使用して確定します。(すべての支払い方法がこれをサポートしているわけではありません)。 | */ - capture_method?: CaptureMethod; + capture_method?: CaptureMethod | null; /** * Return Url * @@ -1307,7 +1317,7 @@ export type PaymentFlowConfirmRequest = { /** * Description * - * オブジェクトにセットする任意の文字列。ユーザーには表示されません。 + * オブジェクトにセットする任意の文字列。 */ description?: string; }; @@ -1372,7 +1382,7 @@ export type PaymentFlowCreateRequest = { /** * Description * - * オブジェクトにセットする任意の文字列。ユーザーには表示されません。 + * オブジェクトにセットする任意の文字列。 */ description?: string; /** @@ -1398,6 +1408,12 @@ export type PaymentFlowDataRequest = { * | **manual**: 顧客が支払いを承認すると一旦確定を保留し、後で Payment Flow の Capture API を使用して確定します。(すべての支払い方法がこれをサポートしているわけではありません)。 | */ capture_method?: CaptureMethod; + /** + * Description + * + * オブジェクトにセットする任意の文字列。 + */ + description?: string | null; /** * Metadata * @@ -1531,7 +1547,7 @@ export type PaymentFlowResponse = { /** * Description * - * オブジェクトにセットする任意の文字列。ユーザーには表示されません。 + * オブジェクトにセットされた任意の文字列。 */ description: string | null; /** @@ -1688,7 +1704,7 @@ export type PaymentFlowUpdateRequest = { /** * Description * - * オブジェクトにセットする任意の文字列。ユーザーには表示されません。 + * オブジェクトにセットする任意の文字列。 */ description?: string; /** @@ -2149,6 +2165,10 @@ export type PaymentMethodConfigurationDetailsResponse = { * カードの設定 */ card: PaymentMethodConfigurationSettingResponse; + /** + * Apple Pay の設定 + */ + apple_pay: PaymentMethodConfigurationSettingResponse; }; /** @@ -2240,6 +2260,7 @@ export type PaymentMethodConfigurationUpdateRequest = { name?: string | null; card?: CardConfigRequest | null; paypay?: PayPayConfigRequest | null; + apple_pay?: ApplePayConfigRequest | null; }; /** @@ -3163,7 +3184,7 @@ export type SetupFlowCreateRequest = { /** * Description * - * 説明。顧客に表示されます。 + * 説明。 */ description?: string; /** @@ -3180,6 +3201,12 @@ export type SetupFlowCreateRequest = { * SetupFlowDataRequest */ export type SetupFlowDataRequest = { + /** + * Description + * + * 説明。 + */ + description?: string | null; /** * Metadata * @@ -3278,7 +3305,7 @@ export type SetupFlowResponse = { /** * Description * - * 説明。顧客に表示されます。 + * 説明。 */ description: string | null; /** @@ -3396,7 +3423,7 @@ export type SetupFlowUpdateRequest = { /** * Description * - * 説明。顧客に表示されます。 + * 説明。 */ description?: string; /** @@ -4066,6 +4093,10 @@ export type DetachPaymentMethodData = { }; export type DetachPaymentMethodErrors = { + /** + * Payment Method Unattached
Payment Method Already Detached + */ + 400: ErrorResponse; /** * Not Found */ @@ -4100,6 +4131,10 @@ export type GetPaymentMethodConfigurationData = { }; export type GetPaymentMethodConfigurationErrors = { + /** + * Not Found + */ + 404: ErrorResponse; /** * Validation Error */ @@ -4130,6 +4165,10 @@ export type UpdatePaymentMethodConfigurationData = { }; export type UpdatePaymentMethodConfigurationErrors = { + /** + * Not Found + */ + 404: ErrorResponse; /** * Validation Error */ @@ -4478,6 +4517,10 @@ export type GetPriceData = { }; export type GetPriceErrors = { + /** + * Not Found + */ + 404: ErrorResponse; /** * Validation Error */ @@ -4671,6 +4714,10 @@ export type CreatePaymentFlowErrors = { * Detached Payment Method Not Usable
Payment Method Not Owned By Customer
Payment Method Type Not Allowed */ 400: ErrorResponse; + /** + * Payment Failed + */ + 402: ErrorResponse; /** * Not Found */ @@ -4753,6 +4800,10 @@ export type CapturePaymentFlowErrors = { * Invalid Status */ 400: ErrorResponse; + /** + * Payment Failed + */ + 402: ErrorResponse; /** * Not Found */ @@ -4794,6 +4845,10 @@ export type ConfirmPaymentFlowErrors = { * Invalid Status
Missing Payment Method
Detached Payment Method Not Usable
Payment Method Not Owned By Customer
Customer Required For Payment Method
Payment Method Type Not Allowed */ 400: ErrorResponse; + /** + * Payment Failed + */ + 402: ErrorResponse; /** * Not Found */ @@ -5167,7 +5222,7 @@ export type UpdateSetupFlowData = { export type UpdateSetupFlowErrors = { /** - * Detached Payment Method Not Usable
Metadata Limit Exceeded + * Invalid Status
Detached Payment Method Not Usable
Metadata Limit Exceeded */ 400: ErrorResponse; /** @@ -5251,7 +5306,7 @@ export type CreateSetupFlowData = { export type CreateSetupFlowErrors = { /** - * Detached Payment Method Not Usable
Unsupported Payment Method Type + * Detached Payment Method Not Usable
Unsupported Payment Method Type
Invalid Request */ 400: ErrorResponse; /** @@ -5896,6 +5951,10 @@ export type GetTaxRateData = { }; export type GetTaxRateErrors = { + /** + * Not Found + */ + 404: ErrorResponse; /** * Validation Error */ @@ -6008,7 +6067,7 @@ export type CreateCustomerData = { export type CreateCustomerErrors = { /** - * Already Exists ID + * Already Exists ID
Unsupported Payment Method Type */ 400: ErrorResponse; /** diff --git a/package.json b/package.json index 8a1273c..d178ee0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@payjp/payjpv2", - "version": "1.0.5", + "version": "1.0.6", "type": "module", "main": "dist/index.cjs", "module": "dist/index.mjs", diff --git a/payjpv2.ts b/payjpv2.ts index 4933123..37c3f8d 100644 --- a/payjpv2.ts +++ b/payjpv2.ts @@ -5,7 +5,7 @@ import { type Client, } from "./client/client"; -const BINDINGS_VERSION = '1.0.5'; +const BINDINGS_VERSION = '1.0.6'; const DEFAULT_BASE_URL = "https://api.pay.jp"; export interface ClientConfig {