1
0

Automated commit message

This commit is contained in:
PayPalServerSDKs
2024-11-21 17:43:29 +00:00
parent de24c9e488
commit 00fde18df4
48 changed files with 2092 additions and 858 deletions

View File

@@ -43,9 +43,9 @@ class Order implements \JsonSerializable
private $intent;
/**
* @var string|null
* @var mixed
*/
private $processingInstruction = ProcessingInstruction::NO_INSTRUCTION;
private $processingInstruction;
/**
* @var Payer|null
@@ -179,20 +179,22 @@ class Order implements \JsonSerializable
/**
* Returns Processing Instruction.
* The instruction to process an order.
*
* @return mixed
*/
public function getProcessingInstruction(): ?string
public function getProcessingInstruction()
{
return $this->processingInstruction;
}
/**
* Sets Processing Instruction.
* The instruction to process an order.
*
* @maps processing_instruction
*
* @param mixed $processingInstruction
*/
public function setProcessingInstruction(?string $processingInstruction): void
public function setProcessingInstruction($processingInstruction): void
{
$this->processingInstruction = $processingInstruction;
}
@@ -266,9 +268,9 @@ class Order implements \JsonSerializable
/**
* Returns Links.
* An array of request-related HATEOAS links. To complete payer approval, use the `approve` link to
* redirect the payer. The API caller has 3 hours (default setting, this which can be changed by your
* redirect the payer. The API caller has 6 hours (default setting, this which can be changed by your
* account manager to 24/48/72 hours to accommodate your use case) from the time the order is created,
* to redirect your payer. Once redirected, the API caller has 3 hours for the payer to approve the
* to redirect your payer. Once redirected, the API caller has 6 hours for the payer to approve the
* order and either authorize or capture the order. If you are not using the PayPal JavaScript SDK to
* initiate PayPal Checkout (in context) ensure that you include `application_context.return_url` is
* specified or you will get "We're sorry, Things don't appear to be working at the moment" after the
@@ -284,9 +286,9 @@ class Order implements \JsonSerializable
/**
* Sets Links.
* An array of request-related HATEOAS links. To complete payer approval, use the `approve` link to
* redirect the payer. The API caller has 3 hours (default setting, this which can be changed by your
* redirect the payer. The API caller has 6 hours (default setting, this which can be changed by your
* account manager to 24/48/72 hours to accommodate your use case) from the time the order is created,
* to redirect your payer. Once redirected, the API caller has 3 hours for the payer to approve the
* to redirect your payer. Once redirected, the API caller has 6 hours for the payer to approve the
* order and either authorize or capture the order. If you are not using the PayPal JavaScript SDK to
* initiate PayPal Checkout (in context) ensure that you include `application_context.return_url` is
* specified or you will get "We're sorry, Things don't appear to be working at the moment" after the
@@ -329,7 +331,7 @@ class Order implements \JsonSerializable
$json['intent'] = CheckoutPaymentIntent::checkValue($this->intent);
}
if (isset($this->processingInstruction)) {
$json['processing_instruction'] = ProcessingInstruction::checkValue($this->processingInstruction);
$json['processing_instruction'] = $this->processingInstruction;
}
if (isset($this->payer)) {
$json['payer'] = $this->payer;