-
Notifications
You must be signed in to change notification settings - Fork 0
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
d538142
commit 581df0f
Showing
13 changed files
with
661 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum ContractPlan: string | ||
{ | ||
case UNKNOWN = 'unknown'; | ||
|
||
case REGULAR = 'regular'; | ||
case LARGE = 'large'; | ||
case PREMIUM = 'premium'; | ||
|
||
case FREE = 'free'; | ||
case ECONOMY = 'economy'; | ||
case SMALL = 'small'; | ||
case PLATINUM = 'platinum'; | ||
case DORMANT = 'dormant'; | ||
|
||
case LOLIPOP = 'lolipop'; | ||
case HETEML = 'heteml'; | ||
case GOOPE = 'goope'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::UNKNOWN => '不明', | ||
|
||
self::REGULAR => 'レギュラー', | ||
self::LARGE => 'ラージ', | ||
self::PREMIUM => 'プレミアム', | ||
|
||
self::FREE => '無料プラン', | ||
self::ECONOMY => 'エコノミー', | ||
self::SMALL => 'スモール', | ||
self::PLATINUM => 'プラチナ', | ||
self::DORMANT => '休眠', | ||
|
||
self::LOLIPOP => 'ロリポップ', | ||
self::HETEML => 'Heteml', | ||
self::GOOPE => 'GOOPE', | ||
}; | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum DomainPlan: string | ||
{ | ||
case COLORME_SHOP_SUB_DOMAIN = 'cmsp_sub_domain'; | ||
case OWN_DOMAIN = 'own_domain'; | ||
case OWN_SUB_DOMAIN = 'own_sub_domain'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::COLORME_SHOP_SUB_DOMAIN => 'shop-proサブドメイン', | ||
self::OWN_DOMAIN => '独自ドメイン', | ||
self::OWN_SUB_DOMAIN => '独自サブドメイン', | ||
}; | ||
} | ||
} |
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 Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum OpenStatus: string | ||
{ | ||
case OPENED = 'opened'; | ||
case CLOSED = 'closed'; | ||
case PREPARE = 'prepare'; | ||
case PAUSED = 'paused'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::OPENED => '開店', | ||
self::CLOSED => '閉店(工事中)', | ||
self::PREPARE => '準備中', | ||
self::PAUSED => '休止中', | ||
}; | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum ShopState: string | ||
{ | ||
case ENABLED = 'enabled'; | ||
case SUSPENDED = 'suspended'; | ||
case UNSIGNED = 'unsigned'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::ENABLED => '有効', | ||
self::SUSPENDED => '停止', | ||
self::UNSIGNED => '未登録', | ||
}; | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum TaxRoundingMethod: string | ||
{ | ||
case ROUND_OFF = 'round_off'; | ||
case ROUND_DOWN = 'round_down'; | ||
case ROUND_UP = 'round_up'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::ROUND_OFF => '四捨五入', | ||
self::ROUND_DOWN => '切り捨て', | ||
self::ROUND_UP => '切り上げ', | ||
}; | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace Shimoning\ColorMeShopApi\Constants; | ||
|
||
enum TaxType: string | ||
{ | ||
case EXCLUDED = 'excluded'; | ||
case INCLUDED = 'included'; | ||
|
||
public function name(): string | ||
{ | ||
return match ($this) { | ||
self::EXCLUDED => '外税', | ||
self::INCLUDED => '内税', | ||
}; | ||
} | ||
} |
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
Oops, something went wrong.