You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: lib/PayPal/Api/Amount.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@
13
13
*
14
14
* @package PayPal\Api
15
15
*
16
-
* @property string currency
17
-
* @property string total
16
+
* @property string currency
17
+
* @property string total
18
18
* @property \PayPal\Api\Details details
19
19
*/
20
20
class Amount extends PayPalModel
@@ -23,7 +23,7 @@ class Amount extends PayPalModel
23
23
* 3-letter [currency code](https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/). PayPal does not support all currencies.
24
24
*
25
25
* @param string $currency
26
-
*
26
+
*
27
27
* @return $this
28
28
*/
29
29
publicfunctionsetCurrency($currency)
@@ -46,7 +46,7 @@ public function getCurrency()
46
46
* Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
@@ -225,7 +227,7 @@ public function getProtectionEligibilityType()
225
227
* Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action. Returned in a payment response only if the merchant has enabled FMF in the profile settings and one of the fraud filters was triggered based on those settings. See [Fraud Management Filters Summary](https://developer.paypal.com/docs/classic/fmf/integration-guide/FMFSummary/) for more information.
226
228
*
227
229
* @param \PayPal\Api\FmfDetails $fmf_details
228
-
*
230
+
*
229
231
* @return $this
230
232
*/
231
233
publicfunctionsetFmfDetails($fmf_details)
@@ -248,7 +250,7 @@ public function getFmfDetails()
248
250
* ID of the Payment resource that this transaction is based on.
249
251
*
250
252
* @param string $parent_payment
251
-
*
253
+
*
252
254
* @return $this
253
255
*/
254
256
publicfunctionsetParentPayment($parent_payment)
@@ -294,7 +296,7 @@ public function getProcessorResponse()
294
296
* Authorization expiration time and date as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
295
297
*
296
298
* @param string $valid_until
297
-
*
299
+
*
298
300
* @return $this
299
301
*/
300
302
publicfunctionsetValidUntil($valid_until)
@@ -317,7 +319,7 @@ public function getValidUntil()
317
319
* Time of authorization as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
318
320
*
319
321
* @param string $create_time
320
-
*
322
+
*
321
323
* @return $this
322
324
*/
323
325
publicfunctionsetCreateTime($create_time)
@@ -340,7 +342,7 @@ public function getCreateTime()
340
342
* Time that the resource was last updated.
341
343
*
342
344
* @param string $update_time
343
-
*
345
+
*
344
346
* @return $this
345
347
*/
346
348
publicfunctionsetUpdateTime($update_time)
@@ -360,11 +362,57 @@ public function getUpdateTime()
360
362
}
361
363
362
364
/**
363
-
* Retrieve details about a previously created authorization by passing the authorization_id in the request URI.
365
+
* Identifier to the purchase or transaction unit corresponding to this authorization transaction.
366
+
*
367
+
* @param string $reference_id
368
+
*
369
+
* @return $this
370
+
*/
371
+
publicfunctionsetReferenceId($reference_id)
372
+
{
373
+
$this->reference_id = $reference_id;
374
+
return$this;
375
+
}
376
+
377
+
/**
378
+
* Identifier to the purchase or transaction unit corresponding to this authorization transaction.
379
+
*
380
+
* @return string
381
+
*/
382
+
publicfunctiongetReferenceId()
383
+
{
384
+
return$this->reference_id;
385
+
}
386
+
387
+
/**
388
+
* Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
389
+
*
390
+
* @param string $receipt_id
391
+
*
392
+
* @return $this
393
+
*/
394
+
publicfunctionsetReceiptId($receipt_id)
395
+
{
396
+
$this->receipt_id = $receipt_id;
397
+
return$this;
398
+
}
399
+
400
+
/**
401
+
* Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
402
+
*
403
+
* @return string
404
+
*/
405
+
publicfunctiongetReceiptId()
406
+
{
407
+
return$this->receipt_id;
408
+
}
409
+
410
+
/**
411
+
* Shows details for an authorization, by ID.
364
412
*
365
-
* @param string $authorizationId
366
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
367
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
413
+
* @param string $authorizationId
414
+
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
415
+
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
@@ -385,11 +433,11 @@ public static function get($authorizationId, $apiContext = null, $restCall = nul
385
433
}
386
434
387
435
/**
388
-
* Capture and process a previously created authorization by passing the authorization_id in the request URI. To use this request, the original payment call must have the intent set to authorize.
436
+
* Captures and processes an authorization, by ID. To use this call, the original payment call must specify an intent of `authorize`.
389
437
*
390
-
* @param Capture $capture
391
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
392
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
438
+
* @param Capture $capture
439
+
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
440
+
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
@@ -411,10 +459,10 @@ public function capture($capture, $apiContext = null, $restCall = null)
411
459
}
412
460
413
461
/**
414
-
* Void (cancel) a previously authorized payment by passing the authorization_id in the request URI. Note that a fully captured authorization cannot be voided.
462
+
* Voids, or cancels, an authorization, by ID. You cannot void a fully captured authorization.
415
463
*
416
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
417
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
464
+
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
465
+
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
@@ -434,10 +482,10 @@ public function void($apiContext = null, $restCall = null)
434
482
}
435
483
436
484
/**
437
-
* Reauthorize a PayPal account payment by passing the authorization_id in the request URI. You should reauthorize a payment after the initial 3-day honor period to ensure that funds are still available. Request supports only amount field
485
+
* Reauthorizes a PayPal account payment, by authorization ID. To ensure that funds are still available, reauthorize a payment after the initial three-day honor period. Supports only the `amount` request parameter.
438
486
*
439
-
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
440
-
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
487
+
* @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
488
+
* @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
0 commit comments