-
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.
[PLA-1931] Add dispatch with require signature (#79)
- Loading branch information
1 parent
a044ac0
commit 2d1a4cc
Showing
13 changed files
with
122 additions
and
14 deletions.
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
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
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
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,36 @@ | ||
<?php | ||
|
||
namespace Enjin\Platform\FuelTanks\GraphQL\Types\Input; | ||
|
||
use Rebing\GraphQL\Support\Facades\GraphQL; | ||
|
||
class DispatchSettingsInputType extends InputType | ||
{ | ||
/** | ||
* Get the input type's attributes. | ||
*/ | ||
public function attributes(): array | ||
{ | ||
return [ | ||
'name' => 'DispatchSettingsInputType', | ||
'description' => __('enjin-platform-fuel-tanks::input_type.dispatch_settings.description'), | ||
]; | ||
} | ||
|
||
/** | ||
* Get the input type's fields. | ||
*/ | ||
public function fields(): array | ||
{ | ||
return [ | ||
'paysRemainingFee' => [ | ||
'type' => GraphQL::type('Boolean!'), | ||
'description' => __('enjin-platform-fuel-tanks::input_type.dispatch_settings.field.paysRemainingFee'), | ||
], | ||
'signature' => [ | ||
'type' => GraphQL::type('ExpirableSignatureInputType'), | ||
'description' => __('enjin-platform-fuel-tanks::input_type.dispatch_settings.field.signature'), | ||
], | ||
]; | ||
} | ||
} |
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
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
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