Skip to content

Commit ab49d5d

Browse files
chore: adjusted nullable syntax, made params camelCase
1 parent 22e624e commit ab49d5d

71 files changed

Lines changed: 388 additions & 373 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ interface OrderInterface
166166
function getLineItems(): array;
167167

168168
/**
169-
* @param OrderLineItemInterface[] $line_items
169+
* @param OrderLineItemInterface[] $lineItems
170170
* @return self
171171
*/
172-
function setLineItems(array $line_items): self;
172+
function setLineItems(array $lineItems): self;
173173

174174
/**
175175
* @return AdjustmentInterface[]|null
@@ -180,7 +180,7 @@ interface OrderInterface
180180
* @param AdjustmentInterface[]|null $adjustments
181181
* @return self
182182
*/
183-
function setAdjustments(array|null $adjustments): self;
183+
function setAdjustments(?array $adjustments): self;
184184
}
185185
```
186186

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public function setUcp(UcpDiscoveryProfileInterface1 $ucp): self;
5252
* @param UCPDiscoveryProfilePaymentInterface|null $payment
5353
* @return self
5454
*/
55-
public function setPayment(UCPDiscoveryProfilePaymentInterface|null $payment): self;
55+
public function setPayment(?UCPDiscoveryProfilePaymentInterface $payment): self;
5656

5757
/**
5858
* Public keys for signature verification (JWK format). Used to verify signed responses, webhooks, and other authenticated messages from this party.
5959
*
60-
* @param UCPDiscoveryProfileSigningKeysItemInterface[]|null $signing_keys
60+
* @param UCPDiscoveryProfileSigningKeysItemInterface[]|null $signingKeys
6161
* @return self
6262
*/
63-
public function setSigningKeys(array|null $signing_keys): self;
63+
public function setSigningKeys(?array $signingKeys): self;
6464
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ public function getHandlers(): array|null;
3232
* @param PaymentHandlerResponseInterface[]|null $handlers
3333
* @return self
3434
*/
35-
public function setHandlers(array|null $handlers): self;
35+
public function setHandlers(?array $handlers): self;
3636
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,53 +102,53 @@ public function setKty(string $kty): self;
102102
* @param string|null $crv
103103
* @return self
104104
*/
105-
public function setCrv(string|null $crv): self;
105+
public function setCrv(?string $crv): self;
106106

107107
/**
108108
* X coordinate for EC public keys (base64url encoded).
109109
*
110110
* @param string|null $x
111111
* @return self
112112
*/
113-
public function setX(string|null $x): self;
113+
public function setX(?string $x): self;
114114

115115
/**
116116
* Y coordinate for EC public keys (base64url encoded).
117117
*
118118
* @param string|null $y
119119
* @return self
120120
*/
121-
public function setY(string|null $y): self;
121+
public function setY(?string $y): self;
122122

123123
/**
124124
* Modulus for RSA public keys (base64url encoded).
125125
*
126126
* @param string|null $n
127127
* @return self
128128
*/
129-
public function setN(string|null $n): self;
129+
public function setN(?string $n): self;
130130

131131
/**
132132
* Exponent for RSA public keys (base64url encoded).
133133
*
134134
* @param string|null $e
135135
* @return self
136136
*/
137-
public function setE(string|null $e): self;
137+
public function setE(?string $e): self;
138138

139139
/**
140140
* Key usage. Should be 'sig' for signing keys.
141141
*
142142
* @param string|null $use
143143
* @return self
144144
*/
145-
public function setUse(string|null $use): self;
145+
public function setUse(?string $use): self;
146146

147147
/**
148148
* Algorithm (e.g., 'ES256', 'RS256').
149149
*
150150
* @param string|null $alg
151151
* @return self
152152
*/
153-
public function setAlg(string|null $alg): self;
153+
public function setAlg(?string $alg): self;
154154
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,45 +62,45 @@ public function getConfig(): object|null;
6262
* @param string|null $name
6363
* @return self
6464
*/
65-
public function setName(string|null $name): self;
65+
public function setName(?string $name): self;
6666

6767
/**
6868
* Capability version in YYYY-MM-DD format.
6969
*
7070
* @param string|null $version
7171
* @return self
7272
*/
73-
public function setVersion(string|null $version): self;
73+
public function setVersion(?string $version): self;
7474

7575
/**
7676
* URL to human-readable specification document.
7777
*
7878
* @param string|null $spec
7979
* @return self
8080
*/
81-
public function setSpec(string|null $spec): self;
81+
public function setSpec(?string $spec): self;
8282

8383
/**
8484
* URL to JSON Schema for this capability's payload.
8585
*
8686
* @param string|null $schema
8787
* @return self
8888
*/
89-
public function setSchema(string|null $schema): self;
89+
public function setSchema(?string $schema): self;
9090

9191
/**
9292
* Parent capability this extends. Present for extensions, absent for root capabilities.
9393
*
9494
* @param string|null $extends
9595
* @return self
9696
*/
97-
public function setExtends(string|null $extends): self;
97+
public function setExtends(?string $extends): self;
9898

9999
/**
100100
* Capability-specific configuration (structure defined by each capability).
101101
*
102102
* @param object|null $config
103103
* @return self
104104
*/
105-
public function setConfig(object|null $config): self;
105+
public function setConfig(?object $config): self;
106106
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ public function setSchema(string $schema): self;
9999
* @param string|null $extends
100100
* @return self
101101
*/
102-
public function setExtends(string|null $extends): self;
102+
public function setExtends(?string $extends): self;
103103

104104
/**
105105
* Capability-specific configuration (structure defined by each capability).
106106
*
107107
* @param object|null $config
108108
* @return self
109109
*/
110-
public function setConfig(object|null $config): self;
110+
public function setConfig(?object $config): self;
111111
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,29 @@ public function setVersion(string $version): self;
8383
* @param string|null $spec
8484
* @return self
8585
*/
86-
public function setSpec(string|null $spec): self;
86+
public function setSpec(?string $spec): self;
8787

8888
/**
8989
* URL to JSON Schema for this capability's payload.
9090
*
9191
* @param string|null $schema
9292
* @return self
9393
*/
94-
public function setSchema(string|null $schema): self;
94+
public function setSchema(?string $schema): self;
9595

9696
/**
9797
* Parent capability this extends. Present for extensions, absent for root capabilities.
9898
*
9999
* @param string|null $extends
100100
* @return self
101101
*/
102-
public function setExtends(string|null $extends): self;
102+
public function setExtends(?string $extends): self;
103103

104104
/**
105105
* Capability-specific configuration (structure defined by each capability).
106106
*
107107
* @param object|null $config
108108
* @return self
109109
*/
110-
public function setConfig(object|null $config): self;
110+
public function setConfig(?object $config): self;
111111
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function getMerchantAuthorization(): string;
2929
/**
3030
* Merchant's signature proving checkout terms are authentic.
3131
*
32-
* @param string $merchant_authorization
32+
* @param string $merchantAuthorization
3333
* @return self
3434
*/
35-
public function setMerchantAuthorization(string $merchant_authorization): self;
35+
public function setMerchantAuthorization(string $merchantAuthorization): self;
3636
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function getCheckoutMandate(): string;
2929
/**
3030
* SD-JWT+kb proving user authorized this checkout.
3131
*
32-
* @param string $checkout_mandate
32+
* @param string $checkoutMandate
3333
* @return self
3434
*/
35-
public function setCheckoutMandate(string $checkout_mandate): self;
35+
public function setCheckoutMandate(string $checkoutMandate): self;
3636
}

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,18 @@ public function setId(string $id): self;
145145
/**
146146
* List of line items being checked out.
147147
*
148-
* @param LineItemResponseInterface[] $line_items
148+
* @param LineItemResponseInterface[] $lineItems
149149
* @return self
150150
*/
151-
public function setLineItems(array $line_items): self;
151+
public function setLineItems(array $lineItems): self;
152152

153153
/**
154154
* Representation of the buyer.
155155
*
156156
* @param BuyerInterface|null $buyer
157157
* @return self
158158
*/
159-
public function setBuyer(BuyerInterface|null $buyer): self;
159+
public function setBuyer(?BuyerInterface $buyer): self;
160160

161161
/**
162162
* Checkout state indicating the current phase and required action. See Checkout Status lifecycle documentation for state transition details.
@@ -188,7 +188,7 @@ public function setTotals(array $totals): self;
188188
* @param MessageInterface[]|null $messages
189189
* @return self
190190
*/
191-
public function setMessages(array|null $messages): self;
191+
public function setMessages(?array $messages): self;
192192

193193
/**
194194
* Links to be displayed by the platform (Privacy Policy, TOS). Mandatory for legal compliance.
@@ -201,18 +201,18 @@ public function setLinks(array $links): self;
201201
/**
202202
* RFC 3339 expiry timestamp. Default TTL is 6 hours from creation if not sent.
203203
*
204-
* @param string|null $expires_at
204+
* @param string|null $expiresAt
205205
* @return self
206206
*/
207-
public function setExpiresAt(string|null $expires_at): self;
207+
public function setExpiresAt(?string $expiresAt): self;
208208

209209
/**
210210
* URL for checkout handoff and session recovery. MUST be provided when status is requires_escalation. See specification for format and availability requirements.
211211
*
212-
* @param string|null $continue_url
212+
* @param string|null $continueUrl
213213
* @return self
214214
*/
215-
public function setContinueUrl(string|null $continue_url): self;
215+
public function setContinueUrl(?string $continueUrl): self;
216216

217217
/**
218218
* @param PaymentResponseInterface $payment
@@ -226,13 +226,13 @@ public function setPayment(PaymentResponseInterface $payment): self;
226226
* @param OrderConfirmationInterface|null $order
227227
* @return self
228228
*/
229-
public function setOrder(OrderConfirmationInterface|null $order): self;
229+
public function setOrder(?OrderConfirmationInterface $order): self;
230230

231231
/**
232232
* AP2 extension data including merchant authorization.
233233
*
234234
* @param Ap2MandateAp2CheckoutResponseInterface|null $ap2
235235
* @return self
236236
*/
237-
public function setAp2(Ap2MandateAp2CheckoutResponseInterface|null $ap2): self;
237+
public function setAp2(?Ap2MandateAp2CheckoutResponseInterface $ap2): self;
238238
}

0 commit comments

Comments
 (0)