-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8518cda
commit a07b030
Showing
11 changed files
with
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is | ||
// governed by a license that can be found in the LICENSE file. | ||
// | ||
// This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
// to this file will be lost every time the code is regenerated. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BlockChyp.Entities | ||
{ | ||
/// <summary> | ||
/// Models basic information needed to create a gateway merchant. | ||
/// </summary> | ||
public class AddGatewayMerchantRequest : BaseEntity, ITimeoutRequest | ||
{ | ||
/// <summary> | ||
/// Whether or not to route transaction to the test gateway. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "test")] | ||
public bool Test { get; set; } | ||
|
||
/// <summary> | ||
/// The merchant profile to be boarded. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "profile")] | ||
public MerchantProfile Profile { get; set; } | ||
|
||
/// <summary> | ||
/// The request timeout in seconds. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "timeout")] | ||
public int Timeout { 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
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,34 @@ | ||
// Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is | ||
// governed by a license that can be found in the LICENSE file. | ||
// | ||
// This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
// to this file will be lost every time the code is regenerated. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BlockChyp.Entities | ||
{ | ||
/// <summary> | ||
/// Used to up platform configuration for gateway merchants. | ||
/// </summary> | ||
public class UpdateMerchantPlatformRequest : BaseEntity, ITimeoutRequest | ||
{ | ||
/// <summary> | ||
/// The request timeout in seconds. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "timeout")] | ||
public int Timeout { get; set; } | ||
|
||
/// <summary> | ||
/// Whether or not to route transaction to the test gateway. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "test")] | ||
public bool Test { get; set; } | ||
|
||
/// <summary> | ||
/// The merchant platform configuration. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "platform")] | ||
public MerchantPlatform Platform { 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,40 @@ | ||
// Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is | ||
// governed by a license that can be found in the LICENSE file. | ||
// | ||
// This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
// to this file will be lost every time the code is regenerated. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BlockChyp.Entities | ||
{ | ||
/// <summary> | ||
/// Echoes back the state of the current platform configuration after a change. | ||
/// </summary> | ||
public class UpdateMerchantPlatformResponse : BaseEntity, IAbstractAcknowledgement | ||
{ | ||
/// <summary> | ||
/// Whether or not the request succeeded. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "success")] | ||
public bool Success { get; set; } | ||
|
||
/// <summary> | ||
/// The error, if an error occurred. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "error")] | ||
public string Error { get; set; } | ||
|
||
/// <summary> | ||
/// A narrative description of the transaction result. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "responseDescription")] | ||
public string ResponseDescription { get; set; } | ||
|
||
/// <summary> | ||
/// The current platform configuration. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "platform")] | ||
public MerchantPlatform Platform { 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,64 @@ | ||
// Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is | ||
// governed by a license that can be found in the LICENSE file. | ||
// | ||
// This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
// to this file will be lost every time the code is regenerated. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using BlockChyp.Entities; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace BlockChypTest.Integration | ||
{ | ||
public class AddGatewayMerchantTest : IntegrationTest | ||
{ | ||
private readonly ITestOutputHelper output; | ||
|
||
public AddGatewayMerchantTest(ITestOutputHelper output) | ||
{ | ||
this.output = output; | ||
} | ||
|
||
[Trait("Category", "partner")] | ||
[Trait("Category", "Integration")] | ||
[Fact] | ||
public async void Run_AddGatewayMerchantTest() | ||
{ | ||
|
||
|
||
|
||
UseProfile("partner"); | ||
|
||
|
||
AddGatewayMerchantRequest request = new AddGatewayMerchantRequest | ||
{ | ||
Profile = new MerchantProfile | ||
{ | ||
DbaName = "DBA Name", | ||
CompanyName = "Corporate Entity Name", | ||
}, | ||
}; | ||
|
||
output.WriteLine("Request: {0}", request); | ||
|
||
Exception err = null; | ||
try | ||
{ | ||
MerchantProfileResponse response = await blockchyp.AddGatewayMerchantAsync(request); | ||
output.WriteLine("Response: {0}", response); | ||
Assert.True(response.Success, "response.Success"); | ||
} | ||
catch (Exception e) { | ||
err = e; | ||
} | ||
|
||
|
||
Assert.Null(err); | ||
|
||
|
||
} | ||
} | ||
} |