UNPKG

@kloutit/kloutit-sdk

Version:
51 lines (46 loc) 1.61 kB
### Sample Case model for Marketplace sector This is a sample UpdateCaseParams for Marketplace sector with all the parameters it admits. ```javascript import { UpdateCaseParams, CaseSectorEnum, Currencies, } from '@kloutit/kloutit-sdk'; const kloutitCase: UpdateCaseParams = { sector: CaseSectorEnum.MARKETPLACE, filialIdentifier: 'B12345678', // If you do not have filials in your organization, leave this field empty transactionDate: new Date().toISOString(), // UTC date bankName: 'Sample bank', cardBrand: 'Sample card brand', last4Digits: '1234', is3DSPurchase: true, purchaseDate: new Date().toISOString(), // UTC date purchaseAmount: { currency: Currencies.EUR, value: 10 }, isChargeRefundable: true, customerName: 'Node SDK sample', customerEmail: 'kloutit-node@example.com', customerPhone: '612345678', additionalInfo: 'Some optional additional info', communications: [ { sender: 'Sender name', content: 'Communication content', date: new Date().toISOString(), // UTC date }, ], product: 'Sample product', shippingCity: 'Barcelona', shippingProvince: 'Barcelona', shippingPostalCode: '08000', deliveryConfirmation: true, shippingDate: new Date().toISOString(), // UTC date deliveryDate: new Date().toISOString(), // UTC date deliveryCompany: 'Sample company', productDescription: 'Product description', sellerName: 'Seller name', sellerContactDate: new Date().toISOString(), // UTC date sellerAdditionalInfo: 'Seller additional info', sellerPhone: 'Seller phone', sellerEmail: 'seller@email.com', }; ```