Skip to main content

Typy a enumy

Typy importujte pomocí import type { … } — při kompilaci zmizí a neovlivní runtime bundle.
Balíček exportuje typované modely a enumy pro bezpečnost při kompilaci.

Import typů

Import enumů

Konfigurace

  • CreateGoPayClientConfig
  • GoPayClientOptions
  • GoPayClientConfigInput
  • GoPayClientConfigNormalized

Platební požadavky

  • CreatePaymentRequest
  • CreateRecurrenceRequest
  • CaptureAuthorizationPartialRequest
  • RefundPaymentRequest

Platební odpovědi

  • PaymentResponse
  • PaymentOperationResponse
  • RefundHistoryItem
  • CardDetailsResponse

Výpisy

  • AccountStatementRequest
  • AccountStatementResponse

Platební metody

  • PaymentInstrumentsResponse
  • PaymentInstrumentsAllResponse
  • PaymentMethodGroups

Chyby

  • GoPayFieldError
  • GoPayErrorBody
  • GoPayErrorResponse
  • GoPayApiError (třída)
  • GoPayConfigError (třída)

Token a transport

  • TokenCache (rozhraní)
  • OAuthToken
  • OAuthTokenResponse
  • HttpTransport
  • HttpTransportRequest
  • HttpMethod
  • ContentType

Hlavní enumy a konstanty

  • Currency
  • Language
  • TokenScope
  • PaymentInstrument
  • PaymentMethodGroup
  • PaymentStatus
  • PaymentSubStatusValues
  • RefundState
  • RecurrenceCycle
  • RecurrenceState
  • PreauthorizationState
  • StatementFormat
  • BankSwiftCode
  • ErrorScope
  • ErrorCodeValues

Praktický vzor