Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
698 changes: 698 additions & 0 deletions StellarDotnetSdk.Tests/Sep/Sep0006/TransferServerServiceTest.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "non_interactive_customer_info_needed",
"fields": ["family_name", "given_name", "address", "tax_id"]
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "customer_info_status",
"status": "denied",
"more_info_url": "https://api.example.com/kycstatus?account=GACW7NONV43MZIFHCOKCQJAKSJSISSICFVUJ2C6EZIW5773OU3HD64VI"
}

15 changes: 15 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/deposit-bank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "9421871e-0623-4356-b7b5-5996da122f3e",
"instructions": {
"organization.bank_number": {
"value": "121122676",
"description": "US bank routing number"
},
"organization.bank_account_number": {
"value": "13719713158835300",
"description": "US bank account number"
}
},
"how": "Make a payment to Bank: 121122676 Account: 13719713158835300"
}

12 changes: 12 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/deposit-btc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"id": "9421871e-0623-4356-b7b5-5996da122f3e",
"instructions": {
"organization.crypto_address": {
"value": "1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB",
"description": "Bitcoin address"
}
},
"how": "Make a payment to Bitcoin address 1Nh7uHdvY6fNwtQtM1G5EZAFPLC33B59rB",
"fee_fixed": 0.0002
}

12 changes: 12 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/deposit-mxn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"id": "9421871e-0623-4356-b7b5-5996da122f3e",
"instructions": {
"organization.clabe_number": {
"value": "646180111803859359",
"description": "CLABE number"
}
},
"how": "Make a payment to Bank: STP Account: 646180111803859359",
"eta": 1800
}

20 changes: 20 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/deposit-ripple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "9421871e-0623-4356-b7b5-5996da122f3e",
"instructions": {
"organization.crypto_address": {
"value": "rNXEkKCxvfLcM1h4HJkaj2FtmYuAWrHGbf",
"description": "Ripple address"
},
"organization.crypto_memo": {
"value": "88",
"description": "Ripple tag"
}
},
"how": "Make a payment to Ripple address rNXEkKCxvfLcM1h4HJkaj2FtmYuAWrHGbf with tag 88",
"eta": 60,
"fee_percent": 0.1,
"extra_info": {
"message": "You must include the tag. If the amount is more than 1000 XRP, deposit will take 24h to complete."
}
}

4 changes: 4 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/fee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"fee": 0.013
}

148 changes: 148 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"deposit": {
"USD": {
"enabled": true,
"authentication_required": true,
"min_amount": 0.1,
"max_amount": 1000,
"fields": {
"email_address": {
"description": "your email address for transaction status updates",
"optional": true
},
"amount": {
"description": "amount in USD that you plan to deposit"
},
"country_code": {
"description": "The ISO 3166-1 alpha-3 code of the user's current address",
"choices": ["USA", "PRI"]
},
"type": {
"description": "type of deposit to make",
"choices": ["SEPA", "SWIFT", "cash"]
}
}
},
"ETH": {
"enabled": true,
"authentication_required": false
}
},
"deposit-exchange": {
"USD": {
"enabled": false,
"authentication_required": true,
"fields": {
"email_address": {
"description": "your email address for transaction status updates",
"optional": true
},
"amount": {
"description": "amount in USD that you plan to deposit"
},
"country_code": {
"description": "The ISO 3166-1 alpha-3 code of the user's current address",
"choices": ["USA", "PRI"]
},
"type": {
"description": "type of deposit to make",
"choices": ["SEPA", "SWIFT", "cash"]
}
}
}
},
"withdraw": {
"USD": {
"enabled": true,
"authentication_required": true,
"min_amount": 0.1,
"max_amount": 1000,
"types": {
"bank_account": {
"fields": {
"dest": {
"description": "your bank account number"
},
"dest_extra": {
"description": "your routing number"
},
"bank_branch": {
"description": "address of your bank branch"
},
"phone_number": {
"description": "your phone number in case there's an issue"
},
"country_code": {
"description": "The ISO 3166-1 alpha-3 code of the user's current address",
"choices": ["USA", "PRI"]
}
}
},
"cash": {
"fields": {
"dest": {
"description": "your email address. Your cashout PIN will be sent here. If not provided, your account's default email will be used",
"optional": true
}
}
}
}
},
"ETH": {
"enabled": false
}
},
"withdraw-exchange": {
"USD": {
"enabled": false,
"authentication_required": true,
"types": {
"bank_account": {
"fields": {
"dest": {
"description": "your bank account number"
},
"dest_extra": {
"description": "your routing number"
},
"bank_branch": {
"description": "address of your bank branch"
},
"phone_number": {
"description": "your phone number in case there's an issue"
},
"country_code": {
"description": "The ISO 3166-1 alpha-3 code of the user's current address",
"choices": ["USA", "PRI"]
}
}
},
"cash": {
"fields": {
"dest": {
"description": "your email address. Your cashout PIN will be sent here. If not provided, your account's default email will be used",
"optional": true
}
}
}
}
}
},
"fee": {
"enabled": false,
"description": "Fees vary from 3 to 7 percent based on the the assets transacted and method by which funds are delivered to or collected by the anchor."
},
"transactions": {
"enabled": true,
"authentication_required": true
},
"transaction": {
"enabled": false,
"authentication_required": true
},
"features": {
"account_creation": true,
"claimable_balances": true
}
}

18 changes: 18 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/transaction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"transaction": {
"id": "82fhs729f63dh0v4",
"kind": "deposit",
"status": "pending_external",
"status_eta": 3600,
"external_transaction_id": "2dd16cb409513026fbe7defc0c6f826c2d2c65c3da993f747d09bf7dafd31093",
"amount_in": "18.34",
"amount_out": "18.24",
"amount_fee": "0.1",
"started_at": "2017-03-20T17:05:32Z",
"fee_details": {
"total": "0.1",
"asset": "iso4217:USD"
}
}
}

117 changes: 117 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/transactions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"transactions": [
{
"id": "82fhs729f63dh0v4",
"kind": "deposit",
"status": "pending_external",
"status_eta": 3600,
"external_transaction_id": "2dd16cb409513026fbe7defc0c6f826c2d2c65c3da993f747d09bf7dafd31093",
"amount_in": "18.34",
"amount_out": "18.24",
"amount_fee": "0.1",
"started_at": "2017-03-20T17:05:32Z"
},
{
"id": "52fys79f63dh3v2",
"kind": "deposit-exchange",
"status": "pending_anchor",
"status_eta": 3600,
"external_transaction_id": "2dd16cb409513026fbe7defc0c6f826c2d2c65c3da993f747d09bf7dafd31093",
"amount_in": "500",
"amount_in_asset": "iso4217:BRL",
"amount_out": "100",
"amount_out_asset": "stellar:USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount_fee": "0.1",
"amount_fee_asset": "iso4217:BRL",
"started_at": "2021-06-11T17:05:32Z"
},
{
"id": "82fhs729f63dh0v4",
"kind": "withdrawal",
"status": "completed",
"amount_in": "510",
"amount_out": "490",
"amount_fee": "5",
"started_at": "2017-03-20T17:00:02Z",
"completed_at": "2017-03-20T17:09:58Z",
"stellar_transaction_id": "17a670bc424ff5ce3b386dbfaae9990b66a2a37b4fbe51547e8794962a3f9e6a",
"external_transaction_id": "1238234",
"withdraw_anchor_account": "GBANAGOAXH5ONSBI2I6I5LHP2TCRHWMZIAMGUQH2TNKQNCOGJ7GC3ZOL",
"withdraw_memo": "186384",
"withdraw_memo_type": "id",
"refunds": {
"amount_refunded": "10",
"amount_fee": "5",
"payments": [
{
"id": "b9d0b2292c4e09e8eb22d036171491e87b8d2086bf8b265874c8d182cb9c9020",
"id_type": "stellar",
"amount": "10",
"fee": "5"
}
]
}
},
{
"id": "72fhs729f63dh0v1",
"kind": "deposit",
"status": "completed",
"amount_in": "510",
"amount_out": "490",
"amount_fee": "5",
"started_at": "2017-03-20T17:00:02Z",
"completed_at": "2017-03-20T17:09:58Z",
"stellar_transaction_id": "17a670bc424ff5ce3b386dbfaae9990b66a2a37b4fbe51547e8794962a3f9e6a",
"external_transaction_id": "1238234",
"from": "AJ3845SAD",
"to": "GBITQ4YAFKD2372TNAMNHQ4JV5VS3BYKRK4QQR6FOLAR7XAHC3RVGVVJ",
"refunds": {
"amount_refunded": "10",
"amount_fee": "5",
"payments": [
{
"id": "104201",
"id_type": "external",
"amount": "10",
"fee": "5"
}
]
}
},
{
"id": "52fys79f63dh3v1",
"kind": "withdrawal",
"status": "pending_transaction_info_update",
"amount_in": "750.00",
"amount_out": null,
"amount_fee": null,
"started_at": "2017-03-20T17:00:02Z",
"required_info_message": "We were unable to send funds to the provided bank account. Bank error: 'Account does not exist'. Please provide the correct bank account address.",
"required_info_updates": {
"transaction": {
"dest": {
"description": "your bank account number"
},
"dest_extra": {
"description": "your routing number"
}
}
}
},
{
"id": "52fys79f63dh3v2",
"kind": "withdrawal-exchange",
"status": "pending_anchor",
"status_eta": 3600,
"stellar_transaction_id": "17a670bc424ff5ce3b386dbfaae9990b66a2a37b4fbe51547e8794962a3f9e6a",
"amount_in": "100",
"amount_in_asset": "stellar:USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount_out": "500",
"amount_out_asset": "iso4217:BRL",
"amount_fee": "0.1",
"amount_fee_asset": "stellar:USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"started_at": "2021-06-11T17:05:32Z"
}
]
}

7 changes: 7 additions & 0 deletions StellarDotnetSdk.Tests/TestData/Sep/Sep0006/withdraw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"account_id": "GCIBUCGPOHWMMMFPFTDWBSVHQRT4DIBJ7AD6BZJYDITBK2LCVBYW7HUQ",
"memo_type": "id",
"memo": "123",
"id": "9421871e-0623-4356-b7b5-5996da122f3e"
}

Loading
Loading