-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #674 from clement911/2021-10-upgrade
- Loading branch information
Showing
8 changed files
with
118 additions
and
1 deletion.
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
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,44 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ShopifySharp | ||
{ | ||
public class PaymentSchedule | ||
{ | ||
/// <summary> | ||
/// The amount that is owed according to the payment terms. | ||
/// </summary> | ||
[JsonProperty("amount")] | ||
public decimal? amount { get; set; } | ||
|
||
/// <summary> | ||
/// The presentment currency for the payment | ||
/// </summary> | ||
[JsonProperty("currency")] | ||
public string Currency { get; set; } | ||
|
||
/// <summary> | ||
/// The date and time when the payment terms were initiated | ||
/// </summary> | ||
[JsonProperty("issued_at")] | ||
public DateTimeOffset? IssuedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The date and time when the payment is due. Calculated based on issued_at and due_in_days or a customized fixed date if the type is fixed. | ||
/// </summary> | ||
[JsonProperty("due_at")] | ||
public DateTimeOffset? DueAt { get; set; } | ||
|
||
/// <summary> | ||
/// The date and time when the purchase is completed. Returns null initially and updates when the payment is captured | ||
/// </summary> | ||
[JsonProperty("completed_at")] | ||
public DateTimeOffset? CompletedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the payment method gateway. | ||
/// </summary> | ||
[JsonProperty("expected_payment_method")] | ||
public string ExpectedPaymentMethod { 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,43 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ShopifySharp | ||
{ | ||
public class PaymentTerms | ||
{ | ||
/// <summary> | ||
/// The amount that is owed according to the payment terms. | ||
/// </summary> | ||
[JsonProperty("amount")] | ||
public decimal? amount { get; set; } | ||
|
||
/// <summary> | ||
/// The presentment currency for the payment | ||
/// </summary> | ||
[JsonProperty("currency")] | ||
public string Currency { get; set; } | ||
|
||
/// <summary> | ||
/// The number of days between the invoice date and due date that is defined in the selected payment terms template. | ||
/// </summary> | ||
[JsonProperty("due_in_days")] | ||
public int? DueInDays { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the selected payment terms template for the order. | ||
/// </summary> | ||
[JsonProperty("payment_terms_name")] | ||
public string PaymentTermsName { get; set; } | ||
|
||
/// <summary> | ||
/// The type of selected payment terms template for the order. | ||
/// </summary> | ||
[JsonProperty("payment_terms_type")] | ||
public string PaymentTermsType { get; set; } | ||
|
||
/// <summary> | ||
/// An array of schedules associated to the payment terms. | ||
/// </summary> | ||
[JsonProperty("payment_schedules")] | ||
public PaymentSchedule[] PaymentSchedules { 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
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