Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions request/pay/AlipayRefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ class AlipayRefundRequest extends AlipayRequest implements ModelInterface, Ar
'isAsyncRefund' => 'bool',
'extendInfo' => 'string',
'refundDetails' => '\request\model\RefundDetail[]',
'refundSourceAccountNo' => 'string'
'refundSourceAccountNo' => 'string',
'actualRefundAmount' => '\request\model\Amount'
];

/**
Expand All @@ -83,7 +84,8 @@ class AlipayRefundRequest extends AlipayRequest implements ModelInterface, Ar
'isAsyncRefund' => null,
'extendInfo' => null,
'refundDetails' => null,
'refundSourceAccountNo' => null
'refundSourceAccountNo' => null,
'actualRefundAmount' => null
];

/**
Expand All @@ -105,7 +107,8 @@ class AlipayRefundRequest extends AlipayRequest implements ModelInterface, Ar
'isAsyncRefund' => false,
'extendInfo' => false,
'refundDetails' => false,
'refundSourceAccountNo' => false
'refundSourceAccountNo' => false,
'actualRefundAmount' => false
];

/**
Expand Down Expand Up @@ -207,7 +210,8 @@ public function isNullableSetToNull(string $property): bool
'isAsyncRefund' => 'isAsyncRefund',
'extendInfo' => 'extendInfo',
'refundDetails' => 'refundDetails',
'refundSourceAccountNo' => 'refundSourceAccountNo'
'refundSourceAccountNo' => 'refundSourceAccountNo',
'actualRefundAmount' => 'actualRefundAmount'
];

/**
Expand All @@ -229,7 +233,8 @@ public function isNullableSetToNull(string $property): bool
'isAsyncRefund' => 'setIsAsyncRefund',
'extendInfo' => 'setExtendInfo',
'refundDetails' => 'setRefundDetails',
'refundSourceAccountNo' => 'setRefundSourceAccountNo'
'refundSourceAccountNo' => 'setRefundSourceAccountNo',
'actualRefundAmount' => 'setActualRefundAmount'
];

/**
Expand All @@ -251,7 +256,8 @@ public function isNullableSetToNull(string $property): bool
'isAsyncRefund' => 'getIsAsyncRefund',
'extendInfo' => 'getExtendInfo',
'refundDetails' => 'getRefundDetails',
'refundSourceAccountNo' => 'getRefundSourceAccountNo'
'refundSourceAccountNo' => 'getRefundSourceAccountNo',
'actualRefundAmount' => 'getActualRefundAmount'
];

/**
Expand Down Expand Up @@ -325,6 +331,7 @@ public function __construct(?array $data = null)
$this->setIfExists('extendInfo', $data ?? [], null);
$this->setIfExists('refundDetails', $data ?? [], null);
$this->setIfExists('refundSourceAccountNo', $data ?? [], null);
$this->setIfExists('actualRefundAmount', $data ?? [], null);

$this->setPath("/ams/api/v1/payments/refund");
}
Expand Down Expand Up @@ -715,6 +722,30 @@ public function setRefundSourceAccountNo($refundSourceAccountNo)

return $this;
}

/**
* Gets actualRefundAmount
*
* @return \model\Amount|null
*/
public function getActualRefundAmount()
{
return $this->container['actualRefundAmount'];
}

/**
* Sets actualRefundAmount
*
* @param \model\Amount|null $actualRefundAmount actualRefundAmount
*
* @return self
*/
public function setActualRefundAmount($actualRefundAmount)
{
$this->container['actualRefundAmount'] = $actualRefundAmount;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down