-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef74368
commit 504b9c0
Showing
16 changed files
with
288 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Data/Responses/FulfillmentInbound/v20240320/ListPrepDetailsResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Responses\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Responses\BaseResponse; | ||
use Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320\MskuPrepDetailSchemaList; | ||
|
||
class ListPrepDetailsResponse extends BaseResponse | ||
{ | ||
public function __construct( | ||
public MskuPrepDetailSchemaList $msku_prep_details, | ||
) { | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Data/Responses/FulfillmentInbound/v20240320/SetPrepDetailsResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Responses\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Base\Validators\RuleValidator; | ||
use Jasara\AmznSPA\Data\Responses\BaseResponse; | ||
|
||
class SetPrepDetailsResponse extends BaseResponse | ||
{ | ||
public function __construct( | ||
#[RuleValidator(['min:36', 'max:38'])] | ||
public ?string $operation_id, | ||
) { | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Data/Schemas/FulfillmentInbound/v20240320/AllOwnersConstraint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
enum AllOwnersConstraint: string | ||
{ | ||
case MustMatch = 'MUST_MATCH'; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Data/Schemas/FulfillmentInbound/v20240320/MskuPrepDetailInputSchema.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Schemas\BaseSchema; | ||
|
||
class MskuPrepDetailInputSchema extends BaseSchema | ||
{ | ||
public function __construct( | ||
public string $msku, | ||
public PrepCategory $prep_category, | ||
public PrepTypeList $prep_types, | ||
) { | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Data/Schemas/FulfillmentInbound/v20240320/MskuPrepDetailInputSchemaList.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Base\TypedCollection; | ||
|
||
/** | ||
* @template-extends TypedCollection<MskuPrepDetailInputSchema> | ||
*/ | ||
class MskuPrepDetailInputSchemaList extends TypedCollection | ||
{ | ||
public const ITEM_CLASS = MskuPrepDetailInputSchema::class; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Data/Schemas/FulfillmentInbound/v20240320/MskuPrepDetailSchema.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Schemas\BaseSchema; | ||
|
||
class MskuPrepDetailSchema extends BaseSchema | ||
{ | ||
public function __construct( | ||
public ?AllOwnersConstraint $all_owners_constraint, | ||
public ?OwnerConstraint $label_owner_constraint, | ||
public string $msku, | ||
public PrepCategory $prep_category, | ||
public PrepTypeList $prep_types, | ||
public ?OwnerConstraint $prep_owner_constraint, | ||
) { | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Data/Schemas/FulfillmentInbound/v20240320/MskuPrepDetailSchemaList.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Base\TypedCollection; | ||
|
||
/** | ||
* @template-extends TypedCollection<MskuPrepDetailSchema> | ||
*/ | ||
class MskuPrepDetailSchemaList extends TypedCollection | ||
{ | ||
public const ITEM_CLASS = MskuPrepDetailSchema::class; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Data/Schemas/FulfillmentInbound/v20240320/OwnerConstraint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
enum OwnerConstraint: string | ||
{ | ||
case AmazonOnly = 'AMAZON_ONLY'; | ||
case SellerOnly = 'SELLER_ONLY'; | ||
case NoneOnly = 'NONE_ONLY'; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Data/Schemas/FulfillmentInbound/v20240320/PrepCategory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
enum PrepCategory: string | ||
{ | ||
case Adult = 'ADULT'; | ||
case Baby = 'BABY'; | ||
case FcProvided = 'FC_PROVIDED'; | ||
case Fragile = 'FRAGILE'; | ||
case Granular = 'GRANULAR'; | ||
case Hanger = 'HANGER'; | ||
case Liquid = 'LIQUID'; | ||
case Perforated = 'PERFORATED'; | ||
case Set = 'SET'; | ||
case Sharp = 'SHARP'; | ||
case Small = 'SMALL'; | ||
case Textile = 'TEXTILE'; | ||
case Unknown = 'UNKNOWN'; | ||
case None = 'NONE'; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/Data/Schemas/FulfillmentInbound/v20240320/PrepTypeList.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data\Schemas\FulfillmentInbound\v20240320; | ||
|
||
use Jasara\AmznSPA\Data\Base\TypedCollection; | ||
|
||
/** | ||
* @template-extends TypedCollection<PrepType> | ||
*/ | ||
class PrepTypeList extends TypedCollection | ||
{ | ||
public const ITEM_CLASS = PrepType::class; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tests/stubs/fulfillment-inbound/v20240320/list-prep-details.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"mskuPrepDetails": [ | ||
{ | ||
"msku": "msku1", | ||
"prepCategory": "TEXTILE", | ||
"prepTypes": [ | ||
"ITEM_LABELING", | ||
"ITEM_POLYBAGGING" | ||
], | ||
"prepOwnerConstraint": "AMAZON_ONLY", | ||
"labelOwnerConstraint": "AMAZON_ONLY", | ||
"allOwnersConstraint": "MUST_MATCH" | ||
}, | ||
{ | ||
"msku": "msku2", | ||
"prepCategory": "FRAGILE", | ||
"prepTypes": [ | ||
"ITEM_LABELING", | ||
"ITEM_BUBBLEWRAP" | ||
], | ||
"allOwnersConstraint": "MUST_MATCH" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/stubs/fulfillment-inbound/v20240320/set-prep-details.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"operationId": "1234abcd-1234-abcd-5678-1234abcd1102" | ||
} |