Skip to content

Commit cc541da

Browse files
committed
Updated Auto Generated Code
1 parent f277d80 commit cc541da

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

src/Definitions/FortifiApiDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FortifiApiDefinition extends ApiDefinition
1111
public function __construct()
1212
{
1313
$this->setTitle('Fortifi API');
14-
$this->setVersion('3.161.0');
14+
$this->setVersion('3.162.0');
1515
$this->setDescription(<<<DESCRIPTION
1616
The second version of the Fortifi API is an exciting step forward towards
1717
making it easier for businesses to have open access to their data. We created it

src/Requests/FindTransactionRequest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function jsonSerialize()
2020
"city" => $this->getCity(),
2121
"country" => $this->getCountry(),
2222
"items" => $this->getItems(),
23+
"subscriptions" => $this->getSubscriptions(),
2324
"paymentScheme" => $this->getPaymentScheme(),
2425
"paymentLast4" => $this->getPaymentLast4(),
2526
"paymentExp" => $this->getPaymentExp(),
@@ -104,6 +105,16 @@ public function getItems($default = [])
104105
return Objects::property($this->_getResultJson(), 'items', $default);
105106
}
106107

108+
/**
109+
* @param mixed $default
110+
*
111+
* @return SubscriptionRequest[]
112+
*/
113+
public function getSubscriptions($default = [])
114+
{
115+
return Objects::property($this->_getResultJson(), 'subscriptions', $default);
116+
}
117+
107118
/**
108119
* @param mixed $default
109120
* @param bool $trim Trim Value
@@ -245,6 +256,15 @@ protected function _prepareResult($result)
245256
}
246257
}
247258

259+
if(!empty($return->subscriptions))
260+
{
261+
foreach($return->subscriptions as $itmKey => $itm)
262+
{
263+
$return->subscriptions[$itmKey] = (new SubscriptionRequest())
264+
->hydrate($itm);
265+
}
266+
}
267+
248268
if(!empty($return->taxes))
249269
{
250270
foreach($return->taxes as $itmKey => $itm)

swagger.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
swagger: '2.0'
22
info:
33
title: Fortifi API
4-
version: '3.161.0'
4+
version: '3.162.0'
55
termsOfService: 'https://fortifi.io/legal/terms/api'
66
description: >
77
The second version of the Fortifi API is an exciting step forward towards
@@ -13421,6 +13421,10 @@ definitions:
1342113421
type: array
1342213422
items:
1342313423
$ref: '#/definitions/InvoiceItem'
13424+
subscriptions:
13425+
type: array
13426+
items:
13427+
$ref: '#/definitions/Subscription'
1342413428
paymentScheme:
1342513429
type: string
1342613430
paymentLast4:

0 commit comments

Comments
 (0)