Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ GEM
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.17.1-arm64-darwin)
ffi (1.17.1-x64-mingw-ucrt)
ffi (1.17.1-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (4.30.2-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.30.2-x64-mingw-ucrt)
bigdecimal
rake (>= 13)
google-protobuf (4.30.2-x86_64-linux)
bigdecimal
rake (>= 13)
Expand Down Expand Up @@ -82,8 +78,6 @@ GEM
safe_yaml (1.0.5)
sass-embedded (1.87.0-arm64-darwin)
google-protobuf (~> 4.30)
sass-embedded (1.87.0-x64-mingw-ucrt)
google-protobuf (~> 4.30)
sass-embedded (1.87.0-x86_64-linux-gnu)
google-protobuf (~> 4.30)
terminal-table (3.0.2)
Expand All @@ -93,7 +87,6 @@ GEM

PLATFORMS
arm64-darwin
x64-mingw-ucrt
x86_64-linux-gnu

DEPENDENCIES
Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Quant Flow Doc
title: Quant Flow Docs
description: The comprehensive documentation for Quant Flow, Payscript and the Sandbox.
theme: just-the-docs

Expand All @@ -9,6 +9,7 @@ url: https://just-the-docs.github.io
aux_links:
Quant: https://quant.network/
Quant Flow: https://quant.network/quant-flow/
Sandbox: https://programmable-payments.payments.quantnetwork.net


favicon_ico: "/assets/images/favicon.ico"
27 changes: 0 additions & 27 deletions docs/connect_to_bank_accounts/get_consent.md

This file was deleted.

43 changes: 0 additions & 43 deletions docs/connect_to_bank_accounts/index.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/connect_to_bank_accounts/link_account.md

This file was deleted.

41 changes: 0 additions & 41 deletions docs/connect_to_bank_accounts/manage_consents.md

This file was deleted.

23 changes: 23 additions & 0 deletions docs/payscript/example_scripts/automatedTransfer.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
trigger = "on_demand";

def payer = ${payer:scan};
def payee = ${payee:scan};
def amount = ${amount:decimal};

def payment = PaymentInfo.builder()
.payer(AccountInfo.builder()
.type(AccountIdentifierType.SCAN)
.identifier(payer)
.build())
.payee(AccountInfo.builder()
.type(AccountIdentifierType.SCAN)
.identifier(payee)
.build())
.amountInfo(AmountInfo.builder()
.currency(CurrencyEnum.GBP)
.amount(amount)
.build())
.paymentReference("Automated transfer")
.build();

def newPaymentId = createPayment(payment);
16 changes: 16 additions & 0 deletions docs/payscript/example_scripts/automated_transfer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Automated Transfer
parent: Example Scripts
layout: page
---

# Automated Transfer
This script makes a transfer on demand.

<div style="text-align: center;" markdown="1">
[Download](automatedTransfer.groovy){: .btn }
</div>

{% highlight groovy %}
{% include_relative automatedTransfer.groovy %}
{% endhighlight %}
29 changes: 0 additions & 29 deletions docs/payscript/example_scripts/cashflow_optimisation.groovy

This file was deleted.

18 changes: 0 additions & 18 deletions docs/payscript/example_scripts/cashflow_optimisation.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/payscript/example_scripts/credit_optimisation.groovy

This file was deleted.

18 changes: 0 additions & 18 deletions docs/payscript/example_scripts/credit_optimisation.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/payscript/example_scripts/helloWorld.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trigger = "on_demand";
logMessage("Hello, world!");
16 changes: 16 additions & 0 deletions docs/payscript/example_scripts/hello_world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Hello World
parent: Example Scripts
layout: page
---

# Hello World
This script prints "Hello, World!" to the logs.

<div style="text-align: center;" markdown="1">
[Download](helloWorld.groovy){: .btn }
</div>

{% highlight groovy %}
{% include_relative helloWorld.groovy %}
{% endhighlight %}
8 changes: 8 additions & 0 deletions docs/payscript/example_scripts/reserveFunds.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
trigger="on_demand";

def fromAccount = new Scan(${sortCode:string}, ${accountNumber:string});
def toReserve = ${toReserve:string};
def amount = ${amount:decimal};
def reference = ${reference:string?};

addFundsToReserve(fromAccount, toReserve, amount, reference);
16 changes: 16 additions & 0 deletions docs/payscript/example_scripts/reserve_funds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Reserve Funds
parent: Example Scripts
layout: page
---

# Reserve Funds
This script adds an amount of funds to a reserve.

<div style="text-align: center;" markdown="1">
[Download](reserveFunds.groovy){: .btn }
</div>

{% highlight groovy %}
{% include_relative reserveFunds.groovy %}
{% endhighlight %}
Loading