-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b60d4ec
commit a4213e3
Showing
12 changed files
with
323 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Craftgate.Model | ||
{ | ||
public enum BnplCartItemType | ||
{ | ||
[EnumMember(Value = "MOBILE_PHONE_OVER_5000_TRY")] | ||
MOBILE_PHONE_OVER_5000_TRY, | ||
|
||
[EnumMember(Value = "MOBILE_PHONE_BELOW_5000_TRY")] | ||
MOBILE_PHONE_BELOW_5000_TRY, | ||
[EnumMember(Value = "TABLET")] TABLET, | ||
[EnumMember(Value = "COMPUTER")] COMPUTER, | ||
|
||
[EnumMember(Value = "CONSTRUCTION_MARKET")] | ||
CONSTRUCTION_MARKET, | ||
[EnumMember(Value = "GOLD")] GOLD, | ||
|
||
[EnumMember(Value = "DIGITAL_PRODUCTS")] | ||
DIGITAL_PRODUCTS, | ||
[EnumMember(Value = "SUPERMARKET")] SUPERMARKET, | ||
[EnumMember(Value = "WHITE_GOODS")] WHITE_GOODS, | ||
|
||
[EnumMember(Value = "WEARABLE_TECHNOLOGY")] | ||
WEARABLE_TECHNOLOGY, | ||
|
||
[EnumMember(Value = "SMALL_HOME_APPLIANCES")] | ||
SMALL_HOME_APPLIANCES, | ||
[EnumMember(Value = "TV")] TV, | ||
[EnumMember(Value = "GAMES_CONSOLES")] GAMES_CONSOLES, | ||
|
||
[EnumMember(Value = "AIR_CONDITIONER_AND_HEATER")] | ||
AIR_CONDITIONER_AND_HEATER, | ||
[EnumMember(Value = "ELECTRONICS")] ELECTRONICS, | ||
[EnumMember(Value = "ACCESSORIES")] ACCESSORIES, | ||
|
||
[EnumMember(Value = "MOM_AND_BABY_AND_KIDS")] | ||
MOM_AND_BABY_AND_KIDS, | ||
[EnumMember(Value = "SHOES")] SHOES, | ||
[EnumMember(Value = "CLOTHING")] CLOTHING, | ||
|
||
[EnumMember(Value = "COSMETICS_AND_PERSONAL_CARE")] | ||
COSMETICS_AND_PERSONAL_CARE, | ||
[EnumMember(Value = "FURNITURE")] FURNITURE, | ||
[EnumMember(Value = "HOME_LIVING")] HOME_LIVING, | ||
|
||
[EnumMember(Value = "AUTOMOBILE_MOTORCYCLE")] | ||
AUTOMOBILE_MOTORCYCLE, | ||
[EnumMember(Value = "OTHER")] OTHER | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using Craftgate.Model; | ||
using Craftgate.Request.Dto; | ||
|
||
namespace Craftgate.Request | ||
{ | ||
public class BnplPaymentOfferRequest | ||
{ | ||
public ApmType ApmType { get; set; } | ||
public long? MerchantApmId { get; set; } | ||
public decimal Price { get; set; } | ||
public Currency Currency { get; set; } | ||
public IList<BnplPaymentCartItem> Items; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Craftgate.Model; | ||
|
||
namespace Craftgate.Request.Dto | ||
{ | ||
public class BnplPaymentCartItem | ||
{ | ||
public string Id { get; set; } | ||
public string Name { get; set; } | ||
public string BrandName { get; set; } | ||
public BnplCartItemType Type { get; set; } | ||
public decimal UnitPrice { get; set; } | ||
public int Quantity { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using Craftgate.Request.Dto; | ||
|
||
namespace Craftgate.Request | ||
{ | ||
public class InitBnplPaymentRequest : InitApmPaymentRequest | ||
{ | ||
public string BankCode { get; set; } | ||
public IList<BnplPaymentCartItem> CartItems; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
using Craftgate.Model; | ||
using Craftgate.Response.Common; | ||
using Craftgate.Response.Dto; | ||
|
||
namespace Craftgate.Response | ||
{ | ||
public class ApmPaymentResponse : BasePaymentResponse | ||
{ | ||
public ApmType ApmType { get; set; } | ||
public string TransactionId { get; set; } | ||
public string RedirectUrl { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Craftgate.Response.Dto | ||
{ | ||
public class BnplPaymentOfferResponse | ||
{ | ||
public string OfferId { get; set; } | ||
public decimal Price { get; set; } | ||
public IList<BnplBankOffer> BankOffers { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Craftgate.Response.Dto | ||
{ | ||
public class BnplBankOffer | ||
{ | ||
public string BankCode { get; set; } | ||
public string BankName { get; set; } | ||
public string BankIconUrl { get; set; } | ||
public string BankTableBannerMessage { get; set; } | ||
public string BankSmallBannerMessage { get; set; } | ||
public bool? IsSupportNonCustomer { get; set; } | ||
public IList<BnplBankOfferTerm> BankOfferTerms { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Craftgate.Response.Dto | ||
{ | ||
public class BnplBankOfferTerm | ||
{ | ||
public int? Term { get; set; } | ||
public decimal Amount { get; set; } | ||
public decimal TotalAmount { get; set; } | ||
public decimal InterestRate { get; set; } | ||
public decimal AnnualInterestRate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Text; | ||
using Craftgate.Model; | ||
using Craftgate.Response.Dto; | ||
|
||
namespace Craftgate.Response | ||
{ | ||
public class InitBnplPaymentResponse | ||
{ | ||
public long PaymentId { get; set; } | ||
public PaymentStatus PaymentStatus { get; set; } | ||
public ApmAdditionalAction AdditionalAction { get; set; } | ||
public string RedirectUrl { get; set; } | ||
public PaymentError PaymentError { get; set; } | ||
} | ||
} |
Oops, something went wrong.