Skip to content

Commit 34b2713

Browse files
authored
Merge pull request #26 from alipay/feature-250313
修复部分字段为私有导致json格式化丢失
2 parents 573b6ea + daa8c44 commit 34b2713

File tree

8 files changed

+25
-18
lines changed

8 files changed

+25
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
4+
## 1.4.3 - 2025-03-13
5+
* [#26](https://github.com/alipay/global-open-sdk-php/pull/25) feature-250313
6+
- 修复部分字段为私有导致json格式化丢失
7+
38
## 1.4.2 - 2025-02-05
49
* [#25](https://github.com/alipay/global-open-sdk-php/pull/25) feature-250205
510
- 支付、查询、支付结果通知新增卡相关信息字段

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
Language:PHP
33
PHP version:5.6.40+
4-
Releass ^1.4.2
4+
Releass ^1.4.3
55
Copyright:Ant financial services group
66
```
77

model/CardPaymentMethodDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CardPaymentMethodDetail
5252

5353
public $networkTransactionId;
5454

55-
private $is3DSAuthentication;
55+
public $is3DSAuthentication;
5656

5757

5858

model/Goods.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getGoodsUrl()
2929
/**
3030
* @param mixed $goodsUrl
3131
*/
32-
public function setGoodsUrl($goodsUrl): void
32+
public function setGoodsUrl($goodsUrl)
3333
{
3434
$this->goodsUrl = $goodsUrl;
3535
}
@@ -45,7 +45,7 @@ public function getDeliveryMethodType()
4545
/**
4646
* @param mixed $deliveryMethodType
4747
*/
48-
public function setDeliveryMethodType($deliveryMethodType): void
48+
public function setDeliveryMethodType($deliveryMethodType)
4949
{
5050
$this->deliveryMethodType = $deliveryMethodType;
5151
}
@@ -61,7 +61,7 @@ public function getGoodsImageUrl()
6161
/**
6262
* @param mixed $goodsImageUrl
6363
*/
64-
public function setGoodsImageUrl($goodsImageUrl): void
64+
public function setGoodsImageUrl($goodsImageUrl)
6565
{
6666
$this->goodsImageUrl = $goodsImageUrl;
6767
}
@@ -77,7 +77,7 @@ public function getPriceId()
7777
/**
7878
* @param mixed $priceId
7979
*/
80-
public function setPriceId($priceId): void
80+
public function setPriceId($priceId)
8181
{
8282
$this->priceId = $priceId;
8383
}

model/PaymentMethodTypeItem.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ public function setExpressCheckout($expressCheckout)
5757
}
5858

5959

60+
public function jsonSerialize()
61+
{
62+
return get_object_vars($this);
63+
}
6064
}

model/PaymentResultInfo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getCardholderName()
5050
/**
5151
* @param mixed $cardholderName
5252
*/
53-
public function setCardholderName($cardholderName): void
53+
public function setCardholderName($cardholderName)
5454
{
5555
$this->cardholderName = $cardholderName;
5656
}
@@ -66,7 +66,7 @@ public function getCardBin()
6666
/**
6767
* @param mixed $cardBin
6868
*/
69-
public function setCardBin($cardBin): void
69+
public function setCardBin($cardBin)
7070
{
7171
$this->cardBin = $cardBin;
7272
}
@@ -82,7 +82,7 @@ public function getLastFour()
8282
/**
8383
* @param mixed $lastFour
8484
*/
85-
public function setLastFour($lastFour): void
85+
public function setLastFour($lastFour)
8686
{
8787
$this->lastFour = $lastFour;
8888
}
@@ -98,7 +98,7 @@ public function getExpiryMonth()
9898
/**
9999
* @param mixed $expiryMonth
100100
*/
101-
public function setExpiryMonth($expiryMonth): void
101+
public function setExpiryMonth($expiryMonth)
102102
{
103103
$this->expiryMonth = $expiryMonth;
104104
}
@@ -114,7 +114,7 @@ public function getExpiryYear()
114114
/**
115115
* @param mixed $expiryYear
116116
*/
117-
public function setExpiryYear($expiryYear): void
117+
public function setExpiryYear($expiryYear)
118118
{
119119
$this->expiryYear = $expiryYear;
120120
}

request/notify/AlipayVaultingNotify.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ class AlipayVaultingNotify extends \Request\notify\AlipayNotify
88
/**
99
* The unique ID that is assigned by a merchant to identify a card vaulting request.
1010
*/
11-
private $vaultingRequestId;
11+
public $vaultingRequestId;
1212

1313
/**
1414
* The details about the card payment method.
1515
*/
16-
private $paymentMethodDetail;
16+
public $paymentMethodDetail;
1717

18-
private $vaultingCreateTime;
18+
public $vaultingCreateTime;
1919

20-
private $acquirerInfo;
20+
public $acquirerInfo;
2121

2222
/**
2323
* @return mixed

request/pay/AlipayPaymentSessionRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class AlipayPaymentSessionRequest extends AlipayRequest
9797

9898
public $locale;
9999

100-
private $availablePaymentMethod;
100+
public $availablePaymentMethod;
101101

102102

103103
function __construct()
@@ -121,8 +121,6 @@ public function setAvailablePaymentMethod($availablePaymentMethod)
121121
$this->availablePaymentMethod = $availablePaymentMethod;
122122
}
123123

124-
125-
126124
/**
127125
* @return mixed
128126
*/

0 commit comments

Comments
 (0)