Skip to content

OfferCheckout

Public checkout command resolving one exact persisted offer revision.

const OfferCheckout: Schema.Struct<{
provider: Schema.brand<Schema.String, "ProviderKey">;
customer: Schema.Struct<{
externalId: Schema.brand<Schema.String, "ExternalCustomerId">;
email: Schema.brand<Schema.String, "EmailAddress">;
name: Schema.NonEmptyString;
}>;
successUrl: Schema.brand<Schema.String, "CheckoutUrl">;
cancelUrl: Schema.brand<Schema.String, "CheckoutUrl">;
clientIp: Schema.NullOr<Schema.brand<Schema.String, "ClientIp">>;
idempotencyKey: Schema.brand<Schema.String, "IdempotencyKey">;
beneficiary: Schema.optionalKey<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
type: Schema.Literal<"customer">;
}>, Schema.Struct<{
type: Schema.Literal<"merchant_subject">;
subjectId: Schema.brand<Schema.String, "MerchantSubjectId">;
}>]>>;
type: Schema.Literal<"offer">;
offerKey: Schema.brand<Schema.String, "OfferKey">;
offerRevision: Schema.brand<Schema.Int, "DefinitionRevision">;
quantity: Schema.NullOr<Schema.brand<Schema.Int, "SeatCapacityQuantity">>;
}>;