Skip to content

Commit ee8873c

Browse files
committed
Update php SDK [skip ci]
1 parent 419c8e3 commit ee8873c

File tree

7 files changed

+94
-6
lines changed

7 files changed

+94
-6
lines changed

docs/Model/ProductVariantAdd.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Name | Type | Description | Notes
5757
**is_free_shipping** | **bool** | Specifies variant's free shipping flag that has to be added | [optional]
5858
**country_of_origin** | **string** | The country where the inventory item was made | [optional]
5959
**harmonized_system_code** | **string** | Harmonized System Code. An HSC is a 6-digit identifier that allows participating countries to classify traded goods on a common basis for customs purposes | [optional]
60+
**processing_profile_id** | **int** | The numeric ID of the processing profile (readiness state) for physical products in Etsy. You can find possible values in the \"cart.info\" API method response, in the field processing_profiles[]->readiness_state_id. | [optional]
6061
**marketplace_item_properties** | **string** | String containing the JSON representation of the supplied data | [optional]
6162
**clear_cache** | **bool** | Is cache clear required | [optional] [default to true]
6263

docs/Model/ProductVariantUpdate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ Name | Type | Description | Notes
5959
**manufacturer** | **string** | Specifies the product variant's manufacturer | [optional]
6060
**reindex** | **bool** | Is reindex required | [optional] [default to true]
6161
**clear_cache** | **bool** | Is cache clear required | [optional] [default to true]
62+
**processing_profile_id** | **int** | The numeric ID of the processing profile (readiness state) for physical products in Etsy. You can find possible values in the \"cart.info\" API method response, in the field processing_profiles[]->readiness_state_id. | [optional]
6263

6364
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Model/ProductVariantAdd.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class ProductVariantAdd implements ModelInterface, ArrayAccess, \JsonSerializabl
111111
'is_free_shipping' => 'bool',
112112
'country_of_origin' => 'string',
113113
'harmonized_system_code' => 'string',
114+
'processing_profile_id' => 'int',
114115
'marketplace_item_properties' => 'string',
115116
'clear_cache' => 'bool'
116117
];
@@ -176,6 +177,7 @@ class ProductVariantAdd implements ModelInterface, ArrayAccess, \JsonSerializabl
176177
'is_free_shipping' => null,
177178
'country_of_origin' => null,
178179
'harmonized_system_code' => null,
180+
'processing_profile_id' => null,
179181
'marketplace_item_properties' => null,
180182
'clear_cache' => null
181183
];
@@ -239,6 +241,7 @@ class ProductVariantAdd implements ModelInterface, ArrayAccess, \JsonSerializabl
239241
'is_free_shipping' => false,
240242
'country_of_origin' => false,
241243
'harmonized_system_code' => false,
244+
'processing_profile_id' => false,
242245
'marketplace_item_properties' => false,
243246
'clear_cache' => false
244247
];
@@ -382,6 +385,7 @@ public function isNullableSetToNull(string $property): bool
382385
'is_free_shipping' => 'is_free_shipping',
383386
'country_of_origin' => 'country_of_origin',
384387
'harmonized_system_code' => 'harmonized_system_code',
388+
'processing_profile_id' => 'processing_profile_id',
385389
'marketplace_item_properties' => 'marketplace_item_properties',
386390
'clear_cache' => 'clear_cache'
387391
];
@@ -445,6 +449,7 @@ public function isNullableSetToNull(string $property): bool
445449
'is_free_shipping' => 'setIsFreeShipping',
446450
'country_of_origin' => 'setCountryOfOrigin',
447451
'harmonized_system_code' => 'setHarmonizedSystemCode',
452+
'processing_profile_id' => 'setProcessingProfileId',
448453
'marketplace_item_properties' => 'setMarketplaceItemProperties',
449454
'clear_cache' => 'setClearCache'
450455
];
@@ -508,6 +513,7 @@ public function isNullableSetToNull(string $property): bool
508513
'is_free_shipping' => 'getIsFreeShipping',
509514
'country_of_origin' => 'getCountryOfOrigin',
510515
'harmonized_system_code' => 'getHarmonizedSystemCode',
516+
'processing_profile_id' => 'getProcessingProfileId',
511517
'marketplace_item_properties' => 'getMarketplaceItemProperties',
512518
'clear_cache' => 'getClearCache'
513519
];
@@ -622,6 +628,7 @@ public function __construct(?array $data = null)
622628
$this->setIfExists('is_free_shipping', $data ?? [], null);
623629
$this->setIfExists('country_of_origin', $data ?? [], null);
624630
$this->setIfExists('harmonized_system_code', $data ?? [], null);
631+
$this->setIfExists('processing_profile_id', $data ?? [], null);
625632
$this->setIfExists('marketplace_item_properties', $data ?? [], null);
626633
$this->setIfExists('clear_cache', $data ?? [], true);
627634
}
@@ -2102,6 +2109,33 @@ public function setHarmonizedSystemCode($harmonized_system_code)
21022109
return $this;
21032110
}
21042111

2112+
/**
2113+
* Gets processing_profile_id
2114+
*
2115+
* @return int|null
2116+
*/
2117+
public function getProcessingProfileId()
2118+
{
2119+
return $this->container['processing_profile_id'];
2120+
}
2121+
2122+
/**
2123+
* Sets processing_profile_id
2124+
*
2125+
* @param int|null $processing_profile_id The numeric ID of the processing profile (readiness state) for physical products in Etsy. You can find possible values in the \"cart.info\" API method response, in the field processing_profiles[]->readiness_state_id.
2126+
*
2127+
* @return self
2128+
*/
2129+
public function setProcessingProfileId($processing_profile_id)
2130+
{
2131+
if (is_null($processing_profile_id)) {
2132+
throw new \InvalidArgumentException('non-nullable processing_profile_id cannot be null');
2133+
}
2134+
$this->container['processing_profile_id'] = $processing_profile_id;
2135+
2136+
return $this;
2137+
}
2138+
21052139
/**
21062140
* Gets marketplace_item_properties
21072141
*

lib/Model/ProductVariantUpdate.php

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ class ProductVariantUpdate implements ModelInterface, ArrayAccess, \JsonSerializ
112112
'meta_keywords' => 'string',
113113
'manufacturer' => 'string',
114114
'reindex' => 'bool',
115-
'clear_cache' => 'bool'
115+
'clear_cache' => 'bool',
116+
'processing_profile_id' => 'int'
116117
];
117118

118119
/**
@@ -177,7 +178,8 @@ class ProductVariantUpdate implements ModelInterface, ArrayAccess, \JsonSerializ
177178
'meta_keywords' => null,
178179
'manufacturer' => null,
179180
'reindex' => null,
180-
'clear_cache' => null
181+
'clear_cache' => null,
182+
'processing_profile_id' => null
181183
];
182184

183185
/**
@@ -240,7 +242,8 @@ class ProductVariantUpdate implements ModelInterface, ArrayAccess, \JsonSerializ
240242
'meta_keywords' => false,
241243
'manufacturer' => false,
242244
'reindex' => false,
243-
'clear_cache' => false
245+
'clear_cache' => false,
246+
'processing_profile_id' => false
244247
];
245248

246249
/**
@@ -383,7 +386,8 @@ public function isNullableSetToNull(string $property): bool
383386
'meta_keywords' => 'meta_keywords',
384387
'manufacturer' => 'manufacturer',
385388
'reindex' => 'reindex',
386-
'clear_cache' => 'clear_cache'
389+
'clear_cache' => 'clear_cache',
390+
'processing_profile_id' => 'processing_profile_id'
387391
];
388392

389393
/**
@@ -446,7 +450,8 @@ public function isNullableSetToNull(string $property): bool
446450
'meta_keywords' => 'setMetaKeywords',
447451
'manufacturer' => 'setManufacturer',
448452
'reindex' => 'setReindex',
449-
'clear_cache' => 'setClearCache'
453+
'clear_cache' => 'setClearCache',
454+
'processing_profile_id' => 'setProcessingProfileId'
450455
];
451456

452457
/**
@@ -509,7 +514,8 @@ public function isNullableSetToNull(string $property): bool
509514
'meta_keywords' => 'getMetaKeywords',
510515
'manufacturer' => 'getManufacturer',
511516
'reindex' => 'getReindex',
512-
'clear_cache' => 'getClearCache'
517+
'clear_cache' => 'getClearCache',
518+
'processing_profile_id' => 'getProcessingProfileId'
513519
];
514520

515521
/**
@@ -624,6 +630,7 @@ public function __construct(?array $data = null)
624630
$this->setIfExists('manufacturer', $data ?? [], null);
625631
$this->setIfExists('reindex', $data ?? [], true);
626632
$this->setIfExists('clear_cache', $data ?? [], true);
633+
$this->setIfExists('processing_profile_id', $data ?? [], null);
627634
}
628635

629636
/**
@@ -2152,6 +2159,33 @@ public function setClearCache($clear_cache)
21522159

21532160
return $this;
21542161
}
2162+
2163+
/**
2164+
* Gets processing_profile_id
2165+
*
2166+
* @return int|null
2167+
*/
2168+
public function getProcessingProfileId()
2169+
{
2170+
return $this->container['processing_profile_id'];
2171+
}
2172+
2173+
/**
2174+
* Sets processing_profile_id
2175+
*
2176+
* @param int|null $processing_profile_id The numeric ID of the processing profile (readiness state) for physical products in Etsy. You can find possible values in the \"cart.info\" API method response, in the field processing_profiles[]->readiness_state_id.
2177+
*
2178+
* @return self
2179+
*/
2180+
public function setProcessingProfileId($processing_profile_id)
2181+
{
2182+
if (is_null($processing_profile_id)) {
2183+
throw new \InvalidArgumentException('non-nullable processing_profile_id cannot be null');
2184+
}
2185+
$this->container['processing_profile_id'] = $processing_profile_id;
2186+
2187+
return $this;
2188+
}
21552189
/**
21562190
* Returns true if offset exists. False otherwise.
21572191
*

php.tgz

770 Bytes
Binary file not shown.

test/Model/ProductVariantAddTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,15 @@ public function testPropertyHarmonizedSystemCode()
557557
self::markTestIncomplete('Not implemented');
558558
}
559559

560+
/**
561+
* Test attribute "processing_profile_id"
562+
*/
563+
public function testPropertyProcessingProfileId()
564+
{
565+
// TODO: implement
566+
self::markTestIncomplete('Not implemented');
567+
}
568+
560569
/**
561570
* Test attribute "marketplace_item_properties"
562571
*/

test/Model/ProductVariantUpdateTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,13 @@ public function testPropertyClearCache()
574574
// TODO: implement
575575
self::markTestIncomplete('Not implemented');
576576
}
577+
578+
/**
579+
* Test attribute "processing_profile_id"
580+
*/
581+
public function testPropertyProcessingProfileId()
582+
{
583+
// TODO: implement
584+
self::markTestIncomplete('Not implemented');
585+
}
577586
}

0 commit comments

Comments
 (0)