createCartMandate(contentsParams: CreateCartContentsParams,mandateParams?: Omit<CreateCartMandateParams, "contents">,signingOptions?: { privateKey: string; algorithm?: "RS256" | "ES256"; merchantId?: string; audience?: string; },): Promise<CartMandateClass>
Creates a new CartMandate from cart contents with validation and optional JWT signing
contentsParams: CreateCartContentsParams
- Parameters for creating cart contents
optional
mandateParams: Omit<CreateCartMandateParams, "contents">
- Additional mandate parameters (like merchant_authorization)
Promise<CartMandateClass>
Promise resolving to a new CartMandateClass instance