Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
wp-content
/
plugins
/
wpforms-lite
/
vendor_prefixed
/
square
/
square
/
src
/
Models
/
Builders
:
BulkUpsertOrderCustomAttributesRequestUpsertCustomAttributeBuilder.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare (strict_types=1); namespace WPForms\Vendor\Square\Models\Builders; use WPForms\Vendor\Core\Utils\CoreHelper; use WPForms\Vendor\Square\Models\BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute; use WPForms\Vendor\Square\Models\CustomAttribute; /** * Builder for model BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute * * @see BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute */ class BulkUpsertOrderCustomAttributesRequestUpsertCustomAttributeBuilder { /** * @var BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute */ private $instance; private function __construct(BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute $instance) { $this->instance = $instance; } /** * Initializes a new Bulk Upsert Order Custom Attributes Request Upsert Custom Attribute Builder object. * * @param CustomAttribute $customAttribute * @param string $orderId */ public static function init(CustomAttribute $customAttribute, string $orderId) : self { return new self(new BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute($customAttribute, $orderId)); } /** * Sets idempotency key field. * * @param string|null $value */ public function idempotencyKey(?string $value) : self { $this->instance->setIdempotencyKey($value); return $this; } /** * Unsets idempotency key field. */ public function unsetIdempotencyKey() : self { $this->instance->unsetIdempotencyKey(); return $this; } /** * Initializes a new Bulk Upsert Order Custom Attributes Request Upsert Custom Attribute object. */ public function build() : BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute { return CoreHelper::clone($this->instance); } }