Skip to content

Commit 257655a

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#706)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * removed unittest using removed ClassicCheckoutSDK --------- Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]> Co-authored-by: Djoyke Reijans <[email protected]>
1 parent 58db956 commit 257655a

File tree

73 files changed

+4176
-11083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4176
-11083
lines changed

src/Adyen/Model/Checkout/Avs.php renamed to src/Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.php

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
/**
4-
* Adyen Checkout API
4+
* Configuration API
55
*
6-
* The version of the OpenAPI document: 71
6+
* The version of the OpenAPI document: 2
77
* Generated by: https://openapi-generator.tech
88
* OpenAPI Generator version: 6.0.1
99
*
@@ -13,21 +13,21 @@
1313
*/
1414

1515

16-
namespace Adyen\Model\Checkout;
16+
namespace Adyen\Model\BalancePlatform;
1717

1818
use \ArrayAccess;
19-
use Adyen\Model\Checkout\ObjectSerializer;
19+
use Adyen\Model\BalancePlatform\ObjectSerializer;
2020

2121
/**
22-
* Avs Class Doc Comment
22+
* AmountNonZeroDecimalsRequirement Class Doc Comment
2323
*
2424
* @category Class
2525
* @package Adyen
2626
* @author OpenAPI Generator team
2727
* @link https://openapi-generator.tech
2828
* @implements \ArrayAccess<string, mixed>
2929
*/
30-
class Avs implements ModelInterface, ArrayAccess, \JsonSerializable
30+
class AmountNonZeroDecimalsRequirement implements ModelInterface, ArrayAccess, \JsonSerializable
3131
{
3232
public const DISCRIMINATOR = null;
3333

@@ -36,16 +36,16 @@ class Avs implements ModelInterface, ArrayAccess, \JsonSerializable
3636
*
3737
* @var string
3838
*/
39-
protected static $openAPIModelName = 'Avs';
39+
protected static $openAPIModelName = 'AmountNonZeroDecimalsRequirement';
4040

4141
/**
4242
* Array of property to type mappings. Used for (de)serialization
4343
*
4444
* @var string[]
4545
*/
4646
protected static $openAPITypes = [
47-
'addressEditable' => 'bool',
48-
'enabled' => 'string'
47+
'description' => 'string',
48+
'type' => 'string'
4949
];
5050

5151
/**
@@ -56,8 +56,8 @@ class Avs implements ModelInterface, ArrayAccess, \JsonSerializable
5656
* @psalm-var array<string, string|null>
5757
*/
5858
protected static $openAPIFormats = [
59-
'addressEditable' => null,
60-
'enabled' => null
59+
'description' => null,
60+
'type' => null
6161
];
6262

6363
/**
@@ -66,8 +66,8 @@ class Avs implements ModelInterface, ArrayAccess, \JsonSerializable
6666
* @var boolean[]
6767
*/
6868
protected static $openAPINullables = [
69-
'addressEditable' => false,
70-
'enabled' => false
69+
'description' => false,
70+
'type' => false
7171
];
7272

7373
/**
@@ -156,8 +156,8 @@ public function isNullableSetToNull(string $property): bool
156156
* @var string[]
157157
*/
158158
protected static $attributeMap = [
159-
'addressEditable' => 'addressEditable',
160-
'enabled' => 'enabled'
159+
'description' => 'description',
160+
'type' => 'type'
161161
];
162162

163163
/**
@@ -166,8 +166,8 @@ public function isNullableSetToNull(string $property): bool
166166
* @var string[]
167167
*/
168168
protected static $setters = [
169-
'addressEditable' => 'setAddressEditable',
170-
'enabled' => 'setEnabled'
169+
'description' => 'setDescription',
170+
'type' => 'setType'
171171
];
172172

173173
/**
@@ -176,8 +176,8 @@ public function isNullableSetToNull(string $property): bool
176176
* @var string[]
177177
*/
178178
protected static $getters = [
179-
'addressEditable' => 'getAddressEditable',
180-
'enabled' => 'getEnabled'
179+
'description' => 'getDescription',
180+
'type' => 'getType'
181181
];
182182

183183
/**
@@ -221,21 +221,17 @@ public function getModelName()
221221
return self::$openAPIModelName;
222222
}
223223

224-
public const ENABLED_YES = 'yes';
225-
public const ENABLED_NO = 'no';
226-
public const ENABLED_AUTOMATIC = 'automatic';
224+
public const TYPE_AMOUNT_NON_ZERO_DECIMALS_REQUIREMENT = 'amountNonZeroDecimalsRequirement';
227225

228226
/**
229227
* Gets allowable values of the enum
230228
*
231229
* @return string[]
232230
*/
233-
public function getEnabledAllowableValues()
231+
public function getTypeAllowableValues()
234232
{
235233
return [
236-
self::ENABLED_YES,
237-
self::ENABLED_NO,
238-
self::ENABLED_AUTOMATIC,
234+
self::TYPE_AMOUNT_NON_ZERO_DECIMALS_REQUIREMENT,
239235
];
240236
}
241237
/**
@@ -253,8 +249,8 @@ public function getEnabledAllowableValues()
253249
*/
254250
public function __construct(array $data = null)
255251
{
256-
$this->setIfExists('addressEditable', $data ?? [], null);
257-
$this->setIfExists('enabled', $data ?? [], null);
252+
$this->setIfExists('description', $data ?? [], null);
253+
$this->setIfExists('type', $data ?? [], null);
258254
}
259255

260256
/**
@@ -284,11 +280,14 @@ public function listInvalidProperties()
284280
{
285281
$invalidProperties = [];
286282

287-
$allowedValues = $this->getEnabledAllowableValues();
288-
if (!is_null($this->container['enabled']) && !in_array($this->container['enabled'], $allowedValues, true)) {
283+
if ($this->container['type'] === null) {
284+
$invalidProperties[] = "'type' can't be null";
285+
}
286+
$allowedValues = $this->getTypeAllowableValues();
287+
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
289288
$invalidProperties[] = sprintf(
290-
"invalid value '%s' for 'enabled', must be one of '%s'",
291-
$this->container['enabled'],
289+
"invalid value '%s' for 'type', must be one of '%s'",
290+
$this->container['type'],
292291
implode("', '", $allowedValues)
293292
);
294293
}
@@ -309,59 +308,59 @@ public function valid()
309308

310309

311310
/**
312-
* Gets addressEditable
311+
* Gets description
313312
*
314-
* @return bool|null
313+
* @return string|null
315314
*/
316-
public function getAddressEditable()
315+
public function getDescription()
317316
{
318-
return $this->container['addressEditable'];
317+
return $this->container['description'];
319318
}
320319

321320
/**
322-
* Sets addressEditable
321+
* Sets description
323322
*
324-
* @param bool|null $addressEditable Indicates whether the shopper is allowed to modify the billing address for the current payment request.
323+
* @param string|null $description Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.
325324
*
326325
* @return self
327326
*/
328-
public function setAddressEditable($addressEditable)
327+
public function setDescription($description)
329328
{
330-
$this->container['addressEditable'] = $addressEditable;
329+
$this->container['description'] = $description;
331330

332331
return $this;
333332
}
334333

335334
/**
336-
* Gets enabled
335+
* Gets type
337336
*
338-
* @return string|null
337+
* @return string
339338
*/
340-
public function getEnabled()
339+
public function getType()
341340
{
342-
return $this->container['enabled'];
341+
return $this->container['type'];
343342
}
344343

345344
/**
346-
* Sets enabled
345+
* Sets type
347346
*
348-
* @param string|null $enabled Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks.
347+
* @param string $type **amountNonZeroDecimalsRequirement**
349348
*
350349
* @return self
351350
*/
352-
public function setEnabled($enabled)
351+
public function setType($type)
353352
{
354-
$allowedValues = $this->getEnabledAllowableValues();
355-
if (!in_array($enabled, $allowedValues, true)) {
353+
$allowedValues = $this->getTypeAllowableValues();
354+
if (!in_array($type, $allowedValues, true)) {
356355
throw new \InvalidArgumentException(
357356
sprintf(
358-
"Invalid value '%s' for 'enabled', must be one of '%s'",
359-
$enabled,
357+
"Invalid value '%s' for 'type', must be one of '%s'",
358+
$type,
360359
implode("', '", $allowedValues)
361360
)
362361
);
363362
}
364-
$this->container['enabled'] = $enabled;
363+
$this->container['type'] = $type;
365364

366365
return $this;
367366
}

src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ public function getModelName()
320320
public const REASON_PENDING_APPROVAL = 'pendingApproval';
321321
public const REASON_PENDING_EXECUTION = 'pendingExecution';
322322
public const REASON_REFUSED_BY_COUNTERPARTY_BANK = 'refusedByCounterpartyBank';
323+
public const REASON_REFUSED_BY_CUSTOMER = 'refusedByCustomer';
323324
public const REASON_ROUTE_NOT_FOUND = 'routeNotFound';
324325
public const REASON_SCA_FAILED = 'scaFailed';
325326
public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist';
@@ -384,6 +385,7 @@ public function getReasonAllowableValues()
384385
self::REASON_PENDING_APPROVAL,
385386
self::REASON_PENDING_EXECUTION,
386387
self::REASON_REFUSED_BY_COUNTERPARTY_BANK,
388+
self::REASON_REFUSED_BY_CUSTOMER,
387389
self::REASON_ROUTE_NOT_FOUND,
388390
self::REASON_SCA_FAILED,
389391
self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST,

0 commit comments

Comments
 (0)