Skip to content

Commit 7df50c4

Browse files
committed
fix cr update fields
1 parent 7078a70 commit 7df50c4

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed

request/pay/AlipayPayConsultRequest.php

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class AlipayPayConsultRequest extends AlipayRequest{
88
public $productCode;
99
public $paymentAmount;
1010
public $allowedPaymentMethods;
11+
public $allowedPaymentMethodRegions;
1112
public $blockedPaymentMethods;
1213
public $region;
1314
public $customerId;
@@ -22,6 +23,11 @@ class AlipayPayConsultRequest extends AlipayRequest{
2223

2324
public $merchantAccountId;
2425

26+
public $merchantRegion;
27+
28+
public $buyer;
29+
30+
2531
function __construct(){
2632
$this->setPath(AntomPathConstants::CONSULT_PAYMENT_PATH);
2733
}
@@ -59,9 +65,7 @@ public function setAllowedPaymentMethodRegions($allowedPaymentMethodRegions)
5965
$this->allowedPaymentMethodRegions = $allowedPaymentMethodRegions;
6066
}
6167

62-
public $merchantRegion;
6368

64-
public $allowedPaymentMethodRegions;
6569

6670
/**
6771
* @return mixed
@@ -303,5 +307,21 @@ public function setMerchantAccountId($merchantAccountId)
303307
$this->merchantAccountId = $merchantAccountId;
304308
}
305309

310+
/**
311+
* @return mixed
312+
*/
313+
public function getBuyer()
314+
{
315+
return $this->buyer;
316+
}
317+
318+
/**
319+
* @param mixed $buyer
320+
*/
321+
public function setBuyer($buyer): void
322+
{
323+
$this->buyer = $buyer;
324+
}
325+
306326

307327
}

request/pay/AlipayPayQueryRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class AlipayPayQueryRequest extends AlipayRequest{
88
public $paymentRequestId;
99
public $paymentId;
1010

11+
public $merchantAccountId;
12+
1113

1214
function __construct(){
1315
$this->setPath(AntomPathConstants::INQUIRY_PAYMENT_PATH);
@@ -45,4 +47,20 @@ public function setPaymentId($paymentId)
4547
$this->paymentId = $paymentId;
4648
}
4749

50+
/**
51+
* @return mixed
52+
*/
53+
public function getMerchantAccountId()
54+
{
55+
return $this->merchantAccountId;
56+
}
57+
58+
/**
59+
* @param mixed $merchantAccountId
60+
*/
61+
public function setMerchantAccountId($merchantAccountId): void
62+
{
63+
$this->merchantAccountId = $merchantAccountId;
64+
}
65+
4866
}

request/pay/AlipayPayRequest.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class AlipayPayRequest extends AlipayRequest{
2525
public $merchantRegion;
2626

2727
public $env;
28+
public $merchantAccountId;
29+
30+
public $userRegion;
2831

2932

3033
function __construct(){
@@ -337,5 +340,37 @@ public function setEnv($env)
337340
$this->env = $env;
338341
}
339342

343+
/**
344+
* @return mixed
345+
*/
346+
public function getMerchantAccountId()
347+
{
348+
return $this->merchantAccountId;
349+
}
350+
351+
/**
352+
* @param mixed $merchantAccountId
353+
*/
354+
public function setMerchantAccountId($merchantAccountId): void
355+
{
356+
$this->merchantAccountId = $merchantAccountId;
357+
}
358+
359+
/**
360+
* @return mixed
361+
*/
362+
public function getUserRegion()
363+
{
364+
return $this->userRegion;
365+
}
366+
367+
/**
368+
* @param mixed $userRegion
369+
*/
370+
public function setUserRegion($userRegion): void
371+
{
372+
$this->userRegion = $userRegion;
373+
}
374+
340375

341376
}

0 commit comments

Comments
 (0)