Skip to content

Commit a5257fd

Browse files
committed
Updated Auto Generated Code
1 parent cc4ac76 commit a5257fd

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
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.168.1');
14+
$this->setVersion('3.169.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/Payloads/CreateOrderPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CreateOrderPayload
5050
*/
5151
protected $_offerFids;
5252
/**
53-
* Charge ID provided by ChargeHive.com
53+
* Charge ID provided by ChargeHive.com or `true` to create one
5454
*/
5555
protected $_chargeId;
5656
/**
@@ -508,7 +508,7 @@ public function setChargeId(?string $value)
508508
}
509509

510510
/**
511-
* Charge ID provided by ChargeHive.com
511+
* Charge ID provided by ChargeHive.com or `true` to create one
512512
*
513513
* @param mixed $default
514514
* @param bool $trim Trim Value

src/Payloads/ModifySubscriptionPayload.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
class ModifySubscriptionPayload
66
implements \JsonSerializable
77
{
8+
/**
9+
* Use a specific chargeID for this modification, or pass `true` to create a charge
10+
*/
11+
protected $_chargeId;
812
/**
913
* Price FID to modify subscription with
1014
* @required
@@ -30,6 +34,10 @@ class ModifySubscriptionPayload
3034
public function hydrate($data)
3135
{
3236
$data = (array)$data;
37+
if(isset($data["chargeId"]))
38+
{
39+
$this->_chargeId = (string)$data["chargeId"];
40+
}
3341
if(isset($data["priceFid"]))
3442
{
3543
$this->_priceFid = (string)$data["priceFid"];
@@ -57,6 +65,7 @@ public function hydrate($data)
5765
public function jsonSerialize()
5866
{
5967
return [
68+
"chargeId" => $this->_chargeId,
6069
"priceFid" => $this->_priceFid,
6170
"description" => $this->_description,
6271
"offerFid" => $this->_offerFid,
@@ -65,6 +74,31 @@ public function jsonSerialize()
6574
];
6675
}
6776

77+
/**
78+
* @param string $value
79+
*
80+
* @return $this
81+
*/
82+
public function setChargeId(?string $value)
83+
{
84+
$this->_chargeId = $value;
85+
return $this;
86+
}
87+
88+
/**
89+
* Use a specific chargeID for this modification, or pass `true` to create a charge
90+
*
91+
* @param mixed $default
92+
* @param bool $trim Trim Value
93+
*
94+
* @return string
95+
*/
96+
public function getChargeId($default = null, $trim = true)
97+
{
98+
$value = $this->_chargeId ?: $default;
99+
return $trim ? Strings::ntrim($value) : $value;
100+
}
101+
68102
/**
69103
* @param string $value
70104
*

swagger.yaml

Lines changed: 5 additions & 2 deletions
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.168.1'
4+
version: '3.169.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
@@ -11552,6 +11552,9 @@ definitions:
1155211552

1155311553
ModifySubscriptionPayload:
1155411554
properties:
11555+
chargeId:
11556+
description: Use a specific chargeID for this modification, or pass `true` to create a charge
11557+
type: string
1155511558
priceFid:
1155611559
description: Price FID to modify subscription with
1155711560
type: string
@@ -12392,7 +12395,7 @@ definitions:
1239212395
items:
1239312396
type: string
1239412397
chargeId:
12395-
description: Charge ID provided by ChargeHive.com
12398+
description: Charge ID provided by ChargeHive.com or `true` to create one
1239612399
type: string
1239712400
externalReference:
1239812401
description: Reference for this order

0 commit comments

Comments
 (0)