-
Notifications
You must be signed in to change notification settings - Fork 2
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 #22 from mattgenious/dev
Dev
- Loading branch information
Showing
66 changed files
with
1,672 additions
and
1,015 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Charges | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ChargeStatus | ||
{ | ||
[EnumMember(Value = "SUCCESS")] Success, | ||
[EnumMember(Value = "ERROR")] Error, | ||
[EnumMember(Value = "QUEUED")] Queued, | ||
[EnumMember(Value = "SKIPPED")] Skipped, | ||
[EnumMember(Value = "REFUNDED")] Refunded, | ||
[EnumMember(Value = "PARTIALLY_REFUNDED")] PartiallyRefunded | ||
} | ||
} |
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
6 changes: 1 addition & 5 deletions
6
RechargeSharp/Entities/Checkouts/ProcessCheckoutErrorMessages.cs
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,15 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Customers | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum CustomerStatus | ||
{ | ||
[EnumMember(Value = "ACTIVE")] | ||
Active, | ||
[EnumMember(Value = "INACTIVE")] | ||
Inactive | ||
} | ||
} |
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,17 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Discounts | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum AppliesToProductType | ||
{ | ||
[EnumMember(Value = "ALL")] | ||
All, | ||
[EnumMember(Value = "ONETIME")] | ||
Onetime, | ||
[EnumMember(Value = "SUBSCRIPTION")] | ||
Subscription | ||
} | ||
} |
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 Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Discounts | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum AppliesToResource | ||
{ | ||
[EnumMember(Value = "shopify_product")] | ||
ShopifyProduct, | ||
[EnumMember(Value = "shopify_collection_id")] | ||
ShopifyCollectionId | ||
} | ||
} |
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,17 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Discounts | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum DiscountStatus | ||
{ | ||
[EnumMember(Value = "enabled")] | ||
Enabled, | ||
[EnumMember(Value = "disabled")] | ||
Disabled, | ||
[EnumMember(Value = "fully_disabled")] | ||
FullyDisabled | ||
} | ||
} |
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 Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Discounts | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum DiscountType | ||
{ | ||
[EnumMember(Value = "percentage")] | ||
Percentage, | ||
[EnumMember(Value = "fixed_amount")] | ||
FixedAmount | ||
} | ||
} |
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,17 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Discounts | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum Duration | ||
{ | ||
[EnumMember(Value = "forever")] | ||
Forever, | ||
[EnumMember(Value = "usage_limit")] | ||
UsageLimit, | ||
[EnumMember(Value = "single_use")] | ||
SingleUse | ||
} | ||
} |
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,21 @@ | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json; | ||
using System.Runtime.Serialization; | ||
|
||
namespace RechargeSharp.Entities.Metafields | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum OwnerResource | ||
{ | ||
[EnumMember(Value = "store")] | ||
Store, | ||
[EnumMember(Value = "customer")] | ||
Customer, | ||
[EnumMember(Value = "subscription")] | ||
Subscription, | ||
[EnumMember(Value = "order")] | ||
Order, | ||
[EnumMember(Value = "charge")] | ||
Charge | ||
} | ||
} |
Oops, something went wrong.