Skip to content

Commit 987388f

Browse files
feat: property key constants
1 parent fdbb106 commit 987388f

181 files changed

Lines changed: 1008 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

generated/Magebit/UcpSpec/Api/Discovery/UCPDiscoveryProfileInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
*/
2222
interface UCPDiscoveryProfileInterface
2323
{
24+
public const KEY_UCP = 'ucp';
25+
public const KEY_PAYMENT = 'payment';
26+
public const KEY_SIGNING_KEYS = 'signing_keys';
27+
2428
/**
2529
* @return UcpDiscoveryProfileInterface
2630
*/

generated/Magebit/UcpSpec/Api/Discovery/UCPDiscoveryProfilePaymentInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
interface UCPDiscoveryProfilePaymentInterface
2121
{
22+
public const KEY_HANDLERS = 'handlers';
23+
2224
/**
2325
* Payment handler definitions that describe how instruments can be collected
2426
*

generated/Magebit/UcpSpec/Api/Discovery/UCPDiscoveryProfileSigningKeysItemInterface.php

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

1515
interface UCPDiscoveryProfileSigningKeysItemInterface
1616
{
17+
public const KEY_KID = 'kid';
18+
public const KEY_KTY = 'kty';
19+
public const KEY_CRV = 'crv';
20+
public const KEY_X = 'x';
21+
public const KEY_Y = 'y';
22+
public const KEY_N = 'n';
23+
public const KEY_E = 'e';
24+
public const KEY_USE = 'use';
25+
public const KEY_ALG = 'alg';
1726
public const USE_SIG = 'sig';
1827
public const USE_ENC = 'enc';
1928

generated/Magebit/UcpSpec/Api/Schemas/CapabilityBaseInterface.php

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

1515
interface CapabilityBaseInterface
1616
{
17+
public const KEY_NAME = 'name';
18+
public const KEY_VERSION = 'version';
19+
public const KEY_SPEC = 'spec';
20+
public const KEY_SCHEMA = 'schema';
21+
public const KEY_EXTENDS = 'extends';
22+
public const KEY_CONFIG = 'config';
23+
1724
/**
1825
* Stable capability identifier in reverse-domain notation (e.g., dev.ucp.shopping.checkout). Used in capability negotiation.
1926
*

generated/Magebit/UcpSpec/Api/Schemas/CapabilityDiscoveryInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
*/
2020
interface CapabilityDiscoveryInterface
2121
{
22+
public const KEY_NAME = 'name';
23+
public const KEY_VERSION = 'version';
24+
public const KEY_SPEC = 'spec';
25+
public const KEY_SCHEMA = 'schema';
26+
public const KEY_EXTENDS = 'extends';
27+
public const KEY_CONFIG = 'config';
28+
2229
/**
2330
* Stable capability identifier in reverse-domain notation (e.g., dev.ucp.shopping.checkout). Used in capability negotiation.
2431
*

generated/Magebit/UcpSpec/Api/Schemas/CapabilityResponseInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
*/
2020
interface CapabilityResponseInterface
2121
{
22+
public const KEY_NAME = 'name';
23+
public const KEY_VERSION = 'version';
24+
public const KEY_SPEC = 'spec';
25+
public const KEY_SCHEMA = 'schema';
26+
public const KEY_EXTENDS = 'extends';
27+
public const KEY_CONFIG = 'config';
28+
2229
/**
2330
* Stable capability identifier in reverse-domain notation (e.g., dev.ucp.shopping.checkout). Used in capability negotiation.
2431
*

generated/Magebit/UcpSpec/Api/Schemas/Shopping/Ap2MandateAp2CheckoutResponseInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
interface Ap2MandateAp2CheckoutResponseInterface
2121
{
22+
public const KEY_MERCHANT_AUTHORIZATION = 'merchant_authorization';
23+
2224
/**
2325
* Merchant's signature proving checkout terms are authentic.
2426
*

generated/Magebit/UcpSpec/Api/Schemas/Shopping/Ap2MandateAp2CompleteRequestInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
interface Ap2MandateAp2CompleteRequestInterface
2121
{
22+
public const KEY_CHECKOUT_MANDATE = 'checkout_mandate';
23+
2224
/**
2325
* SD-JWT+kb proving user authorized this checkout.
2426
*

generated/Magebit/UcpSpec/Api/Schemas/Shopping/Ap2MandateCheckoutResponseWithAp2Interface.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@
2727
*/
2828
interface Ap2MandateCheckoutResponseWithAp2Interface
2929
{
30+
public const KEY_UCP = 'ucp';
31+
public const KEY_ID = 'id';
32+
public const KEY_LINE_ITEMS = 'line_items';
33+
public const KEY_BUYER = 'buyer';
34+
public const KEY_STATUS = 'status';
35+
public const KEY_CURRENCY = 'currency';
36+
public const KEY_TOTALS = 'totals';
37+
public const KEY_MESSAGES = 'messages';
38+
public const KEY_LINKS = 'links';
39+
public const KEY_EXPIRES_AT = 'expires_at';
40+
public const KEY_CONTINUE_URL = 'continue_url';
41+
public const KEY_PAYMENT = 'payment';
42+
public const KEY_ORDER = 'order';
43+
public const KEY_AP2 = 'ap2';
3044
public const STATUS_INCOMPLETE = 'incomplete';
3145
public const STATUS_REQUIRES_ESCALATION = 'requires_escalation';
3246
public const STATUS_READY_FOR_COMPLETE = 'ready_for_complete';

generated/Magebit/UcpSpec/Api/Schemas/Shopping/Ap2MandateCompleteRequestWithAp2Interface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
interface Ap2MandateCompleteRequestWithAp2Interface
2121
{
22+
public const KEY_AP2 = 'ap2';
23+
2224
/**
2325
* AP2 extension data including checkout mandate.
2426
*

0 commit comments

Comments
 (0)