@@ -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 *
0 commit comments