Skip to content

Commit f53d638

Browse files
committed
feature - p1
1 parent ba783c8 commit f53d638

Some content is hidden

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

52 files changed

+3192
-3
lines changed

example/MarketplaceTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
use Request\marketplace\AlipayRegisterRequest;
4+
5+
function register()
6+
{
7+
$alipayRegisterRequest = new AlipayRegisterRequest();
8+
$alipayRegisterRequest->setRegistrationRequestId();
9+
}

example/PayTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function pay()
8787

8888
$request->setPaymentRequestId($paymentRequestId);
8989

90-
//$request->setPath("/ams/api/v1/payments/pay");
90+
//$request->setPath("/ams/sandbox/api/v1/payments/pay");
9191

9292
$settlementStrategy = new SettlementStrategy();
9393
$settlementStrategy->setSettlementCurrency("USD");
@@ -96,8 +96,10 @@ function pay()
9696
$alipayClient = new DefaultAlipayClient("https://open-sea-global.alipay.com", merchantPrivateKey, alipayPublicKey);
9797
$alipayResponse = $alipayClient->execute($request);
9898

99-
print(json_encode($alipayResponse));
100-
print("\n" . $paymentRequestId);
99+
echo json_encode($alipayResponse);
100+
101+
// print(json_encode($alipayResponse));
102+
// print("\n" . $paymentRequestId);
101103
}
102104

103105
function queryPay($paymentRequestId)

model/AssociationType.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class AssociationType
6+
{
7+
const LEGAL_REPRESENTATIVE = "LEGAL_REPRESENTATIVE";
8+
const UBO = "UBO";
9+
const CONTACT = "CONTACT";
10+
const AUTHORIZER = "AUTHORIZER";
11+
const BOARD_MEMBER = "BOARD_MEMBER";
12+
}

model/Attachment.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class Attachment
99
public $file;
1010
public $attachmentName;
1111

12+
public $fileKey;
13+
1214
/**
1315
* @return mixed
1416
*/
@@ -57,5 +59,23 @@ public function setAttachmentName($attachmentName)
5759
$this->attachmentName = $attachmentName;
5860
}
5961

62+
/**
63+
* @return mixed
64+
*/
65+
public function getFileKey()
66+
{
67+
return $this->fileKey;
68+
}
69+
70+
/**
71+
* @param mixed $fileKey
72+
*/
73+
public function setFileKey($fileKey): void
74+
{
75+
$this->fileKey = $fileKey;
76+
}
77+
78+
79+
6080

6181
}

model/AttachmentType.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class AttachmentType
6+
{
7+
8+
const SIGNATURE_AUTHORIZATION_LETTER = "SIGNATURE_AUTHORIZATION_LETTER";
9+
const ARTICLES_OF_ASSOCIATION = "ARTICLES_OF_ASSOCIATION";
10+
const LOGO = "LOGO";
11+
12+
const AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER = "AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER";
13+
const ASSOCIATION_ARTICLE = "ASSOCIATION_ARTICLE";
14+
const FINANCIAL_REPORT = "FINANCIAL_REPORT";
15+
const OWNERSHIP_STRUCTURE_PIC = "OWNERSHIP_STRUCTURE_PIC";
16+
const ADDRESS_PROOF = "ADDRESS_PROOF";
17+
const UBO_PROVE = "UBO_PROVE";
18+
const ENTERPRISE_REGISTRATION = "ENTERPRISE_REGISTRATION";
19+
const LICENSE_INFO = "LICENSE_INFO";
20+
const ID_CARD = "ID_CARD";
21+
const PASSPORT = "PASSPORT";
22+
const DRIVING_LICENSE = "DRIVING_LICENSE";
23+
const CPF = "CPF";
24+
const CNPJ = "CNPJ";
25+
26+
}

model/AuthorizationPhase.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class AuthorizationPhase
6+
{
7+
8+
const PRE_AUTHORIZATION = "PRE_AUTHORIZATION";
9+
10+
const POST_AUTHORIZATION = "POST_AUTHORIZATION";
11+
12+
}

model/BusinessInfo.php

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class BusinessInfo
6+
{
7+
public $mcc;
8+
public $websites;
9+
public $englishName;
10+
public $doingBusinessAs;
11+
public $mainSalesCountry;
12+
public $appName;
13+
public $serviceDescription;
14+
15+
/**
16+
* @return mixed
17+
*/
18+
public function getMcc()
19+
{
20+
return $this->mcc;
21+
}
22+
23+
/**
24+
* @param mixed $mcc
25+
*/
26+
public function setMcc($mcc): void
27+
{
28+
$this->mcc = $mcc;
29+
}
30+
31+
/**
32+
* @return mixed
33+
*/
34+
public function getWebsites()
35+
{
36+
return $this->websites;
37+
}
38+
39+
/**
40+
* @param mixed $websites
41+
*/
42+
public function setWebsites($websites): void
43+
{
44+
$this->websites = $websites;
45+
}
46+
47+
/**
48+
* @return mixed
49+
*/
50+
public function getEnglishName()
51+
{
52+
return $this->englishName;
53+
}
54+
55+
/**
56+
* @param mixed $englishName
57+
*/
58+
public function setEnglishName($englishName): void
59+
{
60+
$this->englishName = $englishName;
61+
}
62+
63+
/**
64+
* @return mixed
65+
*/
66+
public function getDoingBusinessAs()
67+
{
68+
return $this->doingBusinessAs;
69+
}
70+
71+
/**
72+
* @param mixed $doingBusinessAs
73+
*/
74+
public function setDoingBusinessAs($doingBusinessAs): void
75+
{
76+
$this->doingBusinessAs = $doingBusinessAs;
77+
}
78+
79+
/**
80+
* @return mixed
81+
*/
82+
public function getMainSalesCountry()
83+
{
84+
return $this->mainSalesCountry;
85+
}
86+
87+
/**
88+
* @param mixed $mainSalesCountry
89+
*/
90+
public function setMainSalesCountry($mainSalesCountry): void
91+
{
92+
$this->mainSalesCountry = $mainSalesCountry;
93+
}
94+
95+
/**
96+
* @return mixed
97+
*/
98+
public function getAppName()
99+
{
100+
return $this->appName;
101+
}
102+
103+
/**
104+
* @param mixed $appName
105+
*/
106+
public function setAppName($appName): void
107+
{
108+
$this->appName = $appName;
109+
}
110+
111+
/**
112+
* @return mixed
113+
*/
114+
public function getServiceDescription()
115+
{
116+
return $this->serviceDescription;
117+
}
118+
119+
/**
120+
* @param mixed $serviceDescription
121+
*/
122+
public function setServiceDescription($serviceDescription): void
123+
{
124+
$this->serviceDescription = $serviceDescription;
125+
}
126+
127+
128+
129+
}

model/ClassType.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Model;
4+
5+
class ClassType
6+
{
7+
const FIRSTLEVEL = "FIRSTLEVEL";
8+
const SECONDLEVEL = "SECONDLEVEL";
9+
const THIRDLEVEL = "THIRDLEVEL";
10+
}

0 commit comments

Comments
 (0)