Skip to content

Commit 3468f46

Browse files
feat: generate enum constants
1 parent 4d2a876 commit 3468f46

18 files changed

Lines changed: 131 additions & 0 deletions

generated/Magebit/UcpSpec/Discovery/UCPDiscoveryProfileSigningKeysItem.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
interface UCPDiscoveryProfileSigningKeysItem
1616
{
17+
public const USE_SIG = 'sig';
18+
public const USE_ENC = 'enc';
19+
1720
/**
1821
* Key ID. Referenced in signature headers to identify which key to use for verification.
1922
*

generated/Magebit/UcpSpec/Schemas/Shopping/Ap2MandateCheckoutResponseWithAp2.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
*/
2828
interface Ap2MandateCheckoutResponseWithAp2
2929
{
30+
public const STATUS_INCOMPLETE = 'incomplete';
31+
public const STATUS_REQUIRES_ESCALATION = 'requires_escalation';
32+
public const STATUS_READY_FOR_COMPLETE = 'ready_for_complete';
33+
public const STATUS_COMPLETE_IN_PROGRESS = 'complete_in_progress';
34+
public const STATUS_COMPLETED = 'completed';
35+
public const STATUS_CANCELED = 'canceled';
36+
3037
/**
3138
* @return UcpResponseCheckout
3239
*/

generated/Magebit/UcpSpec/Schemas/Shopping/CheckoutResponse.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
*/
2828
interface CheckoutResponse
2929
{
30+
public const STATUS_INCOMPLETE = 'incomplete';
31+
public const STATUS_REQUIRES_ESCALATION = 'requires_escalation';
32+
public const STATUS_READY_FOR_COMPLETE = 'ready_for_complete';
33+
public const STATUS_COMPLETE_IN_PROGRESS = 'complete_in_progress';
34+
public const STATUS_COMPLETED = 'completed';
35+
public const STATUS_CANCELED = 'canceled';
36+
3037
/**
3138
* @return UcpResponseCheckout
3239
*/

generated/Magebit/UcpSpec/Schemas/Shopping/DiscountAppliedDiscount.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
interface DiscountAppliedDiscount
1919
{
20+
public const METHOD_EACH = 'each';
21+
public const METHOD_ACROSS = 'across';
22+
2023
/**
2124
* The discount code. Omitted for automatic discounts.
2225
*

generated/Magebit/UcpSpec/Schemas/Shopping/DiscountCheckout.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
*/
2828
interface DiscountCheckout
2929
{
30+
public const STATUS_INCOMPLETE = 'incomplete';
31+
public const STATUS_REQUIRES_ESCALATION = 'requires_escalation';
32+
public const STATUS_READY_FOR_COMPLETE = 'ready_for_complete';
33+
public const STATUS_COMPLETE_IN_PROGRESS = 'complete_in_progress';
34+
public const STATUS_COMPLETED = 'completed';
35+
public const STATUS_CANCELED = 'canceled';
36+
3037
/**
3138
* @return UcpResponseCheckout
3239
*/

generated/Magebit/UcpSpec/Schemas/Shopping/Types/Adjustment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
*/
1818
interface Adjustment
1919
{
20+
public const STATUS_PENDING = 'pending';
21+
public const STATUS_COMPLETED = 'completed';
22+
public const STATUS_FAILED = 'failed';
23+
2024
/**
2125
* Adjustment event identifier.
2226
*

generated/Magebit/UcpSpec/Schemas/Shopping/Types/CardCredential.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
*/
2020
interface CardCredential
2121
{
22+
public const CARD_NUMBER_TYPE_FPAN = 'fpan';
23+
public const CARD_NUMBER_TYPE_NETWORK_TOKEN = 'network_token';
24+
public const CARD_NUMBER_TYPE_DPAN = 'dpan';
25+
2226
/**
2327
* The credential type identifier for card credentials.
2428
*

generated/Magebit/UcpSpec/Schemas/Shopping/Types/Expectation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
*/
1818
interface Expectation
1919
{
20+
public const METHOD_TYPE_SHIPPING = 'shipping';
21+
public const METHOD_TYPE_PICKUP = 'pickup';
22+
public const METHOD_TYPE_DIGITAL = 'digital';
23+
2024
/**
2125
* Expectation identifier.
2226
*

generated/Magebit/UcpSpec/Schemas/Shopping/Types/FulfillmentAvailableMethodResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
interface FulfillmentAvailableMethodResponse
2121
{
22+
public const TYPE_SHIPPING = 'shipping';
23+
public const TYPE_PICKUP = 'pickup';
24+
2225
/**
2326
* Fulfillment method type this availability applies to.
2427
*

generated/Magebit/UcpSpec/Schemas/Shopping/Types/FulfillmentMethodCreateRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
interface FulfillmentMethodCreateRequest
2121
{
22+
public const TYPE_SHIPPING = 'shipping';
23+
public const TYPE_PICKUP = 'pickup';
24+
2225
/**
2326
* Fulfillment method type.
2427
*

0 commit comments

Comments
 (0)