Skip to content

Commit 5b7e7f4

Browse files
feat(api): manual updates
1 parent 1d4888a commit 5b7e7f4

15 files changed

+168
-154
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-38aaadafbb2bf0c5d5bb9330a0a5e7a89052fe3e791569c8a12051e040193edf.yml
33
openapi_spec_hash: 2d35c1223beebaf2c1b8d8a474cbf7c2
4-
config_hash: 17e6614cece9c3c0bd77591c75fd4351
4+
config_hash: ad652575976c2c8db09e4575778f0e77

src/Profiles/BrandsBrandData.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,18 @@
88
use SentDm\Core\Attributes\Required;
99
use SentDm\Core\Concerns\SdkModel;
1010
use SentDm\Core\Contracts\BaseModel;
11-
use SentDm\Profiles\BrandsBrandData\Business;
12-
use SentDm\Profiles\BrandsBrandData\Compliance;
13-
use SentDm\Profiles\BrandsBrandData\Contact;
1411

1512
/**
1613
* Brand and KYC data grouped into contact, business, and compliance sections.
1714
*
18-
* @phpstan-import-type ComplianceShape from \SentDm\Profiles\BrandsBrandData\Compliance
19-
* @phpstan-import-type ContactShape from \SentDm\Profiles\BrandsBrandData\Contact
20-
* @phpstan-import-type BusinessShape from \SentDm\Profiles\BrandsBrandData\Business
15+
* @phpstan-import-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape from \SentDm\Profiles\SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
16+
* @phpstan-import-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfoShape from \SentDm\Profiles\SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
17+
* @phpstan-import-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape from \SentDm\Profiles\SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
2118
*
2219
* @phpstan-type BrandsBrandDataShape = array{
23-
* compliance: Compliance|ComplianceShape,
24-
* contact: Contact|ContactShape,
25-
* business?: null|Business|BusinessShape,
20+
* compliance: SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape,
21+
* contact: SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfoShape,
22+
* business?: null|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape,
2623
* }
2724
*/
2825
final class BrandsBrandData implements BaseModel
@@ -34,19 +31,19 @@ final class BrandsBrandData implements BaseModel
3431
* Compliance and TCR-related information.
3532
*/
3633
#[Required]
37-
public Compliance $compliance;
34+
public SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo $compliance;
3835

3936
/**
4037
* Contact information for the brand.
4138
*/
4239
#[Required]
43-
public Contact $contact;
40+
public SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo $contact;
4441

4542
/**
4643
* Business details and address information.
4744
*/
4845
#[Optional(nullable: true)]
49-
public ?Business $business;
46+
public ?SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo $business;
5047

5148
/**
5249
* `new BrandsBrandData()` is missing required properties by the API.
@@ -72,14 +69,14 @@ public function __construct()
7269
*
7370
* You must use named parameters to construct any parameters with a default value.
7471
*
75-
* @param Compliance|ComplianceShape $compliance
76-
* @param Contact|ContactShape $contact
77-
* @param Business|BusinessShape|null $business
72+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape $compliance
73+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfoShape $contact
74+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape|null $business
7875
*/
7976
public static function with(
80-
Compliance|array $compliance,
81-
Contact|array $contact,
82-
Business|array|null $business = null,
77+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo|array $compliance,
78+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo|array $contact,
79+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo|array|null $business = null,
8380
): self {
8481
$self = new self;
8582

@@ -94,10 +91,11 @@ public static function with(
9491
/**
9592
* Compliance and TCR-related information.
9693
*
97-
* @param Compliance|ComplianceShape $compliance
94+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape $compliance
9895
*/
99-
public function withCompliance(Compliance|array $compliance): self
100-
{
96+
public function withCompliance(
97+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo|array $compliance,
98+
): self {
10199
$self = clone $this;
102100
$self['compliance'] = $compliance;
103101

@@ -107,10 +105,11 @@ public function withCompliance(Compliance|array $compliance): self
107105
/**
108106
* Contact information for the brand.
109107
*
110-
* @param Contact|ContactShape $contact
108+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfoShape $contact
111109
*/
112-
public function withContact(Contact|array $contact): self
113-
{
110+
public function withContact(
111+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo|array $contact,
112+
): self {
114113
$self = clone $this;
115114
$self['contact'] = $contact;
116115

@@ -120,10 +119,11 @@ public function withContact(Contact|array $contact): self
120119
/**
121120
* Business details and address information.
122121
*
123-
* @param Business|BusinessShape|null $business
122+
* @param SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo|SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape|null $business
124123
*/
125-
public function withBusiness(Business|array|null $business): self
126-
{
124+
public function withBusiness(
125+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo|array|null $business,
126+
): self {
127127
$self = clone $this;
128128
$self['business'] = $business;
129129

src/Profiles/Campaigns/CampaignData.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@
88
use SentDm\Core\Attributes\Required;
99
use SentDm\Core\Concerns\SdkModel;
1010
use SentDm\Core\Contracts\BaseModel;
11-
use SentDm\Profiles\Campaigns\CampaignData\UseCase;
1211

1312
/**
1413
* Campaign data for create or update operation.
1514
*
16-
* @phpstan-import-type UseCaseShape from \SentDm\Profiles\Campaigns\CampaignData\UseCase
15+
* @phpstan-import-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape from \SentDm\Profiles\Campaigns\SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData
1716
*
1817
* @phpstan-type CampaignDataShape = array{
1918
* description: string,
2019
* name: string,
2120
* type: string,
22-
* useCases: list<UseCase|UseCaseShape>,
21+
* useCases: list<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData|SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape>,
2322
* helpKeywords?: string|null,
2423
* helpMessage?: string|null,
2524
* messageFlow?: string|null,
@@ -57,9 +56,11 @@ final class CampaignData implements BaseModel
5756
/**
5857
* List of use cases with sample messages.
5958
*
60-
* @var list<UseCase> $useCases
59+
* @var list<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData> $useCases
6160
*/
62-
#[Required(list: UseCase::class)]
61+
#[Required(
62+
list: SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData::class,
63+
)]
6364
public array $useCases;
6465

6566
/**
@@ -144,7 +145,7 @@ public function __construct()
144145
*
145146
* You must use named parameters to construct any parameters with a default value.
146147
*
147-
* @param list<UseCase|UseCaseShape> $useCases
148+
* @param list<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData|SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape> $useCases
148149
*/
149150
public static function with(
150151
string $description,
@@ -217,7 +218,7 @@ public function withType(string $type): self
217218
/**
218219
* List of use cases with sample messages.
219220
*
220-
* @param list<UseCase|UseCaseShape> $useCases
221+
* @param list<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData|SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape> $useCases
221222
*/
222223
public function withUseCases(array $useCases): self
223224
{

src/Profiles/Campaigns/CampaignData/UseCase.php renamed to src/Profiles/Campaigns/SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22

33
declare(strict_types=1);
44

5-
namespace SentDm\Profiles\Campaigns\CampaignData;
5+
namespace SentDm\Profiles\Campaigns;
66

77
use SentDm\Core\Attributes\Required;
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
10-
use SentDm\Profiles\Campaigns\MessagingUseCaseUs;
1110

1211
/**
1312
* Campaign use case with sample messages.
1413
*
15-
* @phpstan-type UseCaseShape = array{
14+
* @phpstan-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape = array{
1615
* messagingUseCaseUs: MessagingUseCaseUs|value-of<MessagingUseCaseUs>,
1716
* sampleMessages: list<string>,
1817
* }
1918
*/
20-
final class UseCase implements BaseModel
19+
final class SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData implements BaseModel
2120
{
22-
/** @use SdkModel<UseCaseShape> */
21+
/**
22+
* @use SdkModel<SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseDataShape>
23+
*/
2324
use SdkModel;
2425

2526
/**
@@ -39,17 +40,21 @@ final class UseCase implements BaseModel
3940
public array $sampleMessages;
4041

4142
/**
42-
* `new UseCase()` is missing required properties by the API.
43+
* `new SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData()` is missing required properties by the API.
4344
*
4445
* To enforce required parameters use
4546
* ```
46-
* UseCase::with(messagingUseCaseUs: ..., sampleMessages: ...)
47+
* SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData::with(
48+
* messagingUseCaseUs: ..., sampleMessages: ...
49+
* )
4750
* ```
4851
*
4952
* Otherwise ensure the following setters are called
5053
*
5154
* ```
52-
* (new UseCase)->withMessagingUseCaseUs(...)->withSampleMessages(...)
55+
* (new SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData)
56+
* ->withMessagingUseCaseUs(...)
57+
* ->withSampleMessages(...)
5358
* ```
5459
*/
5560
public function __construct()

src/Profiles/BrandsBrandData/Business.php renamed to src/Profiles/SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
declare(strict_types=1);
44

5-
namespace SentDm\Profiles\BrandsBrandData;
5+
namespace SentDm\Profiles;
66

77
use SentDm\Core\Attributes\Optional;
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
10-
use SentDm\Profiles\BrandsBrandData\Business\EntityType;
10+
use SentDm\Profiles\SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo\EntityType;
1111

1212
/**
13-
* Business details and address information.
13+
* Business details and address for brand KYC.
1414
*
15-
* @phpstan-type BusinessShape = array{
15+
* @phpstan-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape = array{
1616
* city?: string|null,
1717
* country?: string|null,
1818
* countryOfRegistration?: string|null,
@@ -26,9 +26,11 @@
2626
* url?: string|null,
2727
* }
2828
*/
29-
final class Business implements BaseModel
29+
final class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo implements BaseModel
3030
{
31-
/** @use SdkModel<BusinessShape> */
31+
/**
32+
* @use SdkModel<SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfoShape>
33+
*/
3234
use SdkModel;
3335

3436
/**

src/Profiles/BrandsBrandData/Business/EntityType.php renamed to src/Profiles/SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo/EntityType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace SentDm\Profiles\BrandsBrandData\Business;
5+
namespace SentDm\Profiles\SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo;
66

77
/**
88
* Business entity type.

src/Profiles/BrandsBrandData/Compliance.php renamed to src/Profiles/SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22

33
declare(strict_types=1);
44

5-
namespace SentDm\Profiles\BrandsBrandData;
5+
namespace SentDm\Profiles;
66

77
use SentDm\Core\Attributes\Optional;
88
use SentDm\Core\Attributes\Required;
99
use SentDm\Core\Concerns\SdkModel;
1010
use SentDm\Core\Contracts\BaseModel;
11-
use SentDm\Profiles\DestinationCountry;
12-
use SentDm\Profiles\TcrBrandRelationship;
13-
use SentDm\Profiles\TcrVertical;
1411

1512
/**
16-
* Compliance and TCR-related information.
13+
* Compliance and TCR information for brand registration.
1714
*
1815
* @phpstan-import-type DestinationCountryShape from \SentDm\Profiles\DestinationCountry
1916
*
20-
* @phpstan-type ComplianceShape = array{
17+
* @phpstan-type SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape = array{
2118
* brandRelationship: TcrBrandRelationship|value-of<TcrBrandRelationship>,
2219
* vertical: TcrVertical|value-of<TcrVertical>,
2320
* destinationCountries?: list<DestinationCountry|DestinationCountryShape>|null,
@@ -28,9 +25,11 @@
2825
* primaryUseCase?: string|null,
2926
* }
3027
*/
31-
final class Compliance implements BaseModel
28+
final class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo implements BaseModel
3229
{
33-
/** @use SdkModel<ComplianceShape> */
30+
/**
31+
* @use SdkModel<SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfoShape>
32+
*/
3433
use SdkModel;
3534

3635
/**
@@ -88,17 +87,21 @@ final class Compliance implements BaseModel
8887
public ?string $primaryUseCase;
8988

9089
/**
91-
* `new Compliance()` is missing required properties by the API.
90+
* `new SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo()` is missing required properties by the API.
9291
*
9392
* To enforce required parameters use
9493
* ```
95-
* Compliance::with(brandRelationship: ..., vertical: ...)
94+
* SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo::with(
95+
* brandRelationship: ..., vertical: ...
96+
* )
9697
* ```
9798
*
9899
* Otherwise ensure the following setters are called
99100
*
100101
* ```
101-
* (new Compliance)->withBrandRelationship(...)->withVertical(...)
102+
* (new SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo)
103+
* ->withBrandRelationship(...)
104+
* ->withVertical(...)
102105
* ```
103106
*/
104107
public function __construct()

0 commit comments

Comments
 (0)