Skip to content

Commit cd480d2

Browse files
committed
update0709
1 parent 5304993 commit cd480d2

File tree

10 files changed

+251
-5
lines changed

10 files changed

+251
-5
lines changed

CHANGELOG.md

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

3+
## 1.4.7 - 2025-07-09
4+
- update0709
5+
36
## 1.4.5 - 2025-07-07
47
- AMS pay/createPaymentSession支付接口支持订阅支付能力
58

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.6
4+
Releass ^1.4.7
55
Copyright:Ant financial services group
66
```
77

init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
require __DIR__ . '/request/pay/OrderCodePaymentRequest.php';
3636
require __DIR__ . '/request/pay/UserPresentedCodePaymentRequest.php';
3737
require __DIR__ . '/request/pay/AlipayUploadInvoiceShippingFileRequest.php';
38+
require __DIR__ . '/request/pay/AlipayRetrievePaymentSessionRequest.php';
3839

3940

4041
//subscription

model/AntomPathConstants.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class AntomPathConstants
2727
const SUPPLY_DEFENCE_DOC_PATH = '/ams/api/v1/payments/supplyDefenseDocument';
2828
const DOWNLOAD_DISPUTE_EVIDENCE_PATH = '/ams/api/v1/payments/downloadDisputeEvidence';
2929
const REFUND_PATH = '/ams/api/v1/payments/refund';
30+
31+
const RETRIEVE_PATH = "/ams/api//v1/payments/retrievePaymentSession";
3032
const INQUIRY_REFUND_PATH = '/ams/api/v1/payments/inquiryRefund';
3133
const DECLARE_PATH = '/ams/api/v1/customs/declare';
3234
const INQUIRY_DECLARE_PATH = '/ams/api/v1/customs/inquiryDeclarationRequests';

model/Discount.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@ class Discount
99
public $savingsAmount;
1010
public $estimateSavingsAmount;
1111

12+
public $promotionCode;
13+
14+
/**
15+
* @return mixed
16+
*/
17+
public function getPromotionCode()
18+
{
19+
return $this->promotionCode;
20+
}
21+
22+
/**
23+
* @param mixed $promotionCode
24+
*/
25+
public function setPromotionCode($promotionCode)
26+
{
27+
$this->promotionCode = $promotionCode;
28+
}
29+
1230
/**
1331
* @return mixed
1432
*/

model/Goods.php

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,43 @@ class Goods
1717

1818
public $goodsImageUrl;
1919
public $priceId;
20+
public $goodsDiscountAmount;
21+
22+
public $crossSell;
23+
24+
/**
25+
* @return mixed
26+
*/
27+
public function getGoodsDiscountAmount()
28+
{
29+
return $this->goodsDiscountAmount;
30+
}
31+
32+
/**
33+
* @param mixed $goodsDiscountAmount
34+
*/
35+
public function setGoodsDiscountAmount($goodsDiscountAmount)
36+
{
37+
$this->goodsDiscountAmount = $goodsDiscountAmount;
38+
}
39+
40+
/**
41+
* @return mixed
42+
*/
43+
public function getCrossSell()
44+
{
45+
return $this->crossSell;
46+
}
47+
48+
/**
49+
* @param mixed $crossSell
50+
*/
51+
public function setCrossSell($crossSell)
52+
{
53+
$this->crossSell = $crossSell;
54+
}
55+
56+
2057

2158
/**
2259
* @return mixed
@@ -83,8 +120,6 @@ public function setPriceId($priceId)
83120
}
84121

85122

86-
87-
88123
/**
89124
* @return String
90125
*/

model/Order.php

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,41 @@ class Order
2222

2323
public $needDeclaration;
2424

25+
public $orderDiscountAmount;
2526

27+
public $subTotalOrderAmount;
28+
29+
/**
30+
* @return mixed
31+
*/
32+
public function getOrderDiscountAmount()
33+
{
34+
return $this->orderDiscountAmount;
35+
}
36+
37+
/**
38+
* @param mixed $orderDiscountAmount
39+
*/
40+
public function setOrderDiscountAmount($orderDiscountAmount)
41+
{
42+
$this->orderDiscountAmount = $orderDiscountAmount;
43+
}
44+
45+
/**
46+
* @return mixed
47+
*/
48+
public function getSubTotalOrderAmount()
49+
{
50+
return $this->subTotalOrderAmount;
51+
}
52+
53+
/**
54+
* @param mixed $subTotalOrderAmount
55+
*/
56+
public function setSubTotalOrderAmount($subTotalOrderAmount)
57+
{
58+
$this->subTotalOrderAmount = $subTotalOrderAmount;
59+
}
2660

2761
/**
2862
* @return mixed
@@ -57,7 +91,6 @@ public function setNeedDeclaration($needDeclaration)
5791
}
5892

5993

60-
6194
/**
6295
* @return String
6396
*/
@@ -251,5 +284,4 @@ public function setTransit($transit)
251284
}
252285

253286

254-
255287
}

model/Shipping.php

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,127 @@ class Shipping
99
public $shippingCarrier;
1010
public $shippingPhoneNo;
1111

12+
public $shippingNumber;
13+
public $shipToEmail;
14+
public $notes;
15+
public $shippingFeeId;
16+
public $shippingFee;
17+
public $shippingDescription;
18+
public $deliveryEstimate;
19+
20+
/**
21+
* @return mixed
22+
*/
23+
public function getShippingNumber()
24+
{
25+
return $this->shippingNumber;
26+
}
27+
28+
/**
29+
* @param mixed $shippingNumber
30+
*/
31+
public function setShippingNumber($shippingNumber)
32+
{
33+
$this->shippingNumber = $shippingNumber;
34+
}
35+
36+
/**
37+
* @return mixed
38+
*/
39+
public function getShipToEmail()
40+
{
41+
return $this->shipToEmail;
42+
}
43+
44+
/**
45+
* @param mixed $shipToEmail
46+
*/
47+
public function setShipToEmail($shipToEmail)
48+
{
49+
$this->shipToEmail = $shipToEmail;
50+
}
51+
52+
/**
53+
* @return mixed
54+
*/
55+
public function getNotes()
56+
{
57+
return $this->notes;
58+
}
59+
60+
/**
61+
* @param mixed $notes
62+
*/
63+
public function setNotes($notes)
64+
{
65+
$this->notes = $notes;
66+
}
67+
68+
/**
69+
* @return mixed
70+
*/
71+
public function getShippingFeeId()
72+
{
73+
return $this->shippingFeeId;
74+
}
75+
76+
/**
77+
* @param mixed $shippingFeeId
78+
*/
79+
public function setShippingFeeId($shippingFeeId)
80+
{
81+
$this->shippingFeeId = $shippingFeeId;
82+
}
83+
84+
/**
85+
* @return mixed
86+
*/
87+
public function getShippingFee()
88+
{
89+
return $this->shippingFee;
90+
}
91+
92+
/**
93+
* @param mixed $shippingFee
94+
*/
95+
public function setShippingFee($shippingFee)
96+
{
97+
$this->shippingFee = $shippingFee;
98+
}
99+
100+
/**
101+
* @return mixed
102+
*/
103+
public function getShippingDescription()
104+
{
105+
return $this->shippingDescription;
106+
}
107+
108+
/**
109+
* @param mixed $shippingDescription
110+
*/
111+
public function setShippingDescription($shippingDescription)
112+
{
113+
$this->shippingDescription = $shippingDescription;
114+
}
115+
116+
/**
117+
* @return mixed
118+
*/
119+
public function getDeliveryEstimate()
120+
{
121+
return $this->deliveryEstimate;
122+
}
123+
124+
/**
125+
* @param mixed $deliveryEstimate
126+
*/
127+
public function setDeliveryEstimate($deliveryEstimate)
128+
{
129+
$this->deliveryEstimate = $deliveryEstimate;
130+
}
131+
132+
12133
/**
13134
* @return String
14135
*/

model/WalletPaymentMethodType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ class WalletPaymentMethodType
4242

4343
const APPLEPAY = "APPLEPAY";
4444

45+
const DIDI_PAY_LATER = "DIDI_PAY_LATER";
46+
4547
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace Request\pay;
4+
5+
use Model\AntomPathConstants;
6+
use Request\AlipayRequest;
7+
8+
class AlipayRetrievePaymentSessionRequest extends AlipayRequest
9+
{
10+
public $paymentRequestId;
11+
12+
/**
13+
* @return mixed
14+
*/
15+
public function getPaymentRequestId()
16+
{
17+
return $this->paymentRequestId;
18+
}
19+
20+
/**
21+
* @param mixed $paymentRequestId
22+
*/
23+
public function setPaymentRequestId($paymentRequestId)
24+
{
25+
$this->paymentRequestId = $paymentRequestId;
26+
}
27+
28+
function __construct()
29+
{
30+
$this->setPath(AntomPathConstants::RETRIEVE_PATH);
31+
}
32+
}

0 commit comments

Comments
 (0)