Skip to content

Commit 457023e

Browse files
committed
Updated Auto Generated Code
1 parent 4a448c9 commit 457023e

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-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.151.0');
14+
$this->setVersion('3.152.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/SubscriptionRequest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function jsonSerialize()
6666
"identity" => $this->getIdentity(),
6767
"externalReference" => $this->getExternalReference(),
6868
"sourceFid" => $this->getSourceFid(),
69+
"paymentMethodFid" => $this->getPaymentMethodFid(),
6970
]
7071
);
7172
}
@@ -695,4 +696,18 @@ public function getSourceFid($default = null, $trim = true)
695696
$value = Objects::property($this->_getResultJson(), 'sourceFid', $default);
696697
return $trim ? Strings::ntrim($value) : $value;
697698
}
699+
700+
/**
701+
* The FID of the payment method used to pay for this subscription (Blank will use account methods)
702+
*
703+
* @param mixed $default
704+
* @param bool $trim Trim Value
705+
*
706+
* @return string
707+
*/
708+
public function getPaymentMethodFid($default = null, $trim = true)
709+
{
710+
$value = Objects::property($this->_getResultJson(), 'paymentMethodFid', $default);
711+
return $trim ? Strings::ntrim($value) : $value;
712+
}
698713
}

swagger.yaml

Lines changed: 4 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.151.0'
4+
version: '3.152.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
@@ -9717,6 +9717,9 @@ definitions:
97179717
sourceFid:
97189718
description: The FID of the object that created this subscription (most commonly, order fid)
97199719
type: string
9720+
paymentMethodFid:
9721+
description: The FID of the payment method used to pay for this subscription (Blank will use account methods)
9722+
type: string
97209723

97219724
SubscriptionCancellation:
97229725
description: Generic Response

0 commit comments

Comments
 (0)