Skip to content

Commit dac2461

Browse files
committed
Added Shipping and Item details to transaction requests
1 parent eb66549 commit dac2461

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All Notable changes will be documented in this file
44

5+
## 1.1.2.0
6+
7+
- Added Shipping and Item details to transaction requests
8+
59
## 1.1.1.0
610

711
- Added SDK error codes to transalation resource for UserDisplayMessage

eWAY.Rapid.Tests/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.1.1.0")]
35-
[assembly: AssemblyFileVersion("1.1.1.0")]
34+
[assembly: AssemblyVersion("1.1.2.0")]
35+
[assembly: AssemblyFileVersion("1.1.2.0")]

eWAY.Rapid/Internals/Services/MappingService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ public static void RegisterMapping()
4141
public static void RegisterRequestMapping()
4242
{
4343
Mapper.CreateMap<Transaction, DirectPaymentRequest>()
44+
.ForMember(dest => dest.Items, opt => opt.MapFrom(src => src.LineItems))
45+
.ForMember(dest => dest.ShippingAddress, opt => opt.MapFrom(src => src.ShippingDetails))
4446
.ForMember(dest => dest.Payment, opt => opt.MapFrom(src => src.PaymentDetails))
4547
.ForMember(dest => dest.Method,
4648
opt => opt.MapFrom(src => src.Capture ? Method.ProcessPayment : Method.Authorise));
4749

4850
Mapper.CreateMap<Transaction, CreateAccessCodeRequest>()
51+
.ForMember(dest => dest.Items, opt => opt.MapFrom(src => src.LineItems))
52+
.ForMember(dest => dest.ShippingAddress, opt => opt.MapFrom(src => src.ShippingDetails))
4953
.ForMember(dest => dest.Payment, opt => opt.MapFrom(src => src.PaymentDetails))
5054
.ForMember(dest => dest.Method, opt => opt.MapFrom(src => src.Capture
5155
? (src.Customer.TokenCustomerID == null ? Method.ProcessPayment : Method.TokenPayment)

eWAY.Rapid/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.1.1.0")]
36-
[assembly: AssemblyFileVersion("1.1.1.0")]
35+
[assembly: AssemblyVersion("1.1.2.0")]
36+
[assembly: AssemblyFileVersion("1.1.2.0")]
3737

3838
[assembly: InternalsVisibleTo("eWAY.Rapid.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100db5549fb7115b508cdc9b58e2411dd526ae638de058b00f3d1dc4a34b7fd25e7342973190356b72f3083130be13477ad42f5885709922c0e50dd19a8b5d4e87367bd57eeaee5be5493c456fa7bcd8af9cd7c34456587544ae9d6bfbd8390e4b3223f525fa913b307892ae9520e9963b0788c0efcb47c800e27525a5720815dca")]
3939
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2,PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]

0 commit comments

Comments
 (0)