Skip to content

Commit a68b1a0

Browse files
Merge pull request #550 from HubSpot/codegen/crmSchemas
Codegen: CRM Schemas
2 parents 00624ff + 9a84a91 commit a68b1a0

22 files changed

Lines changed: 1680 additions & 1680 deletions

codegen/Crm/Schemas/Api/CoreApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: v3
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.17.0
19+
* Generator version: 7.19.0
2020
*/
2121

2222
/**

codegen/Crm/Schemas/ApiException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: v3
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.17.0
19+
* Generator version: 7.19.0
2020
*/
2121

2222
/**

codegen/Crm/Schemas/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: v3
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.17.0
19+
* Generator version: 7.19.0
2020
*/
2121

2222
/**

codegen/Crm/Schemas/FormDataProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: v3
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.17.0
19+
* Generator version: 7.19.0
2020
*/
2121

2222
/**

codegen/Crm/Schemas/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: v3
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.17.0
19+
* Generator version: 7.19.0
2020
*/
2121

2222
/**

codegen/Crm/Schemas/Model/AssociationDefinition.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: v3
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.17.0
20+
* Generator version: 7.19.0
2121
*/
2222

2323
/**
@@ -60,8 +60,8 @@ class AssociationDefinition implements ModelInterface, ArrayAccess, \JsonSeriali
6060
protected static $openAPITypes = [
6161
'created_at' => '\DateTime',
6262
'from_object_type_id' => 'string',
63-
'name' => 'string',
6463
'id' => 'string',
64+
'name' => 'string',
6565
'to_object_type_id' => 'string',
6666
'updated_at' => '\DateTime'
6767
];
@@ -76,8 +76,8 @@ class AssociationDefinition implements ModelInterface, ArrayAccess, \JsonSeriali
7676
protected static $openAPIFormats = [
7777
'created_at' => 'date-time',
7878
'from_object_type_id' => null,
79-
'name' => null,
8079
'id' => null,
80+
'name' => null,
8181
'to_object_type_id' => null,
8282
'updated_at' => 'date-time'
8383
];
@@ -90,8 +90,8 @@ class AssociationDefinition implements ModelInterface, ArrayAccess, \JsonSeriali
9090
protected static array $openAPINullables = [
9191
'created_at' => false,
9292
'from_object_type_id' => false,
93-
'name' => false,
9493
'id' => false,
94+
'name' => false,
9595
'to_object_type_id' => false,
9696
'updated_at' => false
9797
];
@@ -184,8 +184,8 @@ public function isNullableSetToNull(string $property): bool
184184
protected static $attributeMap = [
185185
'created_at' => 'createdAt',
186186
'from_object_type_id' => 'fromObjectTypeId',
187-
'name' => 'name',
188187
'id' => 'id',
188+
'name' => 'name',
189189
'to_object_type_id' => 'toObjectTypeId',
190190
'updated_at' => 'updatedAt'
191191
];
@@ -198,8 +198,8 @@ public function isNullableSetToNull(string $property): bool
198198
protected static $setters = [
199199
'created_at' => 'setCreatedAt',
200200
'from_object_type_id' => 'setFromObjectTypeId',
201-
'name' => 'setName',
202201
'id' => 'setId',
202+
'name' => 'setName',
203203
'to_object_type_id' => 'setToObjectTypeId',
204204
'updated_at' => 'setUpdatedAt'
205205
];
@@ -212,8 +212,8 @@ public function isNullableSetToNull(string $property): bool
212212
protected static $getters = [
213213
'created_at' => 'getCreatedAt',
214214
'from_object_type_id' => 'getFromObjectTypeId',
215-
'name' => 'getName',
216215
'id' => 'getId',
216+
'name' => 'getName',
217217
'to_object_type_id' => 'getToObjectTypeId',
218218
'updated_at' => 'getUpdatedAt'
219219
];
@@ -277,8 +277,8 @@ public function __construct(?array $data = null)
277277
{
278278
$this->setIfExists('created_at', $data ?? [], null);
279279
$this->setIfExists('from_object_type_id', $data ?? [], null);
280-
$this->setIfExists('name', $data ?? [], null);
281280
$this->setIfExists('id', $data ?? [], null);
281+
$this->setIfExists('name', $data ?? [], null);
282282
$this->setIfExists('to_object_type_id', $data ?? [], null);
283283
$this->setIfExists('updated_at', $data ?? [], null);
284284
}
@@ -389,55 +389,55 @@ public function setFromObjectTypeId($from_object_type_id)
389389
}
390390

391391
/**
392-
* Gets name
392+
* Gets id
393393
*
394-
* @return string|null
394+
* @return string
395395
*/
396-
public function getName()
396+
public function getId()
397397
{
398-
return $this->container['name'];
398+
return $this->container['id'];
399399
}
400400

401401
/**
402-
* Sets name
402+
* Sets id
403403
*
404-
* @param string|null $name A unique name for this association.
404+
* @param string $id A unique ID for this association.
405405
*
406406
* @return self
407407
*/
408-
public function setName($name)
408+
public function setId($id)
409409
{
410-
if (is_null($name)) {
411-
throw new \InvalidArgumentException('non-nullable name cannot be null');
410+
if (is_null($id)) {
411+
throw new \InvalidArgumentException('non-nullable id cannot be null');
412412
}
413-
$this->container['name'] = $name;
413+
$this->container['id'] = $id;
414414

415415
return $this;
416416
}
417417

418418
/**
419-
* Gets id
419+
* Gets name
420420
*
421-
* @return string
421+
* @return string|null
422422
*/
423-
public function getId()
423+
public function getName()
424424
{
425-
return $this->container['id'];
425+
return $this->container['name'];
426426
}
427427

428428
/**
429-
* Sets id
429+
* Sets name
430430
*
431-
* @param string $id A unique ID for this association.
431+
* @param string|null $name A unique name for this association.
432432
*
433433
* @return self
434434
*/
435-
public function setId($id)
435+
public function setName($name)
436436
{
437-
if (is_null($id)) {
438-
throw new \InvalidArgumentException('non-nullable id cannot be null');
437+
if (is_null($name)) {
438+
throw new \InvalidArgumentException('non-nullable name cannot be null');
439439
}
440-
$this->container['id'] = $id;
440+
$this->container['name'] = $name;
441441

442442
return $this;
443443
}

codegen/Crm/Schemas/Model/AssociationDefinitionEgg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: v3
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.17.0
20+
* Generator version: 7.19.0
2121
*/
2222

2323
/**

codegen/Crm/Schemas/Model/CollectionResponseObjectSchemaNoPaging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: v3
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.17.0
20+
* Generator version: 7.19.0
2121
*/
2222

2323
/**

0 commit comments

Comments
 (0)