Skip to content

Commit 132b20e

Browse files
committed
refundApplicationFee docblocks
1 parent 2fb7a29 commit 132b20e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Message/RefundRequest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,28 @@
5050
*/
5151
class RefundRequest extends AbstractRequest
5252
{
53+
/**
54+
* @return bool Whether the application fee should be refunded
55+
*/
5356
public function getRefundApplicationFee()
5457
{
5558
return $this->getParameter('refundApplicationFee');
5659
}
5760

61+
/**
62+
* Whether to refund the application fee associated with a charge.
63+
*
64+
* From the {@link https://stripe.com/docs/api#create_refund Stripe docs}:
65+
* Boolean indicating whether the application fee should be refunded
66+
* when refunding this charge. If a full charge refund is given, the
67+
* full application fee will be refunded. Else, the application fee
68+
* will be refunded with an amount proportional to the amount of the
69+
* charge refunded. An application fee can only be refunded by the
70+
* application that created the charge.
71+
*
72+
* @param bool $value Whether the application fee should be refunded
73+
* @return AbstractRequest
74+
*/
5875
public function setRefundApplicationFee($value)
5976
{
6077
return $this->setParameter('refundApplicationFee', $value);

0 commit comments

Comments
 (0)