Skip to content

Commit

Permalink
Merge pull request #42 from PinchPayments/payment-save-applicationfee
Browse files Browse the repository at this point in the history
Added the ApplicationFee property to PaymentSaveOptions
  • Loading branch information
dkarzon authored Dec 7, 2023
2 parents 714a217 + 0f2ea13 commit 4eb6e62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Pinch.SDK/Payments/PaymentSaveOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,37 @@ public class PaymentSaveOptions
/// Payment ID. Leave blank to create a new Payment.
/// </summary>
public string Id { get; set; }

/// <summary>
/// The Payer ID of the Payer to debit.
/// </summary>
public string PayerId { get; set; }

/// <summary>
/// The payment amount in cents. eg. $10.00 = 1000
/// </summary>
public int Amount { get; set; }

/// <summary>
/// The date to take the payment. If submitted outside of banking hours on the scheduled date, the payment will be taken the next business day.
/// </summary>
public DateTime TransactionDate { get; set; }

/// <summary>
/// A description of the payment. This may be shown to the Payer to understand the payment.
/// </summary>
public string Description { get; set; }

/// <summary>
/// Optional. The ID of the payment Source you want to use. If omitted, the first valid source will be used.
/// </summary>
public string SourceId { get; set; }

/// <summary>
/// Optional. The application fee amount in cents. This fee is added to the transaction fee and settled to the Primary Merchant.
/// </summary>
public int? ApplicationFee { get; set; }

/// <summary>
/// A list of source types to surcharge (Pass on the fees to the customer). eg. ['bank-account', 'credit-card']
/// </summary>
Expand Down

0 comments on commit 4eb6e62

Please sign in to comment.