Skip to content

Commit 39727cf

Browse files
committed
Add example - auth customs pay
Add Changelog
1 parent b5e6769 commit 39727cf

24 files changed

+417
-34
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog## 2.0.0 - 2024-09-04* Init object library * Add pay - request response * Add auth - request response * Add customs - request response * Add subscription - request response * Add example - auth customs pay * Add Changelog## 1.0.0 - 2021-08-02* Init object library

ams-dotnet/ams-dotnet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>netcoreapp8</TargetFramework>
66
<RootNamespace>ams_dotnet</RootNamespace>
77
<BaseDirectory>src</BaseDirectory>
88
</PropertyGroup>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public enum ClassType
4+
{
5+
FIRSTLEVEL,
6+
SECONDLEVEL,
7+
THIRDLEVEL,
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public class DeliveryEstimate
4+
{
5+
public DeliveryEstimateInfo Minimum { get; set; }
6+
7+
public DeliveryEstimateInfo Maximum { get; set; }
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public class DeliveryEstimateInfo
4+
{
5+
public string Unit {get;set;}
6+
7+
public int Value {get;set;}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public class Gaming
4+
{
5+
public string GameName { get; set; }
6+
public string ToppedUpUser { get; set; }
7+
public string ToppedUpEmail { get; set; }
8+
public string ToppedUpPhoneNo { get; set; }
9+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public class Goods
4+
{
5+
public string ReferenceGoodsId { get; set; }
6+
public string GoodsName { get; set; }
7+
public string GoodsCategory { get; set; }
8+
public string GoodsBrand { get; set; }
9+
public Amount GoodsUnitAmount { get; set; }
10+
public string GoodsQuantity { get; set; }
11+
public string GoodsSkuName { get; set; }
12+
public string GoodsUrl { get; set; }
13+
public string DeliveryMethodType { get; set; }
14+
public string GoodsImageUrl { get; set; }
15+
public string PriceId { get; set; }
16+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace com.alipay.ams.api.entities;
2+
3+
public class Leg
4+
{
5+
public string DepartureTime { get; set; }
6+
public string ArrivalTime { get; set; }
7+
public Address DepartureAddress { get; set; }
8+
public Address ArrivalAddress { get; set; }
9+
public string CarrierName { get; set; }
10+
public string CarrierNo { get; set; }
11+
public ClassType ClassType { get; set; }
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System.Collections.Generic;
2+
3+
namespace com.alipay.ams.api.entities;
4+
5+
public class Lodging
6+
{
7+
public string HotelName { get; set; }
8+
public Address HotelAddress { get; set; }
9+
public string CheckInDate { get; set; }
10+
public string CheckOutDate { get; set; }
11+
public int NumberOfNights { get; set; }
12+
public int NumberOfRooms { get; set; }
13+
public List<UserName> GuestNames { get; set; }
14+
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22

3+
using System.Collections.Generic;
4+
35
namespace com.alipay.ams.api.entities
46
{
57
public class Order
@@ -15,10 +17,18 @@ public class Order
1517

1618

1719
public Merchant Merchant { get; set; }
20+
21+
public List<Goods> Goods { get; set; }
22+
public Shipping Shipping { get; set; }
23+
public Buyer Buyer { get; set; }
1824

1925

2026
public Env Env { get; set; }
2127

2228
public string ExtendInfo { get; set; }
29+
30+
public Transit Transit { get; set; }
31+
public Lodging Lodging { get; set; }
32+
public Gaming Gaming { get; set; }
2333
}
2434
}

0 commit comments

Comments
 (0)