Skip to content

Commit 7cad841

Browse files
Regenerate SDKs (#7)
Co-authored-by: konfig-publisher <publisher@konfigthis.com>
1 parent fc6308e commit 7cad841

File tree

3 files changed

+52
-7
lines changed

3 files changed

+52
-7
lines changed

.konfig/generate-id.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
536ac9c3-fc16-42c3-8d3d-cf804d74b3f5
1+
025c759a-837a-4109-b060-10e007c885be

lib/Model/InitiatePlanResponse.php

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class InitiatePlanResponse implements ModelInterface, ArrayAccess, \JsonSerializ
5858
'extended_params' => 'array<string,string>',
5959
'shopper' => '\Splitit\Model\ShopperData',
6060
'billing_address' => '\Splitit\Model\AddressData',
61-
'checkout_url' => 'string'
61+
'checkout_url' => 'string',
62+
'principal_amount' => 'float'
6263
];
6364

6465
/**
@@ -78,7 +79,8 @@ class InitiatePlanResponse implements ModelInterface, ArrayAccess, \JsonSerializ
7879
'extended_params' => null,
7980
'shopper' => null,
8081
'billing_address' => null,
81-
'checkout_url' => null
82+
'checkout_url' => null,
83+
'principal_amount' => 'decimal'
8284
];
8385

8486
/**
@@ -96,7 +98,8 @@ class InitiatePlanResponse implements ModelInterface, ArrayAccess, \JsonSerializ
9698
'extended_params' => false,
9799
'shopper' => false,
98100
'billing_address' => false,
99-
'checkout_url' => false
101+
'checkout_url' => false,
102+
'principal_amount' => false
100103
];
101104

102105
/**
@@ -194,7 +197,8 @@ public function isNullableSetToNull(string $property): bool
194197
'extended_params' => 'ExtendedParams',
195198
'shopper' => 'Shopper',
196199
'billing_address' => 'BillingAddress',
197-
'checkout_url' => 'CheckoutUrl'
200+
'checkout_url' => 'CheckoutUrl',
201+
'principal_amount' => 'PrincipalAmount'
198202
];
199203

200204
/**
@@ -212,7 +216,8 @@ public function isNullableSetToNull(string $property): bool
212216
'extended_params' => 'setExtendedParams',
213217
'shopper' => 'setShopper',
214218
'billing_address' => 'setBillingAddress',
215-
'checkout_url' => 'setCheckoutUrl'
219+
'checkout_url' => 'setCheckoutUrl',
220+
'principal_amount' => 'setPrincipalAmount'
216221
];
217222

218223
/**
@@ -230,7 +235,8 @@ public function isNullableSetToNull(string $property): bool
230235
'extended_params' => 'getExtendedParams',
231236
'shopper' => 'getShopper',
232237
'billing_address' => 'getBillingAddress',
233-
'checkout_url' => 'getCheckoutUrl'
238+
'checkout_url' => 'getCheckoutUrl',
239+
'principal_amount' => 'getPrincipalAmount'
234240
];
235241

236242
/**
@@ -300,6 +306,7 @@ public function __construct(array $data = null)
300306
$this->setIfExists('shopper', $data ?? [], null);
301307
$this->setIfExists('billing_address', $data ?? [], null);
302308
$this->setIfExists('checkout_url', $data ?? [], null);
309+
$this->setIfExists('principal_amount', $data ?? [], null);
303310
}
304311

305312
/**
@@ -636,6 +643,35 @@ public function setCheckoutUrl($checkout_url)
636643

637644
return $this;
638645
}
646+
647+
/**
648+
* Gets principal_amount
649+
*
650+
* @return float|null
651+
*/
652+
public function getPrincipalAmount()
653+
{
654+
return $this->container['principal_amount'];
655+
}
656+
657+
/**
658+
* Sets principal_amount
659+
*
660+
* @param float|null $principal_amount principal_amount
661+
*
662+
* @return self
663+
*/
664+
public function setPrincipalAmount($principal_amount)
665+
{
666+
667+
if (is_null($principal_amount)) {
668+
throw new \InvalidArgumentException('non-nullable principal_amount cannot be null');
669+
}
670+
671+
$this->container['principal_amount'] = $principal_amount;
672+
673+
return $this;
674+
}
639675
/**
640676
* Returns true if offset exists. False otherwise.
641677
*

test/Model/InitiatePlanResponseTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,13 @@ public function testPropertyCheckoutUrl()
160160
// TODO: implement
161161
$this->markTestIncomplete('Not implemented');
162162
}
163+
164+
/**
165+
* Test attribute "principal_amount"
166+
*/
167+
public function testPropertyPrincipalAmount()
168+
{
169+
// TODO: implement
170+
$this->markTestIncomplete('Not implemented');
171+
}
163172
}

0 commit comments

Comments
 (0)