Skip to content

Commit 27e614b

Browse files
committed
update add namespace
1 parent f67e482 commit 27e614b

File tree

107 files changed

+289
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+289
-78
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"license": "MIT",
66
"autoload": {
77
"psr-4": {
8-
"request\\": "request/",
9-
"model\\": "model/"
8+
"Request\\": "request/",
9+
"Model\\": "model/"
1010
}
1111
},
1212
"homepage": "https://dashboard.alipay.com/global-payments/",

example/AuthTest.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
set_include_path(__DIR__ . '/..');
43

5-
require_once 'request/auth/AlipayAuthConsultRequest.php';
6-
require_once 'model/CustomerBelongsTo.php';
7-
require_once 'model/OsType.php';
8-
require_once 'model/ScopeType.php';
9-
require_once 'model/TerminalType.php';
10-
require_once 'DefaultAlipayClient.php';
11-
require_once 'request/auth/AlipayAuthApplyTokenRequest.php';
12-
require_once 'model/GrantType.php';
13-
require_once 'request/auth/AlipayAuthQueryTokenRequest.php';
14-
require_once 'request/auth/AlipayAuthRevokeTokenRequest.php';
4+
use Model\CustomerBelongsTo;
5+
use Model\GrantType;
6+
use Model\OsType;
7+
use Model\ScopeType;
8+
use Model\TerminalType;
9+
use Request\auth\AlipayAuthApplyTokenRequest;
10+
use Request\auth\AlipayAuthConsultRequest;
11+
use Request\auth\AlipayAuthQueryTokenRequest;
12+
use Request\auth\AlipayAuthRevokeTokenRequest;
13+
14+
1515

1616

1717
const clientId = "";
@@ -75,6 +75,6 @@ function revoke_token($accessToken)
7575
}
7676

7777

78-
//authConsult();
78+
authConsult();
7979
//applyToken("281001133029700579331362");
80-
revoke_token("28288803001247281723530452000N6krsDm8J8171000589");
80+
//revoke_token("28288803001247281723530452000N6krsDm8J8171000589");

model/Address.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
3+
4+
namespace Model;
5+
26
class Address{
37

48
public $region;

model/Amount.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class Amount{
46

57
public $currency;

model/AmountLimit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class AmountLimit{
46

57
public $maxAmount;

model/AmountLimitInfo.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class AmountLimitInfo{
46

57
public $singleLimit;

model/AntomPathConstants.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class AntomPathConstants
46
{
57
const AUTH_CONSULT_PATH = '/ams/api/v1/authorizations/consult';

model/Attachment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class Attachment {
46

57
public $attachmentType;

model/AuthenticationChannelType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
4+
namespace Model;
35
class AuthenticationChannelType{
46
const EMAIL = "EMAIL";
57
const SMS = "SMS";

model/AuthenticationType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Model;
4+
35
class AuthenticationType{
46
const OTP = "OTP";
57
}

0 commit comments

Comments
 (0)