/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema } from '../schema.js'; import { SubscriptionCardRequest, subscriptionCardRequestSchema, } from './subscriptionCardRequest.js'; /** The payment source definition. To be eligible to create subscription using debit or credit card, you will need to sign up here (https://www.paypal.com/bizsignup/entry/product/ppcp). Please note, its available only for non-3DS cards and for merchants in US and AU regions. */ export interface SubscriptionPaymentSource { /** The payment card to use to fund a payment. Can be a credit or debit card. */ card?: SubscriptionCardRequest; } export const subscriptionPaymentSourceSchema: Schema = lazy( () => object({ card: ['card', optional(subscriptionCardRequestSchema)] }) );