Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 258
openapi_spec_hash: 0ea7abef2ca205d64ab8597eea538946
openapi_spec_hash: 5bbeae5289b3dbd7b9750db1382ea953
config_hash: b0e46656e84a8c26907fbe6dc8116a3d
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/CardDisputes/CardDisputeCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class CardDisputeCreateParams implements BaseModel
public string $disputedTransactionID;

/**
* The network of the disputed transaction. Details specific to the network are required under the sub-object with the same identifier as the network.
* The network of the disputed transaction. Details specific to the network can be provided under the sub-object with the same identifier as the network.
*
* @var value-of<Network> $network
*/
Expand All @@ -57,21 +57,21 @@ final class CardDisputeCreateParams implements BaseModel
public ?int $amount;

/**
* The files to be attached to the initial dispute submission.
* The files to be attached to the initial dispute submission. Can only be provided along with the network-specific details.
*
* @var list<AttachmentFile>|null $attachmentFiles
*/
#[Optional('attachment_files', list: AttachmentFile::class)]
public ?array $attachmentFiles;

/**
* The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks.
* The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks. Can only be provided along with the network-specific details.
*/
#[Optional]
public ?string $explanation;

/**
* The Visa-specific parameters for the dispute. Required if and only if `network` is `visa`.
* The Visa-specific parameters for the initial User Submission. If omitted, a later User Submission will be required.
*/
#[Optional]
public ?Visa $visa;
Expand Down Expand Up @@ -138,7 +138,7 @@ public function withDisputedTransactionID(
}

/**
* The network of the disputed transaction. Details specific to the network are required under the sub-object with the same identifier as the network.
* The network of the disputed transaction. Details specific to the network can be provided under the sub-object with the same identifier as the network.
*
* @param Network|value-of<Network> $network
*/
Expand All @@ -162,7 +162,7 @@ public function withAmount(int $amount): self
}

/**
* The files to be attached to the initial dispute submission.
* The files to be attached to the initial dispute submission. Can only be provided along with the network-specific details.
*
* @param list<AttachmentFile|AttachmentFileShape> $attachmentFiles
*/
Expand All @@ -175,7 +175,7 @@ public function withAttachmentFiles(array $attachmentFiles): self
}

/**
* The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks.
* The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks. Can only be provided along with the network-specific details.
*/
public function withExplanation(string $explanation): self
{
Expand All @@ -186,7 +186,7 @@ public function withExplanation(string $explanation): self
}

/**
* The Visa-specific parameters for the dispute. Required if and only if `network` is `visa`.
* The Visa-specific parameters for the initial User Submission. If omitted, a later User Submission will be required.
*
* @param Visa|VisaShape $visa
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CardDisputes/CardDisputeCreateParams/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Increase\CardDisputes\CardDisputeCreateParams;

/**
* The network of the disputed transaction. Details specific to the network are required under the sub-object with the same identifier as the network.
* The network of the disputed transaction. Details specific to the network can be provided under the sub-object with the same identifier as the network.
*/
enum Network: string
{
Expand Down
2 changes: 1 addition & 1 deletion src/CardDisputes/CardDisputeCreateParams/Visa.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* The Visa-specific parameters for the dispute. Required if and only if `network` is `visa`.
* The Visa-specific parameters for the initial User Submission. If omitted, a later User Submission will be required.
*
* @phpstan-import-type AuthorizationShape from \Increase\CardDisputes\CardDisputeCreateParams\Visa\Authorization
* @phpstan-import-type ConsumerCanceledMerchandiseShape from \Increase\CardDisputes\CardDisputeCreateParams\Visa\ConsumerCanceledMerchandise
Expand Down
8 changes: 4 additions & 4 deletions src/ServiceContracts/CardDisputesContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ interface CardDisputesContract
* @api
*
* @param string $disputedTransactionID The Transaction you wish to dispute. This Transaction must have a `source_type` of `card_settlement`.
* @param Network|value-of<Network> $network The network of the disputed transaction. Details specific to the network are required under the sub-object with the same identifier as the network.
* @param Network|value-of<Network> $network The network of the disputed transaction. Details specific to the network can be provided under the sub-object with the same identifier as the network.
* @param int $amount The monetary amount of the part of the transaction that is being disputed. This is optional and will default to the full amount of the transaction if not provided. If provided, the amount must be less than or equal to the amount of the transaction.
* @param list<AttachmentFile|AttachmentFileShape> $attachmentFiles the files to be attached to the initial dispute submission
* @param string $explanation The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks.
* @param Visa|VisaShape $visa The Visa-specific parameters for the dispute. Required if and only if `network` is `visa`.
* @param list<AttachmentFile|AttachmentFileShape> $attachmentFiles The files to be attached to the initial dispute submission. Can only be provided along with the network-specific details.
* @param string $explanation The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks. Can only be provided along with the network-specific details.
* @param Visa|VisaShape $visa The Visa-specific parameters for the initial User Submission. If omitted, a later User Submission will be required.
* @param RequestOpts|null $requestOptions
*
* @throws APIException
Expand Down
8 changes: 4 additions & 4 deletions src/Services/CardDisputesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public function __construct(private Client $client)
* Create a Card Dispute
*
* @param string $disputedTransactionID The Transaction you wish to dispute. This Transaction must have a `source_type` of `card_settlement`.
* @param Network|value-of<Network> $network The network of the disputed transaction. Details specific to the network are required under the sub-object with the same identifier as the network.
* @param Network|value-of<Network> $network The network of the disputed transaction. Details specific to the network can be provided under the sub-object with the same identifier as the network.
* @param int $amount The monetary amount of the part of the transaction that is being disputed. This is optional and will default to the full amount of the transaction if not provided. If provided, the amount must be less than or equal to the amount of the transaction.
* @param list<AttachmentFile|AttachmentFileShape> $attachmentFiles the files to be attached to the initial dispute submission
* @param string $explanation The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks.
* @param Visa|VisaShape $visa The Visa-specific parameters for the dispute. Required if and only if `network` is `visa`.
* @param list<AttachmentFile|AttachmentFileShape> $attachmentFiles The files to be attached to the initial dispute submission. Can only be provided along with the network-specific details.
* @param string $explanation The free-form explanation provided to Increase to provide more context for the user submission. This field is not sent directly to the card networks. Can only be provided along with the network-specific details.
* @param Visa|VisaShape $visa The Visa-specific parameters for the initial User Submission. If omitted, a later User Submission will be required.
* @param RequestOpts|null $requestOptions
*
* @throws APIException
Expand Down
Loading