diff --git a/src/Models/CreateCreditCardPaymentRequest.php b/src/Models/CreateCreditCardPaymentRequest.php index 3852ade..7c665ca 100644 --- a/src/Models/CreateCreditCardPaymentRequest.php +++ b/src/Models/CreateCreditCardPaymentRequest.php @@ -120,6 +120,13 @@ class CreateCreditCardPaymentRequest implements JsonSerializable */ public $recurrenceCycle; + /** + * Defines whether the card has been used one or more times. + * @maps payment_origin + * @var string|null $paymentOrigin public property + */ + public $paymentOrigin; + /** * Constructor to set initial or default values of member properties * @param integer $installments Initialization value for $this->installments @@ -145,11 +152,13 @@ class CreateCreditCardPaymentRequest implements JsonSerializable * >recurrencyCycle * @param string $recurrenceCycle Initialization value for $this- * >recurrenceCycle + * @param string $paymentOrigin Initialization value for $this- + * >paymentOrigin */ public function __construct() { switch (func_num_args()) { - case 16: + case 17: $this->installments = func_get_arg(0); $this->statementDescriptor = func_get_arg(1); $this->card = func_get_arg(2); @@ -166,6 +175,7 @@ public function __construct() $this->operationType = func_get_arg(13); $this->recurrencyCycle = func_get_arg(14); $this->recurrenceCycle = func_get_arg(15); + $this->paymentOrigin = func_get_arg(16); break; default: @@ -198,6 +208,7 @@ public function jsonSerialize() $json['operation_type'] = $this->operationType; $json['recurrency_cycle'] = $this->recurrencyCycle; $json['recurrence_cycle'] = $this->recurrenceCycle; + $json['payment_origin'] = $this->paymentOrigin; return $json; } diff --git a/src/Models/CreateGooglePayPaymentRequest.php b/src/Models/CreateGooglePayPaymentRequest.php index 46450bf..25b7afe 100644 --- a/src/Models/CreateGooglePayPaymentRequest.php +++ b/src/Models/CreateGooglePayPaymentRequest.php @@ -22,17 +22,25 @@ class CreateGooglePayPaymentRequest implements JsonSerializable * @var string $payload public property */ public $payload; + + /** + * @required + * @var string $card public property + */ + public $card; /** * Constructor to set initial or default values of member properties * @param string $statementDescriptor Initialization value for $this->statementDescriptor * @param Object $payload Initialization value for $this->payload + * @param Object $card Initialization value for $this->card */ public function __construct() { - if (2 == func_num_args()) { + if (3 == func_num_args()) { $this->statementDescriptor = func_get_arg(0); $this->payload = func_get_arg(1); + $this->card = func_get_arg(2); } } @@ -45,6 +53,7 @@ public function jsonSerialize() $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; $json['payload'] = $this->payload; + $json['card'] = $this->card; return $json; } }