Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.24 KB

LEISURE.md

File metadata and controls

42 lines (38 loc) · 1.24 KB

Sample body for Leisure sector

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

<?php

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

$kloutitCase = new UpdateCaseParams([
    'sector' => CaseSector::LEISURE,
    'filialIdentifier' => 'B12345678', // If you do not have filials in your organization, leave this field empty
    'transactionDate' => new DateTime(),
    'bankName' => 'Sample bank',
    'cardBrand' => 'Sample card brand',
    'last4Digits' => '1234',
    'is3DSPurchase' => true,
    'purchaseDate' => new DateTime(),
    '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(),
        ]
    ],
    'termsUrl' => 'www.terms.com',
    'service' => 'Sample service',
    'serviceDate' => new DateTime(),
    'serviceWasProvided' => true,
]);