Skip to content

Commit 436ac70

Browse files
feat(api): api update
1 parent 8432da5 commit 436ac70

File tree

3 files changed

+38
-36
lines changed

3 files changed

+38
-36
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 234
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-dd0c83cac837fbe98857fa997663b0d0469344a7564bd4fe506e6c71d1d6af73.yml
3-
openapi_spec_hash: 2352f37602105b164533038199b21804
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6157ec57275bc58dca42adf9d0b661f6dcfd725df7593dc453833dfcdcf33a8b.yml
3+
openapi_spec_hash: 0a80ae7882f3d72a333b80efe58ff5ea
44
config_hash: b7ec7f54fa76c1f8bde7a548710a1d38

src/CardPayments/CardPayment/Element/CardAuthentication.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
* denyReason: null|DenyReason|value-of<DenyReason>,
4444
* deviceChannel: DeviceChannel|DeviceChannelShape,
4545
* directoryServerTransactionID: string,
46-
* merchantAcceptorID: string,
47-
* merchantCategoryCode: string,
48-
* merchantCountry: string,
49-
* merchantName: string,
46+
* merchantAcceptorID: string|null,
47+
* merchantCategoryCode: string|null,
48+
* merchantCountry: string|null,
49+
* merchantName: string|null,
5050
* priorCardAuthenticationID: string|null,
5151
* purchaseAmount: int|null,
5252
* purchaseAmountCardholderEstimated: int|null,
@@ -198,25 +198,25 @@ enum: Category::class,
198198
* The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.
199199
*/
200200
#[Required('merchant_acceptor_id')]
201-
public string $merchantAcceptorID;
201+
public ?string $merchantAcceptorID;
202202

203203
/**
204204
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.
205205
*/
206206
#[Required('merchant_category_code')]
207-
public string $merchantCategoryCode;
207+
public ?string $merchantCategoryCode;
208208

209209
/**
210210
* The country the merchant resides in.
211211
*/
212212
#[Required('merchant_country')]
213-
public string $merchantCountry;
213+
public ?string $merchantCountry;
214214

215215
/**
216216
* The name of the merchant.
217217
*/
218218
#[Required('merchant_name')]
219-
public string $merchantName;
219+
public ?string $merchantName;
220220

221221
/**
222222
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
@@ -495,10 +495,10 @@ public static function with(
495495
DenyReason|string|null $denyReason,
496496
DeviceChannel|array $deviceChannel,
497497
string $directoryServerTransactionID,
498-
string $merchantAcceptorID,
499-
string $merchantCategoryCode,
500-
string $merchantCountry,
501-
string $merchantName,
498+
?string $merchantAcceptorID,
499+
?string $merchantCategoryCode,
500+
?string $merchantCountry,
501+
?string $merchantName,
502502
?string $priorCardAuthenticationID,
503503
?int $purchaseAmount,
504504
?int $purchaseAmountCardholderEstimated,
@@ -794,7 +794,7 @@ public function withDirectoryServerTransactionID(
794794
/**
795795
* The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.
796796
*/
797-
public function withMerchantAcceptorID(string $merchantAcceptorID): self
797+
public function withMerchantAcceptorID(?string $merchantAcceptorID): self
798798
{
799799
$self = clone $this;
800800
$self['merchantAcceptorID'] = $merchantAcceptorID;
@@ -805,8 +805,9 @@ public function withMerchantAcceptorID(string $merchantAcceptorID): self
805805
/**
806806
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.
807807
*/
808-
public function withMerchantCategoryCode(string $merchantCategoryCode): self
809-
{
808+
public function withMerchantCategoryCode(
809+
?string $merchantCategoryCode
810+
): self {
810811
$self = clone $this;
811812
$self['merchantCategoryCode'] = $merchantCategoryCode;
812813

@@ -816,7 +817,7 @@ public function withMerchantCategoryCode(string $merchantCategoryCode): self
816817
/**
817818
* The country the merchant resides in.
818819
*/
819-
public function withMerchantCountry(string $merchantCountry): self
820+
public function withMerchantCountry(?string $merchantCountry): self
820821
{
821822
$self = clone $this;
822823
$self['merchantCountry'] = $merchantCountry;
@@ -827,7 +828,7 @@ public function withMerchantCountry(string $merchantCountry): self
827828
/**
828829
* The name of the merchant.
829830
*/
830-
public function withMerchantName(string $merchantName): self
831+
public function withMerchantName(?string $merchantName): self
831832
{
832833
$self = clone $this;
833834
$self['merchantName'] = $merchantName;

src/RealTimeDecisions/RealTimeDecision/CardAuthentication.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
* decision: null|Decision|value-of<Decision>,
3737
* deviceChannel: DeviceChannel|DeviceChannelShape,
3838
* directoryServerTransactionID: string,
39-
* merchantAcceptorID: string,
40-
* merchantCategoryCode: string,
41-
* merchantCountry: string,
42-
* merchantName: string,
39+
* merchantAcceptorID: string|null,
40+
* merchantCategoryCode: string|null,
41+
* merchantCountry: string|null,
42+
* merchantName: string|null,
4343
* priorCardAuthenticationID: string|null,
4444
* purchaseAmount: int|null,
4545
* purchaseAmountCardholderEstimated: int|null,
@@ -171,25 +171,25 @@ enum: Category::class,
171171
* The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.
172172
*/
173173
#[Required('merchant_acceptor_id')]
174-
public string $merchantAcceptorID;
174+
public ?string $merchantAcceptorID;
175175

176176
/**
177177
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.
178178
*/
179179
#[Required('merchant_category_code')]
180-
public string $merchantCategoryCode;
180+
public ?string $merchantCategoryCode;
181181

182182
/**
183183
* The country the merchant resides in.
184184
*/
185185
#[Required('merchant_country')]
186-
public string $merchantCountry;
186+
public ?string $merchantCountry;
187187

188188
/**
189189
* The name of the merchant.
190190
*/
191191
#[Required('merchant_name')]
192-
public string $merchantName;
192+
public ?string $merchantName;
193193

194194
/**
195195
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
@@ -436,10 +436,10 @@ public static function with(
436436
Decision|string|null $decision,
437437
DeviceChannel|array $deviceChannel,
438438
string $directoryServerTransactionID,
439-
string $merchantAcceptorID,
440-
string $merchantCategoryCode,
441-
string $merchantCountry,
442-
string $merchantName,
439+
?string $merchantAcceptorID,
440+
?string $merchantCategoryCode,
441+
?string $merchantCountry,
442+
?string $merchantName,
443443
?string $priorCardAuthenticationID,
444444
?int $purchaseAmount,
445445
?int $purchaseAmountCardholderEstimated,
@@ -693,7 +693,7 @@ public function withDirectoryServerTransactionID(
693693
/**
694694
* The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.
695695
*/
696-
public function withMerchantAcceptorID(string $merchantAcceptorID): self
696+
public function withMerchantAcceptorID(?string $merchantAcceptorID): self
697697
{
698698
$self = clone $this;
699699
$self['merchantAcceptorID'] = $merchantAcceptorID;
@@ -704,8 +704,9 @@ public function withMerchantAcceptorID(string $merchantAcceptorID): self
704704
/**
705705
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.
706706
*/
707-
public function withMerchantCategoryCode(string $merchantCategoryCode): self
708-
{
707+
public function withMerchantCategoryCode(
708+
?string $merchantCategoryCode
709+
): self {
709710
$self = clone $this;
710711
$self['merchantCategoryCode'] = $merchantCategoryCode;
711712

@@ -715,7 +716,7 @@ public function withMerchantCategoryCode(string $merchantCategoryCode): self
715716
/**
716717
* The country the merchant resides in.
717718
*/
718-
public function withMerchantCountry(string $merchantCountry): self
719+
public function withMerchantCountry(?string $merchantCountry): self
719720
{
720721
$self = clone $this;
721722
$self['merchantCountry'] = $merchantCountry;
@@ -726,7 +727,7 @@ public function withMerchantCountry(string $merchantCountry): self
726727
/**
727728
* The name of the merchant.
728729
*/
729-
public function withMerchantName(string $merchantName): self
730+
public function withMerchantName(?string $merchantName): self
730731
{
731732
$self = clone $this;
732733
$self['merchantName'] = $merchantName;

0 commit comments

Comments
 (0)