Skip to content

Commit 3a936d3

Browse files
committed
订阅支付新增“更新接口”
1 parent e672958 commit 3a936d3

13 files changed

+360
-14
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.1 - 2024-12-24
4+
* [#24](https://github.com/alipay/global-open-sdk-php/pull/24) feature-250106
5+
- 订阅支付新增“更新接口”
36

47
## 1.4.0 - 2024-12-24
58
* [#23](https://github.com/alipay/global-open-sdk-php/pull/23) feature-241224

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

init.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
require __DIR__ . '/request/auth/AlipayAuthConsultRequest.php';
99
require __DIR__ . '/request/auth/AlipayAuthQueryTokenRequest.php';
1010
require __DIR__ . '/request/auth/AlipayAuthRevokeTokenRequest.php';
11+
require __DIR__ . '/request/auth/AlipayAuthCreateSessionRequest.php';
1112

1213
//customs
1314
require __DIR__ . '/request/customs/AlipayCustomsDeclareRequest.php';
@@ -36,9 +37,10 @@
3637

3738

3839
//subscription
39-
require __DIR__ . '/request/subscription/AlipaySubscriptionCancelRequest.php';
40+
require __DIR__ . '/request/subscription/AlipaySubscriptionUpdateRequest.php';
4041
require __DIR__ . '/request/subscription/AlipaySubscriptionChangeRequest.php';
4142
require __DIR__ . '/request/subscription/AlipaySubscriptionCreateRequest.php';
43+
require __DIR__ . '/request/subscription/AlipaySubscriptionUpdateRequest.php';
4244

4345
//user
4446
require __DIR__ . '/request/users/AlipayInitAuthenticationRequest.php';
@@ -205,6 +207,8 @@
205207
require __DIR__ . '/model/DisputeNotificationType.php';
206208
require __DIR__ . '/model/AvailablePaymentMethod.php';
207209
require __DIR__ . '/model/PaymentMethodTypeItem.php';
210+
require __DIR__ . '/model/AgreementInfo.php';
211+
208212

209213

210214
//client

model/AgreementInfo.php

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class AgreementInfo
6+
{
7+
8+
public $authState;
9+
10+
11+
public $userLoginId;
12+
13+
14+
public $userLoginType;
15+
16+
17+
public $displayUserLoginId;
18+
19+
20+
21+
/**
22+
* @return mixed
23+
*/
24+
public function getAuthState()
25+
{
26+
return $this->authState;
27+
}
28+
29+
/**
30+
* @param mixed $authState
31+
*/
32+
public function setAuthState($authState)
33+
{
34+
$this->authState = $authState;
35+
}
36+
37+
/**
38+
* @return mixed
39+
*/
40+
public function getUserLoginId()
41+
{
42+
return $this->userLoginId;
43+
}
44+
45+
/**
46+
* @param mixed $userLoginId
47+
*/
48+
public function setUserLoginId($userLoginId)
49+
{
50+
$this->userLoginId = $userLoginId;
51+
}
52+
53+
/**
54+
* @return mixed
55+
*/
56+
public function getUserLoginType()
57+
{
58+
return $this->userLoginType;
59+
}
60+
61+
/**
62+
* @param mixed $userLoginType
63+
*/
64+
public function setUserLoginType($userLoginType)
65+
{
66+
$this->userLoginType = $userLoginType;
67+
}
68+
69+
/**
70+
* @return mixed
71+
*/
72+
public function getDisplayUserLoginId()
73+
{
74+
return $this->displayUserLoginId;
75+
}
76+
77+
/**
78+
* @param mixed $displayUserLoginId
79+
*/
80+
public function setDisplayUserLoginId($displayUserLoginId)
81+
{
82+
$this->displayUserLoginId = $displayUserLoginId;
83+
}
84+
85+
86+
87+
88+
}

model/AntomPathConstants.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class AntomPathConstants
2222
const SUBSCRIPTION_CREATE_PATH = '/ams/api/v1/subscriptions/create';
2323
const SUBSCRIPTION_CHANGE_PATH = '/ams/api/v1/subscriptions/change';
2424
const SUBSCRIPTION_CANCEL_PATH = '/ams/api/v1/subscriptions/cancel';
25+
const SUBSCRIPTION_UPDATE_PATH = "/ams/api/v1/subscriptions/update";
2526
const ACCEPT_DISPUTE_PATH = '/ams/api/v1/payments/acceptDispute';
2627
const SUPPLY_DEFENCE_DOC_PATH = '/ams/api/v1/payments/supplyDefenseDocument';
2728
const DOWNLOAD_DISPUTE_EVIDENCE_PATH = '/ams/api/v1/payments/downloadDisputeEvidence';

model/ApplePayConfiguration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getApplePayToken()
2222
/**
2323
* @param mixed $applePayToken
2424
*/
25-
public function setApplePayToken($applePayToken): void
25+
public function setApplePayToken($applePayToken)
2626
{
2727
$this->applePayToken = $applePayToken;
2828
}
@@ -40,7 +40,7 @@ public function getRequiredBillingContactFields()
4040
/**
4141
* @param mixed $requiredBillingContactFields
4242
*/
43-
public function setRequiredBillingContactFields($requiredBillingContactFields): void
43+
public function setRequiredBillingContactFields($requiredBillingContactFields)
4444
{
4545
$this->requiredBillingContactFields = $requiredBillingContactFields;
4646
}
@@ -56,7 +56,7 @@ public function getRequiredShippingContactFields()
5656
/**
5757
* @param mixed $requiredShippingContactFields
5858
*/
59-
public function setRequiredShippingContactFields($requiredShippingContactFields): void
59+
public function setRequiredShippingContactFields($requiredShippingContactFields)
6060
{
6161
$this->requiredShippingContactFields = $requiredShippingContactFields;
6262
}
@@ -72,7 +72,7 @@ public function getButtonsBundled()
7272
/**
7373
* @param mixed $buttonsBundled
7474
*/
75-
public function setButtonsBundled($buttonsBundled): void
75+
public function setButtonsBundled($buttonsBundled)
7676
{
7777
$this->buttonsBundled = $buttonsBundled;
7878
}

model/AvailablePaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public function getPaymentMethodTypeList()
1414
return $this->paymentMethodTypeList;
1515
}
1616

17-
/**
17+
/**。/
1818
* @param mixed $paymentMethodTypeList
1919
*/
20-
public function setPaymentMethodTypeList($paymentMethodTypeList): void
20+
public function setPaymentMethodTypeList($paymentMethodTypeList)
2121
{
2222
$this->paymentMethodTypeList = $paymentMethodTypeList;
2323
}

model/CardPaymentMethodDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getIs3DSAuthentication()
6868
/**
6969
* @param mixed $is3DSAuthentication
7070
*/
71-
public function setIs3DSAuthentication($is3DSAuthentication): void
71+
public function setIs3DSAuthentication($is3DSAuthentication)
7272
{
7373
$this->is3DSAuthentication = $is3DSAuthentication;
7474
}

model/PaymentMethodTypeItem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getPaymentMethodType()
1919
/**
2020
* @param mixed $paymentMethodType
2121
*/
22-
public function setPaymentMethodType($paymentMethodType): void
22+
public function setPaymentMethodType($paymentMethodType)
2323
{
2424
$this->paymentMethodType = $paymentMethodType;
2525
}
@@ -35,7 +35,7 @@ public function getPaymentMethodOrder()
3535
/**
3636
* @param mixed $paymentMethodOrder
3737
*/
38-
public function setPaymentMethodOrder($paymentMethodOrder): void
38+
public function setPaymentMethodOrder($paymentMethodOrder)
3939
{
4040
$this->paymentMethodOrder = $paymentMethodOrder;
4141
}
@@ -51,7 +51,7 @@ public function getExpressCheckout()
5151
/**
5252
* @param mixed $expressCheckout
5353
*/
54-
public function setExpressCheckout($expressCheckout): void
54+
public function setExpressCheckout($expressCheckout)
5555
{
5656
$this->expressCheckout = $expressCheckout;
5757
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?php
2+
3+
namespace Request\auth;
4+
5+
6+
class AlipayAuthCreateSessionRequest extends \Request\AlipayRequest
7+
{
8+
9+
10+
public $productCode;
11+
public $agreementInfo;
12+
public $scopes;
13+
14+
public $paymentMethod;
15+
public $paymentRedirectUrl;
16+
17+
18+
function __construct()
19+
{
20+
$this->setPath(\Model\AntomPathConstants::CREATE_SESSION_PATH);
21+
$this->setProductCode(\Model\ProductCodeType::AGREEMENT_PAYMENT);
22+
}
23+
24+
25+
26+
/**
27+
* @return mixed
28+
*/
29+
public function getProductCode()
30+
{
31+
return $this->productCode;
32+
}
33+
34+
/**
35+
* @param mixed $productCode
36+
*/
37+
public function setProductCode($productCode)
38+
{
39+
$this->productCode = $productCode;
40+
}
41+
42+
/**
43+
* @return mixed
44+
*/
45+
public function getAgreementInfo()
46+
{
47+
return $this->agreementInfo;
48+
}
49+
50+
/**
51+
* @param mixed $agreementInfo
52+
*/
53+
public function setAgreementInfo($agreementInfo)
54+
{
55+
$this->agreementInfo = $agreementInfo;
56+
}
57+
58+
/**
59+
* @return mixed
60+
*/
61+
public function getScopes()
62+
{
63+
return $this->scopes;
64+
}
65+
66+
/**
67+
* @param mixed $scopes
68+
*/
69+
public function setScopes($scopes)
70+
{
71+
$this->scopes = $scopes;
72+
}
73+
74+
/**
75+
* @return mixed
76+
*/
77+
public function getPaymentMethod()
78+
{
79+
return $this->paymentMethod;
80+
}
81+
82+
/**
83+
* @param mixed $paymentMethod
84+
*/
85+
public function setPaymentMethod($paymentMethod)
86+
{
87+
$this->paymentMethod = $paymentMethod;
88+
}
89+
90+
/**
91+
* @return mixed
92+
*/
93+
public function getPaymentRedirectUrl()
94+
{
95+
return $this->paymentRedirectUrl;
96+
}
97+
98+
/**
99+
* @param mixed $paymentRedirectUrl
100+
*/
101+
public function setPaymentRedirectUrl($paymentRedirectUrl)
102+
{
103+
$this->paymentRedirectUrl = $paymentRedirectUrl;
104+
}
105+
106+
107+
108+
}

0 commit comments

Comments
 (0)