@commercetools-test-data/payment
v10.11.1
Published
Data models for commercetools Payment representations
Downloads
5,832
Readme
@commercetools-test-data/payment
This package provides the data models for the commercetools platform Payment
representations
https://docs.commercetools.com/api/projects/payments#representations
Install
$ pnpm add -D @commercetools-test-data/payment
Usage
Payment
import type { TPayment, TPaymentDraft } from '@commercetools-test-data/payment';
import * as Payment from '@commercetools-test-data/payment';
const payment = Payment.random().build<TPayment>();
const paymentDraft = Payment.PaymentDraft.random().build<TPaymentDraft>();
PaymentMethodInfo
import {
PaymentMethodInfo,
type TPaymentMethodInfo,
} from '@commercetools-test-data/payment';
const paymentInfoMethod =
PaymentInfoMethod.random().build<TPaymentInfoMethod>();
PaymentStatus
import {
PaymentStatus,
type TPaymentStatus,
} from '@commercetools-test-data/payment';
const paymentStatus = PaymentStatus.random().build<TPaymentStatus>();
Transaction
import type {
TTransaction,
TTransactionDraft,
} from '@commercetools-test-data/transaction';
import * as Transaction from '@commercetools-test-data/transaction';
const transaction = Transaction.random().build<TTransaction>();
const transactionDraft =
Transaction.TransactionDraft.random().build<TTransactionDraft>();