/// <summary> /// Generates a valid <see cref="ShopifyTransaction"/> for testing the Transaction API. /// </summary> public static ShopifyTransaction GenerateTransaction(ShopifyTransactionKind kind = ShopifyTransactionKind.Authorization, double?amount = null) { return(new ShopifyTransaction() { Amount = amount ?? null, Currency = "USD", Test = true, Gateway = "bogus", Kind = kind, Status = "success" }); }
/// <summary> /// Generates a valid <see cref="ShopifyTransaction"/> for testing the Transaction API. /// </summary> public static ShopifyTransaction GenerateTransaction(ShopifyTransactionKind kind = ShopifyTransactionKind.Authorization , double? amount = null) { return new ShopifyTransaction() { Amount = amount ?? null, Currency = "USD", Test = true, Gateway = "bogus", Kind = kind, Status = "success" }; }