Skip to content

Commit 588eee8

Browse files
feat(api): api update
1 parent becc1fe commit 588eee8

File tree

5 files changed

+88
-2
lines changed

5 files changed

+88
-2
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: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5ad75c7a80acd1cb3ff0483fa0b5b2eb9d73287f107f53a8fb3a3a0b6a32ed8.yml
3-
openapi_spec_hash: da73faf476df3eddcf0ac51c38dd1b17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-81da26cfd6540bc5195c268095b26df132373e932997f224d19247a36e1a1183.yml
3+
openapi_spec_hash: 7b9bbc35378f2fc47629810923bd0017
44
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

src/CardPushTransfers/CardPushTransfer.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Increase\CardPushTransfers\CardPushTransfer\CreatedBy;
1212
use Increase\CardPushTransfers\CardPushTransfer\Decline;
1313
use Increase\CardPushTransfers\CardPushTransfer\PresentmentAmount;
14+
use Increase\CardPushTransfers\CardPushTransfer\Route;
1415
use Increase\CardPushTransfers\CardPushTransfer\Status;
1516
use Increase\CardPushTransfers\CardPushTransfer\Submission;
1617
use Increase\CardPushTransfers\CardPushTransfer\Type;
@@ -49,6 +50,7 @@
4950
* merchantState: string,
5051
* presentmentAmount: PresentmentAmount|PresentmentAmountShape,
5152
* recipientName: string,
53+
* route: Route|value-of<Route>,
5254
* senderAddressCity: string,
5355
* senderAddressLine1: string,
5456
* senderAddressPostalCode: string,
@@ -184,6 +186,14 @@ enum: BusinessApplicationIdentifier::class,
184186
#[Required('recipient_name')]
185187
public string $recipientName;
186188

189+
/**
190+
* The card network route used for the transfer.
191+
*
192+
* @var value-of<Route> $route
193+
*/
194+
#[Required(enum: Route::class)]
195+
public string $route;
196+
187197
/**
188198
* The city of the sender.
189199
*/
@@ -267,6 +277,7 @@ enum: BusinessApplicationIdentifier::class,
267277
* merchantState: ...,
268278
* presentmentAmount: ...,
269279
* recipientName: ...,
280+
* route: ...,
270281
* senderAddressCity: ...,
271282
* senderAddressLine1: ...,
272283
* senderAddressPostalCode: ...,
@@ -302,6 +313,7 @@ enum: BusinessApplicationIdentifier::class,
302313
* ->withMerchantState(...)
303314
* ->withPresentmentAmount(...)
304315
* ->withRecipientName(...)
316+
* ->withRoute(...)
305317
* ->withSenderAddressCity(...)
306318
* ->withSenderAddressLine1(...)
307319
* ->withSenderAddressPostalCode(...)
@@ -330,6 +342,7 @@ public function __construct()
330342
* @param CreatedBy|CreatedByShape|null $createdBy
331343
* @param Decline|DeclineShape|null $decline
332344
* @param PresentmentAmount|PresentmentAmountShape $presentmentAmount
345+
* @param Route|value-of<Route> $route
333346
* @param Status|value-of<Status> $status
334347
* @param Submission|SubmissionShape|null $submission
335348
* @param Type|value-of<Type> $type
@@ -354,6 +367,7 @@ public static function with(
354367
string $merchantState,
355368
PresentmentAmount|array $presentmentAmount,
356369
string $recipientName,
370+
Route|string $route,
357371
string $senderAddressCity,
358372
string $senderAddressLine1,
359373
string $senderAddressPostalCode,
@@ -385,6 +399,7 @@ public static function with(
385399
$self['merchantState'] = $merchantState;
386400
$self['presentmentAmount'] = $presentmentAmount;
387401
$self['recipientName'] = $recipientName;
402+
$self['route'] = $route;
388403
$self['senderAddressCity'] = $senderAddressCity;
389404
$self['senderAddressLine1'] = $senderAddressLine1;
390405
$self['senderAddressPostalCode'] = $senderAddressPostalCode;
@@ -624,6 +639,19 @@ public function withRecipientName(string $recipientName): self
624639
return $self;
625640
}
626641

642+
/**
643+
* The card network route used for the transfer.
644+
*
645+
* @param Route|value-of<Route> $route
646+
*/
647+
public function withRoute(Route|string $route): self
648+
{
649+
$self = clone $this;
650+
$self['route'] = $route;
651+
652+
return $self;
653+
}
654+
627655
/**
628656
* The city of the sender.
629657
*/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Increase\CardPushTransfers\CardPushTransfer;
6+
7+
/**
8+
* The card network route used for the transfer.
9+
*/
10+
enum Route: string
11+
{
12+
case VISA = 'visa';
13+
14+
case MASTERCARD = 'mastercard';
15+
}

src/CardValidations/CardValidation.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Increase\CardValidations\CardValidation\Acceptance;
88
use Increase\CardValidations\CardValidation\CreatedBy;
99
use Increase\CardValidations\CardValidation\Decline;
10+
use Increase\CardValidations\CardValidation\Route;
1011
use Increase\CardValidations\CardValidation\Status;
1112
use Increase\CardValidations\CardValidation\Submission;
1213
use Increase\CardValidations\CardValidation\Type;
@@ -41,6 +42,7 @@
4142
* merchantName: string,
4243
* merchantPostalCode: string,
4344
* merchantState: string,
45+
* route: Route|value-of<Route>,
4446
* status: Status|value-of<Status>,
4547
* submission: null|Submission|SubmissionShape,
4648
* type: Type|value-of<Type>,
@@ -159,6 +161,14 @@ final class CardValidation implements BaseModel
159161
#[Required('merchant_state')]
160162
public string $merchantState;
161163

164+
/**
165+
* The card network route used for the validation.
166+
*
167+
* @var value-of<Route> $route
168+
*/
169+
#[Required(enum: Route::class)]
170+
public string $route;
171+
162172
/**
163173
* The lifecycle status of the validation.
164174
*
@@ -205,6 +215,7 @@ final class CardValidation implements BaseModel
205215
* merchantName: ...,
206216
* merchantPostalCode: ...,
207217
* merchantState: ...,
218+
* route: ...,
208219
* status: ...,
209220
* submission: ...,
210221
* type: ...,
@@ -233,6 +244,7 @@ final class CardValidation implements BaseModel
233244
* ->withMerchantName(...)
234245
* ->withMerchantPostalCode(...)
235246
* ->withMerchantState(...)
247+
* ->withRoute(...)
236248
* ->withStatus(...)
237249
* ->withSubmission(...)
238250
* ->withType(...)
@@ -251,6 +263,7 @@ public function __construct()
251263
* @param Acceptance|AcceptanceShape|null $acceptance
252264
* @param CreatedBy|CreatedByShape|null $createdBy
253265
* @param Decline|DeclineShape|null $decline
266+
* @param Route|value-of<Route> $route
254267
* @param Status|value-of<Status> $status
255268
* @param Submission|SubmissionShape|null $submission
256269
* @param Type|value-of<Type> $type
@@ -274,6 +287,7 @@ public static function with(
274287
string $merchantName,
275288
string $merchantPostalCode,
276289
string $merchantState,
290+
Route|string $route,
277291
Status|string $status,
278292
Submission|array|null $submission,
279293
Type|string $type,
@@ -298,6 +312,7 @@ public static function with(
298312
$self['merchantName'] = $merchantName;
299313
$self['merchantPostalCode'] = $merchantPostalCode;
300314
$self['merchantState'] = $merchantState;
315+
$self['route'] = $route;
301316
$self['status'] = $status;
302317
$self['submission'] = $submission;
303318
$self['type'] = $type;
@@ -512,6 +527,19 @@ public function withMerchantState(string $merchantState): self
512527
return $self;
513528
}
514529

530+
/**
531+
* The card network route used for the validation.
532+
*
533+
* @param Route|value-of<Route> $route
534+
*/
535+
public function withRoute(Route|string $route): self
536+
{
537+
$self = clone $this;
538+
$self['route'] = $route;
539+
540+
return $self;
541+
}
542+
515543
/**
516544
* The lifecycle status of the validation.
517545
*
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Increase\CardValidations\CardValidation;
6+
7+
/**
8+
* The card network route used for the validation.
9+
*/
10+
enum Route: string
11+
{
12+
case VISA = 'visa';
13+
14+
case MASTERCARD = 'mastercard';
15+
}

0 commit comments

Comments
 (0)