Skip to content
Closed
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: 254
openapi_spec_hash: b502688710d2e1e332c41ca7adc8aabf
openapi_spec_hash: 5cce8a47b5940a7903e79134ccaca371
config_hash: f0e1844d06c76a9e145f7986d993dda6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Error codes are as follows:

Certain errors will be automatically retried 2 times by default, with a short exponential backoff.

Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts will all be retried by default.
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 429 Rate Limit, >=500 Internal errors, and timeouts will all be retried by default.

You can use the `maxRetries` option to configure or disable this:

Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ enum PurchaseIdentifierFormat: string
case HOTEL_FOLIO_NUMBER = 'hotel_folio_number';

case INVOICE_NUMBER = 'invoice_number';

case VISA_RECURRENT_REFERENCE_IDENTIFIER = 'visa_recurrent_reference_identifier';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ enum PurchaseIdentifierFormat: string
case HOTEL_FOLIO_NUMBER = 'hotel_folio_number';

case INVOICE_NUMBER = 'invoice_number';

case VISA_RECURRENT_REFERENCE_IDENTIFIER = 'visa_recurrent_reference_identifier';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
2 changes: 2 additions & 0 deletions src/CheckDeposits/CheckDeposit/DepositAdjustment/Reason.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ enum Reason: string
case NON_CONFORMING_ITEM = 'non_conforming_item';

case PAID = 'paid';

case DUPLICATE_ENTRY = 'duplicate_entry';
}
2 changes: 1 addition & 1 deletion src/Core/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected function shouldRetry(
}

$code = $rsp?->getStatusCode();
if (408 == $code || 409 == $code || 429 == $code || $code >= 500) {
if (408 == $code || 429 == $code || $code >= 500) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ enum FeeType: string
case VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = 'visa_processing_guarantee_commercial_credit';

case PULSE_SWITCH_FEE = 'pulse_switch_fee';

case PULSE_TOKENIZATION_FEE = 'pulse_tokenization_fee';
}
44 changes: 22 additions & 22 deletions src/DigitalCardProfiles/DigitalCardProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
* backgroundImageFileID: string,
* cardDescription: string,
* contactEmail: string|null,
* contactName: string,
* contactPhone: string|null,
* contactWebsite: string|null,
* createdAt: \DateTimeInterface,
* description: string,
* idempotencyKey: string|null,
* issuerName: string,
* status: Status|value-of<Status>,
* textColor: TextColor|TextColorShape,
* type: Type|value-of<Type>,
Expand Down Expand Up @@ -68,6 +68,12 @@ final class DigitalCardProfile implements BaseModel
#[Required('contact_email')]
public ?string $contactEmail;

/**
* The name of your company or card program, shown to the user as who to contact for support with their card.
*/
#[Required('contact_name')]
public string $contactName;

/**
* A phone number the user can contact to receive support for their card.
*/
Expand Down Expand Up @@ -98,12 +104,6 @@ final class DigitalCardProfile implements BaseModel
#[Required('idempotency_key')]
public ?string $idempotencyKey;

/**
* A user-facing description for whoever is issuing the card.
*/
#[Required('issuer_name')]
public string $issuerName;

/**
* The status of the Card Profile.
*
Expand Down Expand Up @@ -137,12 +137,12 @@ final class DigitalCardProfile implements BaseModel
* backgroundImageFileID: ...,
* cardDescription: ...,
* contactEmail: ...,
* contactName: ...,
* contactPhone: ...,
* contactWebsite: ...,
* createdAt: ...,
* description: ...,
* idempotencyKey: ...,
* issuerName: ...,
* status: ...,
* textColor: ...,
* type: ...,
Expand All @@ -158,12 +158,12 @@ final class DigitalCardProfile implements BaseModel
* ->withBackgroundImageFileID(...)
* ->withCardDescription(...)
* ->withContactEmail(...)
* ->withContactName(...)
* ->withContactPhone(...)
* ->withContactWebsite(...)
* ->withCreatedAt(...)
* ->withDescription(...)
* ->withIdempotencyKey(...)
* ->withIssuerName(...)
* ->withStatus(...)
* ->withTextColor(...)
* ->withType(...)
Expand All @@ -189,12 +189,12 @@ public static function with(
string $backgroundImageFileID,
string $cardDescription,
?string $contactEmail,
string $contactName,
?string $contactPhone,
?string $contactWebsite,
\DateTimeInterface $createdAt,
string $description,
?string $idempotencyKey,
string $issuerName,
Status|string $status,
TextColor|array $textColor,
Type|string $type,
Expand All @@ -206,12 +206,12 @@ public static function with(
$self['backgroundImageFileID'] = $backgroundImageFileID;
$self['cardDescription'] = $cardDescription;
$self['contactEmail'] = $contactEmail;
$self['contactName'] = $contactName;
$self['contactPhone'] = $contactPhone;
$self['contactWebsite'] = $contactWebsite;
$self['createdAt'] = $createdAt;
$self['description'] = $description;
$self['idempotencyKey'] = $idempotencyKey;
$self['issuerName'] = $issuerName;
$self['status'] = $status;
$self['textColor'] = $textColor;
$self['type'] = $type;
Expand Down Expand Up @@ -275,6 +275,17 @@ public function withContactEmail(?string $contactEmail): self
return $self;
}

/**
* The name of your company or card program, shown to the user as who to contact for support with their card.
*/
public function withContactName(string $contactName): self
{
$self = clone $this;
$self['contactName'] = $contactName;

return $self;
}

/**
* A phone number the user can contact to receive support for their card.
*/
Expand Down Expand Up @@ -330,17 +341,6 @@ public function withIdempotencyKey(?string $idempotencyKey): self
return $self;
}

/**
* A user-facing description for whoever is issuing the card.
*/
public function withIssuerName(string $issuerName): self
{
$self = clone $this;
$self['issuerName'] = $issuerName;

return $self;
}

/**
* The status of the Card Profile.
*
Expand Down
40 changes: 20 additions & 20 deletions src/DigitalCardProfiles/DigitalCardProfileCloneParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
* backgroundImageFileID?: string|null,
* cardDescription?: string|null,
* contactEmail?: string|null,
* contactName?: string|null,
* contactPhone?: string|null,
* contactWebsite?: string|null,
* description?: string|null,
* issuerName?: string|null,
* textColor?: null|TextColor|TextColorShape,
* }
*/
Expand Down Expand Up @@ -59,6 +59,12 @@ final class DigitalCardProfileCloneParams implements BaseModel
#[Optional('contact_email')]
public ?string $contactEmail;

/**
* The name of your company or card program, shown to the user as who to contact for support with their card.
*/
#[Optional('contact_name')]
public ?string $contactName;

/**
* A phone number the user can contact to receive support for their card.
*/
Expand All @@ -77,12 +83,6 @@ final class DigitalCardProfileCloneParams implements BaseModel
#[Optional]
public ?string $description;

/**
* A user-facing description for whoever is issuing the card.
*/
#[Optional('issuer_name')]
public ?string $issuerName;

/**
* The Card's text color, specified as an RGB triple. The default is white.
*/
Expand All @@ -106,10 +106,10 @@ public static function with(
?string $backgroundImageFileID = null,
?string $cardDescription = null,
?string $contactEmail = null,
?string $contactName = null,
?string $contactPhone = null,
?string $contactWebsite = null,
?string $description = null,
?string $issuerName = null,
TextColor|array|null $textColor = null,
): self {
$self = new self;
Expand All @@ -118,10 +118,10 @@ public static function with(
null !== $backgroundImageFileID && $self['backgroundImageFileID'] = $backgroundImageFileID;
null !== $cardDescription && $self['cardDescription'] = $cardDescription;
null !== $contactEmail && $self['contactEmail'] = $contactEmail;
null !== $contactName && $self['contactName'] = $contactName;
null !== $contactPhone && $self['contactPhone'] = $contactPhone;
null !== $contactWebsite && $self['contactWebsite'] = $contactWebsite;
null !== $description && $self['description'] = $description;
null !== $issuerName && $self['issuerName'] = $issuerName;
null !== $textColor && $self['textColor'] = $textColor;

return $self;
Expand Down Expand Up @@ -172,6 +172,17 @@ public function withContactEmail(string $contactEmail): self
return $self;
}

/**
* The name of your company or card program, shown to the user as who to contact for support with their card.
*/
public function withContactName(string $contactName): self
{
$self = clone $this;
$self['contactName'] = $contactName;

return $self;
}

/**
* A phone number the user can contact to receive support for their card.
*/
Expand Down Expand Up @@ -205,17 +216,6 @@ public function withDescription(string $description): self
return $self;
}

/**
* A user-facing description for whoever is issuing the card.
*/
public function withIssuerName(string $issuerName): self
{
$self = clone $this;
$self['issuerName'] = $issuerName;

return $self;
}

/**
* The Card's text color, specified as an RGB triple. The default is white.
*
Expand Down
Loading
Loading