Skip to content

Commit fdaa5ac

Browse files
authored
Merge pull request #3 from alipay/xufangjie_dev
商户报备sdk
2 parents db15317 + 8f3e15f commit fdaa5ac

21 files changed

+424
-3
lines changed

ams-dotnet/ams-dotnet.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
<Folder Include="src\com\alipay\ams\api\request\users\" />
1616
<Folder Include="src\com\alipay\ams\api\response\users\" />
1717
<Folder Include="src\example\tests\" />
18+
<Folder Include="src\com\alipay\ams\api\request\merchant\" />
19+
<Folder Include="src\com\alipay\ams\api\response\merchant\" />
1820
</ItemGroup>
1921
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
namespace com.alipay.ams.api.entities
3+
{
4+
public class Address
5+
{
6+
public string Region { get; set; }
7+
public string State { get; set; }
8+
public string City { get; set; }
9+
public string Address1 { get; set; }
10+
public string Address2 { get; set; }
11+
public string ZipCode { get; set; }
12+
public string Label { get; set; }
13+
}
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
namespace com.alipay.ams.api.entities
3+
{
4+
public class Attachment
5+
{
6+
public string AttachmentType { get; set; }
7+
8+
public string File { get; set; }
9+
10+
public string AttachmentName { get; set; }
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
namespace com.alipay.ams.api.entities
3+
{
4+
public class ContactInfo
5+
{
6+
public string ContactNo { get; set; }
7+
8+
public string ContactType { get; set; }
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
namespace com.alipay.ams.api.entities
3+
{
4+
public class Logo
5+
{
6+
public string LogoName { get; set; }
7+
8+
public string LogoUrl { get; set; }
9+
}
10+
}

ams-dotnet/src/com/alipay/ams/api/entities/Merchant.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
3-
42
namespace com.alipay.ams.api.entities
53
{
64
public class Merchant
@@ -14,6 +12,8 @@ public Merchant(string merchantName, string referenceMerchantId, string merchant
1412
this.Store = store;
1513
}
1614

15+
public MerchantType MerchantType { get; set; }
16+
1717

1818
public string ReferenceMerchantId { get; internal set; }
1919

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
namespace com.alipay.ams.api.entities
4+
{
5+
public class MerchantRegistrationInfo
6+
{
7+
public string ReferenceMerchantId { get; set; }
8+
9+
public string MerchantDisplayName { get; set; }
10+
11+
public string MerchantMCC { get; set; }
12+
13+
public Logo Logo { get; set; }
14+
15+
public List<WebSite> Websites { get; set; }
16+
17+
public Address MerchantAddress { get; set; }
18+
19+
public RegistrationDetail RegistrationDetail { get; set; }
20+
}
21+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace com.alipay.ams.api.entities
2+
{
3+
public enum MerchantType
4+
{
5+
INDIVIDUAL, ENTERPRISE
6+
}
7+
}

ams-dotnet/src/com/alipay/ams/api/entities/Order.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ public class Order
1818

1919

2020
public Env Env { get; set; }
21+
22+
public string ExtendInfo { get; set; }
2123
}
2224
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
namespace com.alipay.ams.api.entities
3+
{
4+
public class PSPRegistrationResult
5+
{
6+
public RegistrationResult RegistrationResult { get; set; }
7+
8+
public string PspName { get; set; }
9+
}
10+
}

0 commit comments

Comments
 (0)