Skip to content

Commit

Permalink
generate
Browse files Browse the repository at this point in the history
  • Loading branch information
pokepay-ci committed Feb 9, 2024
1 parent 304e098 commit e5d76fd
Show file tree
Hide file tree
Showing 130 changed files with 5,301 additions and 3,580 deletions.
1,057 changes: 723 additions & 334 deletions docs/index.md

Large diffs are not rendered by default.

384 changes: 383 additions & 1 deletion partner.yaml

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// DO NOT EDIT: File is generated by code generator.
using System;
using System.Net;
using System.Net.Http;
using NUnit.Framework;
using System.Threading.Tasks;
using System.Collections.Generic;

using PokepayPartnerCsharpSdk;

namespace PokepayPartnerCsharpSdk.Test
{
public class TestActivateUserDevice
{
private Client client;

[OneTimeSetUp]
public void OneTimeSetup()
{
client = new Client("~/.pokepay/test-config.ini");
}

[Test]
public async Task ActivateUserDevice0()
{
try {
Request.ActivateUserDevice request = new Request.ActivateUserDevice(
"011a7372-0000-449b-ba7c-775f7235b236"
);
Response.UserDevice response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
} catch (HttpRequestException e) {
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
}
}

}
}
24 changes: 12 additions & 12 deletions src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public async Task BulkCreateTransaction0()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
"PsLAa0LofoeILq2j",
"Jb",
"okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
"XKPSRM",
"YMVxniA",
"NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
);
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand All @@ -42,11 +42,11 @@ public async Task BulkCreateTransaction1()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
"PsLAa0LofoeILq2j",
"Jb",
"okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
"XKPSRM",
"YMVxniA",
"NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
) {
PrivateMoneyId = "2f45c65d-775e-495d-92e9-f2b4ed81287a",
PrivateMoneyId = "19a91c59-b734-4147-80d0-a82a1224a44d",
};
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand All @@ -61,12 +61,12 @@ public async Task BulkCreateTransaction2()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
"PsLAa0LofoeILq2j",
"Jb",
"okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
"XKPSRM",
"YMVxniA",
"NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
) {
Description = "ipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKV",
PrivateMoneyId = "7064fed3-a423-4c16-af3a-3843c1fdb73c",
Description = "gqa4p3NBV6jnDEmNin",
PrivateMoneyId = "2eb7b49f-ffed-4618-99fc-e4e0ce656897",
};
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand Down
2 changes: 1 addition & 1 deletion src/PokepayPartnerCsharpSdk.Test/TestCancelCashtray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task CancelCashtray0()
{
try {
Request.CancelCashtray request = new Request.CancelCashtray(
"079ae389-cf16-4d78-89b9-77b5ecaf671b"
"2adffaf5-1a32-40e6-bf0b-34a5f5f586b4"
);
Response.Cashtray response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand Down
83 changes: 83 additions & 0 deletions src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// DO NOT EDIT: File is generated by code generator.
using System;
using System.Net;
using System.Net.Http;
using NUnit.Framework;
using System.Threading.Tasks;
using System.Collections.Generic;

using PokepayPartnerCsharpSdk;

namespace PokepayPartnerCsharpSdk.Test
{
public class TestCreateBank
{
private Client client;

[OneTimeSetUp]
public void OneTimeSetup()
{
client = new Client("~/.pokepay/test-config.ini");
}

[Test]
public async Task CreateBank0()
{
try {
Request.CreateBank request = new Request.CreateBank(
"e313491a-dd0b-41fe-acbc-31ffc78608e6",
"1d24ee19-477a-4162-a6f1-389da60ac0cb",
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
"WVf0nkI2cpiZrwht02dhTsSxNXBuh"
);
Response.BankRegisteringInfo response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
} catch (HttpRequestException e) {
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
}
}

[Test]
public async Task CreateBank1()
{
try {
Request.CreateBank request = new Request.CreateBank(
"e313491a-dd0b-41fe-acbc-31ffc78608e6",
"1d24ee19-477a-4162-a6f1-389da60ac0cb",
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
"WVf0nkI2cpiZrwht02dhTsSxNXBuh"
) {
Birthdate = "AxPxL",
};
Response.BankRegisteringInfo response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
} catch (HttpRequestException e) {
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
}
}

[Test]
public async Task CreateBank2()
{
try {
Request.CreateBank request = new Request.CreateBank(
"e313491a-dd0b-41fe-acbc-31ffc78608e6",
"1d24ee19-477a-4162-a6f1-389da60ac0cb",
"nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
"WVf0nkI2cpiZrwht02dhTsSxNXBuh"
) {
Email = "[email protected]",
Birthdate = "XC0",
};
Response.BankRegisteringInfo response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
} catch (HttpRequestException e) {
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
}
}

}
}
43 changes: 43 additions & 0 deletions src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// DO NOT EDIT: File is generated by code generator.
using System;
using System.Net;
using System.Net.Http;
using NUnit.Framework;
using System.Threading.Tasks;
using System.Collections.Generic;

using PokepayPartnerCsharpSdk;

namespace PokepayPartnerCsharpSdk.Test
{
public class TestCreateBankTopupTransaction
{
private Client client;

[OneTimeSetUp]
public void OneTimeSetup()
{
client = new Client("~/.pokepay/test-config.ini");
}

[Test]
public async Task CreateBankTopupTransaction0()
{
try {
Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction(
"ee2bc702-0f1f-4fce-b60a-aeacea985e3d",
"074b32f2-5c20-461f-9c53-d4149d475e71",
1544,
"60df8aaf-23fd-4fec-90db-d611c05931e8",
"fb148318-6fe3-47bc-81a7-c36c55ce455d"
);
Response.TransactionDetail response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
} catch (HttpRequestException e) {
Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
}
}

}
}
18 changes: 9 additions & 9 deletions src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public async Task CreateBill0()
{
try {
Request.CreateBill request = new Request.CreateBill(
"db50ee22-0432-4bcd-a1c2-830f02f96792",
"e3f2d294-339a-4bf9-8ee0-6168cda191a3"
"0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
"460688ba-b35d-4d0f-af63-7640929518b5"
);
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand All @@ -41,10 +41,10 @@ public async Task CreateBill1()
{
try {
Request.CreateBill request = new Request.CreateBill(
"db50ee22-0432-4bcd-a1c2-830f02f96792",
"e3f2d294-339a-4bf9-8ee0-6168cda191a3"
"0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
"460688ba-b35d-4d0f-af63-7640929518b5"
) {
Description = "orzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnE",
Description = "HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgS",
};
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand All @@ -59,11 +59,11 @@ public async Task CreateBill2()
{
try {
Request.CreateBill request = new Request.CreateBill(
"db50ee22-0432-4bcd-a1c2-830f02f96792",
"e3f2d294-339a-4bf9-8ee0-6168cda191a3"
"0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
"460688ba-b35d-4d0f-af63-7640929518b5"
) {
Amount = 65.0,
Description = "WkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo",
Amount = 8640.0,
Description = "pyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55W",
};
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
Expand Down
Loading

0 comments on commit e5d76fd

Please sign in to comment.