Skip to content

Commit d08946b

Browse files
committed
Fix subscription change plan
1 parent ea6e829 commit d08946b

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

Diff for: docs/Model/SubscriptionIdPlanBody.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**when** | **string** | |
7-
**subscription_plan** | **string** | The ID for the subscription plan to be used |
7+
**plan** | **string** | The ID for the subscription plan to be used | [optional]
88
**price** | **string** | The ID for the price to be used |
99

1010
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

Diff for: lib/Model/SubscriptionIdPlanBody.php

+13-16
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class SubscriptionIdPlanBody implements ModelInterface, ArrayAccess
5757
*/
5858
protected static $swaggerTypes = [
5959
'when' => 'string',
60-
'subscription_plan' => 'string',
60+
'plan' => 'string',
6161
'price' => 'string'
6262
];
6363

@@ -68,7 +68,7 @@ class SubscriptionIdPlanBody implements ModelInterface, ArrayAccess
6868
*/
6969
protected static $swaggerFormats = [
7070
'when' => null,
71-
'subscription_plan' => 'uuid',
71+
'plan' => 'uuid',
7272
'price' => 'uuid'
7373
];
7474

@@ -100,7 +100,7 @@ public static function swaggerFormats()
100100
*/
101101
protected static $attributeMap = [
102102
'when' => 'when',
103-
'subscription_plan' => 'subscription_plan',
103+
'plan' => 'plan',
104104
'price' => 'price'
105105
];
106106

@@ -111,7 +111,7 @@ public static function swaggerFormats()
111111
*/
112112
protected static $setters = [
113113
'when' => 'setWhen',
114-
'subscription_plan' => 'setSubscriptionPlan',
114+
'plan' => 'setPlan',
115115
'price' => 'setPrice'
116116
];
117117

@@ -122,7 +122,7 @@ public static function swaggerFormats()
122122
*/
123123
protected static $getters = [
124124
'when' => 'getWhen',
125-
'subscription_plan' => 'getSubscriptionPlan',
125+
'plan' => 'getPlan',
126126
'price' => 'getPrice'
127127
];
128128

@@ -199,7 +199,7 @@ public function getWhenAllowableValues()
199199
public function __construct(array $data = null)
200200
{
201201
$this->container['when'] = isset($data['when']) ? $data['when'] : null;
202-
$this->container['subscription_plan'] = isset($data['subscription_plan']) ? $data['subscription_plan'] : null;
202+
$this->container['plan'] = isset($data['plan']) ? $data['plan'] : null;
203203
$this->container['price'] = isset($data['price']) ? $data['price'] : null;
204204
}
205205

@@ -223,9 +223,6 @@ public function listInvalidProperties()
223223
);
224224
}
225225

226-
if ($this->container['subscription_plan'] === null) {
227-
$invalidProperties[] = "'subscription_plan' can't be null";
228-
}
229226
if ($this->container['price'] === null) {
230227
$invalidProperties[] = "'price' can't be null";
231228
}
@@ -278,25 +275,25 @@ public function setWhen($when)
278275
}
279276

280277
/**
281-
* Gets subscription_plan
278+
* Gets plan
282279
*
283280
* @return string
284281
*/
285-
public function getSubscriptionPlan()
282+
public function getPlan()
286283
{
287-
return $this->container['subscription_plan'];
284+
return $this->container['plan'];
288285
}
289286

290287
/**
291-
* Sets subscription_plan
288+
* Sets plan
292289
*
293-
* @param string $subscription_plan The ID for the subscription plan to be used
290+
* @param string $plan The ID for the subscription plan to be used
294291
*
295292
* @return $this
296293
*/
297-
public function setSubscriptionPlan($subscription_plan)
294+
public function setPlan($plan)
298295
{
299-
$this->container['subscription_plan'] = $subscription_plan;
296+
$this->container['plan'] = $plan;
300297

301298
return $this;
302299
}

0 commit comments

Comments
 (0)