Skip to content

Commit

Permalink
Extend PaymentCorporateSender model according to api doc (#415)
Browse files Browse the repository at this point in the history
* Extend PaymentCorporateSender model according to api doc

* fix cash enum value

---------

Co-authored-by: Vladimir <[email protected]>
  • Loading branch information
Klzfire and Vladimir authored Sep 2, 2024
1 parent 41e7c7b commit 335711c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/CheckoutSdk/Payments/Sender/PaymentCorporateSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ public PaymentCorporateSender() : base(PaymentSenderType.Corporate)
public string CompanyName { get; set; }

public Address Address { get; set; }

public string ReferenceType { get; set; }

public SourceOfFunds? SourceOfFunds { get; set; }
}
}
15 changes: 11 additions & 4 deletions src/CheckoutSdk/Payments/Sender/SourceOfFunds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ namespace Checkout.Payments.Sender
{
public enum SourceOfFunds
{
[EnumMember(Value = "credit")] Credit,
[EnumMember(Value = "debit")] Debit,
[EnumMember(Value = "prepaid")] Prepaid,
[EnumMember(Value = "credit")]
Credit,

[EnumMember(Value = "debit")]
Debit,

[EnumMember(Value = "prepaid")]
Prepaid,

[EnumMember(Value = "deposit_account")]
DepositAccount,

[EnumMember(Value = "mobile_money_account")]
MobileMoneyAccount,
[EnumMember(Value = "passport")] Cash,

[EnumMember(Value = "cash")]
Cash,
}
}

0 comments on commit 335711c

Please sign in to comment.