Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 1.59 KB

FASHION.md

File metadata and controls

46 lines (42 loc) · 1.59 KB

Sample body for Fashion sector

This is a sample UpdateCaseParams for Fashion sector with all the parameters it admits.

<?php

use Kloutit\Model\UpdateCaseParams;
use Kloutit\Model\CaseSector;
use Kloutit\Model\Currencies;

$kloutitCase = new UpdateCaseParams([
    'sector' => CaseSector::FASHION,
    'filialIdentifier' => 'B12345678', // If you do not have filials in your organization, leave this field empty
    'transactionDate' => (new DateTime())->format(DateTime::ATOM), // UTC date
    'bankName' => 'Sample bank',
    'cardBrand' => 'Sample card brand',
    'last4Digits' => '1234',
    'is3DSPurchase' => true,
    'purchaseDate' => (new DateTime())->format(DateTime::ATOM), // 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 DateTime())->format(DateTime::ATOM), // UTC date
        ]
    ],
    'product' => 'Sample product',
    'shippingCity' => 'Barcelona',
    'shippingProvince' => 'Barcelona',
    'shippingPostalCode' => '08000',
    'shippingDate' => (new DateTime())->format(DateTime::ATOM), // UTC date
    'deliveryConfirmation' => true,
    'deliveryDate' => (new DateTime())->format(DateTime::ATOM), // UTC date
    'deliveryCompany' => 'Sample company'
]);