Skip to content

Commit

Permalink
Merge pull request #466 from mercadopago/feature/optional-response-fi…
Browse files Browse the repository at this point in the history
…elds

Adjust optional fields
  • Loading branch information
rhames07 authored Sep 29, 2023
2 parents ae2946b + 63a9dbf commit 3c800c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/MercadoPago/Resources/CardToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@ class CardToken extends MPResource
public ?int $card_id;

/** Current status of card. E.g. active. */
public string $status;
public ?string $status;

/** Date token expires. */
public ?string $date_due;

/** Flag indicating if Luhn validation is used. */
public bool $luhn_validation;
public ?bool $luhn_validation;

/** Flag indicating if this is a production card token. */
public bool $live_mode;
public ?bool $live_mode;

/** Require esc. */
public bool $require_esc;
public ?bool $require_esc;

/** Security code of the card. */
public int $card_number_length;
public ?int $card_number_length;

/** Security code of the card. */
public int $security_code_length;
public ?int $security_code_length;


private $map = [
Expand Down
6 changes: 3 additions & 3 deletions src/MercadoPago/Resources/Common/Paging.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
class Paging
{
/** Total. */
public int $total;
public ?int $total;

/** Limit. */
public int $limit;
public ?int $limit;

/** Offset. */
public int $offset;
public ?int $offset;
}

0 comments on commit 3c800c2

Please sign in to comment.