CheckoutCreateError
Public failures from checkout creation.
Declaration
Section titled “Declaration”const CheckoutCreateError: Schema.toTaggedUnion<"code", readonly [Schema.Struct<{ code: Schema.Literal<"invalid_input">;}>, Schema.Struct<{ code: Schema.Literal<"price_not_found">; priceId: Schema.brand<Schema.String, "PriceId">;}>, Schema.Struct<{ code: Schema.Literal<"price_retired">; priceId: Schema.brand<Schema.String, "PriceId">;}>, Schema.Struct<{ code: Schema.Literal<"offer_not_found">; key: Schema.brand<Schema.String, "OfferKey">; revision: Schema.brand<Schema.Int, "DefinitionRevision">;}>, Schema.Struct<{ code: Schema.Literal<"subscription_not_found">; subscriptionId: Schema.brand<Schema.String, "SubscriptionId">;}>, Schema.Struct<{ code: Schema.Literal<"subscription_customer_mismatch">; subscriptionId: Schema.brand<Schema.String, "SubscriptionId">;}>, Schema.Struct<{ code: Schema.Literal<"invoice_not_found">; invoiceId: Schema.brand<Schema.String, "InvoiceId">;}>, Schema.Struct<{ code: Schema.Literal<"invoice_not_collectible">; invoiceId: Schema.brand<Schema.String, "InvoiceId">; reason: Schema.Literals<readonly ["payment_not_due", "checkout_already_exists"]>;}>, Schema.Struct<{ code: Schema.Literal<"invoice_customer_mismatch">; invoiceId: Schema.brand<Schema.String, "InvoiceId">;}>, Schema.Struct<{ code: Schema.Literal<"invalid_offer_selection">; key: Schema.brand<Schema.String, "OfferKey">; revision: Schema.brand<Schema.Int, "DefinitionRevision">; reason: Schema.Literals<readonly ["quantity_required", "quantity_not_allowed", "quantity_out_of_range", "total_out_of_range", "billing_not_checkoutable"]>;}>, Schema.Struct<{ code: Schema.Literal<"missing_offer_implementation">; kind: Schema.Literals<readonly ["download_asset", "fulfillment_binding", "meter", "merchant_access_policy"]>; key: Schema.String; revision: Schema.brand<Schema.Int, "DefinitionRevision">;}>, Schema.Struct<{ code: Schema.Literal<"catalog_invalid">;}>, Schema.Struct<{ code: Schema.Literal<"provider_unavailable">; provider: Schema.brand<Schema.String, "ProviderKey">;}>, Schema.Struct<{ code: Schema.Literal<"unsupported_provider">; provider: Schema.brand<Schema.String, "ProviderKey">; capability: Schema.String;}>, Schema.Struct<{ code: Schema.Literal<"provider_error">; message: Schema.String;}>, Schema.Struct<{ code: Schema.Literal<"idempotency_conflict">;}>, Schema.Struct<{ code: Schema.Literal<"outcome_unknown">; checkoutId: Schema.brand<Schema.String, "CheckoutId">; message: Schema.String;}>, Schema.Struct<{ code: Schema.Literal<"checkout_failed">; checkoutId: Schema.brand<Schema.String, "CheckoutId">; failure: Schema.Struct<{ reason: Schema.NonEmptyString; message: Schema.NonEmptyString; failedAt: Schema.brand<Schema.Int, "EpochMilliseconds">; details: Schema.NullOr<Schema.Struct<{ provider: Schema.NullOr<...>; httpStatus: Schema.NullOr<...>; reason: Schema.NullOr<...>; message: Schema.NullOr<...>; requestId: Schema.NullOr<...>; providerReference: Schema.NullOr<...>; }>>; }>;}>, Schema.Struct<{ code: Schema.Literal<"internal_error">;}>]>;