@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) • 637 B
JavaScript
import { PaymentCardNotification } from './payment-card-notification.js';
import { PaymentMethodUnderlyingDetailsNotification } from './payment-method-underlying-details-notification.js';
export class PaymentMethodDetailsNotification {
constructor(paymentMethodDetails) {
this.type = paymentMethodDetails.type;
this.card = paymentMethodDetails.card ? new PaymentCardNotification(paymentMethodDetails.card) : null;
this.underlyingDetails = paymentMethodDetails.underlying_details
? new PaymentMethodUnderlyingDetailsNotification(paymentMethodDetails.underlying_details)
: null;
}
}