@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
12 lines (11 loc) • 551 B
JavaScript
import { PaymentCard } from './payment-card.js';
import { PaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
export class PaymentMethodDetails {
constructor(paymentMethodDetails) {
this.type = paymentMethodDetails.type;
this.card = paymentMethodDetails.card ? new PaymentCard(paymentMethodDetails.card) : null;
this.underlyingDetails = paymentMethodDetails.underlying_details
? new PaymentMethodUnderlyingDetails(paymentMethodDetails.underlying_details)
: null;
}
}