Skip to content

Commit e95b9e6

Browse files
docs: fixes #3388 (#3395)
1 parent 21994c4 commit e95b9e6

8 files changed

Lines changed: 43 additions & 34 deletions

File tree

packages/documentation/src/content/docs/integration/playground/overview.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,38 +269,38 @@ The Examples folder in the Bruno collection includes an [Open Payments](https://
269269

270270
<Mermaid
271271
graph={`sequenceDiagram
272-
participant B as Bruno Client
273-
participant SW as Sender Wallet
274-
participant RW as Receiver Wallet
275-
participant AS as Auth Server
276-
participant IdP as Identity Provider
272+
participant B as Bruno client
273+
participant SW as Sender's wallet
274+
participant RW as Recipient's wallet
275+
participant AS as Authorization server
276+
participant IdP as Identity provider
277277
278278
B->>SW: 1. GET wallet address
279279
SW-->>B: 200 OK (authServer URL)
280280
281281
B->>RW: 2. GET wallet address
282282
RW-->>B: 200 OK (authServer URL)
283283
284-
Note over B,AS: Non-interactive grant
284+
Note over B,AS: Non-interactive grant for incoming payment resource
285285
B->>AS: 3. POST grant request (incoming-payment)
286286
AS-->>B: 200 OK (accessToken)
287287
288288
B->>RW: 4. POST /incoming-payments
289289
RW-->>B: 201 Created (incomingPaymentId)
290290
291-
Note over B,AS: Non-interactive grant
291+
Note over B,AS: Non-interactive grant for quote resource
292292
B->>AS: 5. POST grant request (quote)
293293
AS-->>B: 200 OK (accessToken)
294294
295295
B->>SW: 6. POST /quotes
296296
SW-->>B: 201 Created (quoteId)
297297
298-
Note over B,AS: Interactive grant required
298+
Note over B,AS: Interactive grant required for outgoing payment resource
299299
B->>AS: 7. POST grant request (outgoing-payment)
300300
AS-->>B: 200 OK (redirect_uri)
301301
302302
rect rgb(240, 240, 240)
303-
Note over B,AS: Interactive Authorization<br/>User interaction required for outgoing payment grants
303+
Note over B,AS: Interactive authorization<br/>User interaction required to obtain consent
304304
B->>IdP: Redirect for user consent
305305
IdP-->>B: User consents
306306
B->>AS: 8. POST /continue/{continueId}

packages/documentation/src/content/docs/integration/requirements/assets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tableOfContents:
66

77
import { Tabs, TabItem } from '@astrojs/starlight/components'
88
import { Badge } from '@astrojs/starlight/components'
9-
import { Mermaid, CodeBlock, LinkOut } from '@interledger/docs-design-system'
9+
import { CodeBlock, LinkOut } from '@interledger/docs-design-system'
1010

1111
An asset represents an item of value that can be transferred via the Interledger Protocol. Assets in Rafiki can be added through the Backend Admin API or the [Rafiki Admin](/admin/admin-user-guide/#assets) application.
1212

packages/documentation/src/content/docs/integration/requirements/exchange-rates.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Exchange rates
33
---
44

55
import { Badge } from '@astrojs/starlight/components'
6-
import { Mermaid, CodeBlock, LinkOut } from '@interledger/docs-design-system'
6+
import { CodeBlock, LinkOut } from '@interledger/docs-design-system'
77

88
If you plan to support cross-currency transactions, you must specify from where your Rafiki instance will fetch current exchange rates.
99

packages/documentation/src/content/docs/integration/requirements/open-payments/grants-revoking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Viewing and revoking grants
33
---
44

55
import { Badge, Tabs, TabItem } from '@astrojs/starlight/components'
6-
import { Mermaid, CodeBlock, LinkOut } from '@interledger/docs-design-system'
6+
import { CodeBlock, LinkOut } from '@interledger/docs-design-system'
77

88
Grants are the mechanism in Open Payments by which your account holders give permission to a client application to access their accounts and send payments on their behalf. Providing your account holders the ability to view and revoke grants is not required to implement and operate Rafiki, but allowing them to do so is critical to providing an optimal user experience.
99

packages/documentation/src/content/docs/integration/requirements/open-payments/idp.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ title: Identity provider (IdP)
33
---
44

55
import { Badge, Steps } from '@astrojs/starlight/components'
6-
import {
7-
Mermaid,
8-
MermaidWrapper,
9-
LinkOut,
10-
CodeBlock
11-
} from '@interledger/docs-design-system'
6+
import { LinkOut, CodeBlock } from '@interledger/docs-design-system'
127

138
An identity provider (IdP) is a system or service that stores and manages user identity information, authentication, and consent. Examples of IdPs include OpenID Connect and Okta.
149

packages/documentation/src/content/docs/integration/requirements/sending-fees.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tableOfContents:
66

77
import { Tabs, TabItem } from '@astrojs/starlight/components'
88
import { Badge } from '@astrojs/starlight/components'
9-
import { Mermaid, CodeBlock, LinkOut } from '@interledger/docs-design-system'
9+
import { CodeBlock, LinkOut } from '@interledger/docs-design-system'
1010

1111
You have the option to charge sending fees, on top of any estimated network fees, for facilitating transfers. Each asset you support can have a different fee structure and you can specify both fixed and variable fees per asset. The fee amount is added on top of the quote that is generated after the ILP rate probe completes. You can define sending fees through the Backend Admin API or the [Rafiki Admin](/admin/admin-user-guide/#edit-asset) application.
1212

packages/documentation/src/content/docs/integration/requirements/webhook-events.mdx

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ of $10 was completed.
269269
participant ASE as Account servicing entity
270270
271271
R->>ASE: Fires incoming_payment.completed event to webhook endpoint,<br/>receivedAmount: $10
272-
ASE->>R: Backend Admin API call: CreateIncomingPaymentWithdrawal
272+
ASE->>R: Backend Admin API call: createIncomingPaymentWithdrawal
273+
R-->>ASE: success: true
273274
ASE->>ASE: Credit recipient's account with $10
274275
275276
`}
@@ -286,9 +287,11 @@ of $10 was completed.
286287
participant ASE as Account servicing entity
287288
288289
R->>ASE: Fires incoming_payment.completed event to webhook endpoint,<br/>receivedAmount: $10
289-
ASE->>R: Backend Admin API call: CreateIncomingPaymentWithdrawal
290+
ASE->>R: Backend Admin API call: createIncomingPaymentWithdrawal
291+
R-->>ASE: success: true
290292
ASE->>ASE: Credit recipient's account with $10
291-
ASE->>R: Backend Admin API call: PostLiquidityWithdrawal
293+
ASE->>R: Backend Admin API call: postLiquidityWithdrawal
294+
R-->>ASE: success: true
292295
R->>R: Two-phase transfer completed
293296
294297
`}
@@ -310,7 +313,8 @@ The `incoming_payment.completed` event indicates the payment completed either au
310313
participant ASE as Account servicing entity
311314
312315
R->>ASE: Fires incoming_payment.expired event to webhook endpoint,<br/>receivedAmount: $2.55
313-
ASE->>R: Backend Admin API call: CreateIncomingPaymentWithdrawal
316+
ASE->>R: Backend Admin API call: createIncomingPaymentWithdrawal
317+
R-->>ASE: success: true
314318
ASE->>ASE: Credit recipient's account with $2.55
315319
316320
`}
@@ -353,9 +357,11 @@ An outgoing payment for \$12 was created.
353357
ASE->>ASE: Checks that sender's account has sufficient funds
354358
alt Account has sufficient funds
355359
ASE->>ASE: Put hold of $12 on sender's account
356-
ASE->>R: Backend Admin API call: DepositOutgoingPaymentLiquidity
360+
ASE->>R: Backend Admin API call: depositOutgoingPaymentLiquidity
361+
R-->>ASE: success: true
357362
else Account has insufficient funds
358-
ASE->>R: Backend Admin API call: CancelOutgoingPayment,<br/>reason: Insufficient funds
363+
ASE->>R: Backend Admin API call: cancelOutgoingPayment,<br/>Reason: insufficient funds
364+
R-->>ASE: success: true
359365
end
360366
361367
`}
@@ -382,7 +388,8 @@ for \$12 is complete. \$11.50 was sent. You choose to keep \$0.50 as a service f
382388
participant ASE as Account servicing entity
383389
384390
R->>ASE: Fires outgoing_payment.completed event to webhook endpoint,<br/>debitAmount: $12, sentAmount: $11.50
385-
ASE->>R: Backend Admin API call: CreateOutgoingPaymentWithdrawal
391+
ASE->>R: Backend Admin API call: createOutgoingPaymentWithdrawal
392+
R-->>ASE: success: true
386393
ASE->>ASE: Remove hold and deduct $12 from sender's account,<br/>credit your account with $0.50
387394
388395
`}
@@ -396,9 +403,11 @@ for \$12 is complete. \$11.50 was sent. You choose to keep \$0.50 as a service f
396403
participant ASE as Account servicing entity
397404
398405
R->>ASE: Fires outgoing_payment.completed event to webhook endpoint,<br/>debitAmount: $12, sentAmount: $11.50
399-
ASE->>R: Backend Admin API call: CreateOutgoingPaymentWithdrawal
406+
ASE->>R: Backend Admin API call: createOutgoingPaymentWithdrawal
407+
R-->>ASE: success: true
400408
ASE->>ASE: Remove hold and deduct $12 from sender's account,<br/>credit your account with $0.50
401-
ASE->>R: Backend Admin API call: PostLiquidityWithdrawal
409+
ASE->>R: Backend Admin API call: postLiquidityWithdrawal
410+
R-->>ASE: success: true
402411
R->>R: Two-phase transfer complete
403412
404413
`}
@@ -422,7 +431,8 @@ An outgoing payment for \$12 failed. \$8 was sent successfully.
422431
participant ASE as Account servicing entity
423432
424433
R->>ASE: Fires outgoing_payment.failed event to webhook endpoint,<br/>debitAmount: $12, sentAmount: $8
425-
ASE->>R: Backend Admin API call: CreateOutgoingPaymentWithdrawal
434+
ASE->>R: Backend Admin API call: createOutgoingPaymentWithdrawal
435+
R-->>ASE: success: true
426436
ASE->>ASE: Remove hold and deduct $8 from the sender's account
427437
428438
`}
@@ -455,7 +465,8 @@ The wallet address, `https://wallet.example.com/carla_garcia` was requested but
455465
participant ASE as Account servicing entity
456466
457467
R->>ASE: Fires wallet_address.not_found event to webhook endpoint,<br/>wallet address: https://wallet.example.com/carla_garcia
458-
ASE->>R: Backend Admin API call: CreateWalletAddress,<br/>url: https://wallet.example.com/carla_garcia,<br/>public name: Carla Eva Garcia
468+
ASE->>R: Backend Admin API call: createWalletAddress,<br/>url: https://wallet.example.com/carla_garcia,<br/>public name: Carla Eva Garcia
469+
R-->>ASE: success: true
459470
460471
`}
461472
/>
@@ -486,7 +497,8 @@ A wallet address received a Web Monetization payment of \$0.33
486497
participant ASE as Account servicing entity
487498
488499
R->>ASE: Fires wallet_address.web_monetization event to webhook endpoint,<br/>receivedAmount: $0.33
489-
ASE->>R: Backend Admin API call: CreateWalletAddressWithdrawal
500+
ASE->>R: Backend Admin API call: createWalletAddressWithdrawal
501+
R-->>ASE: success: true
490502
ASE->>ASE: Credit recipient's account with $0.33
491503
492504
`}
@@ -518,7 +530,8 @@ Your asset liquidity for USD (asset scale: 2) drops below \$100.00.
518530
participant ASE as Account servicing entity
519531
520532
R->>ASE: Fires asset.liquidity_low event to webhook endpoint,<br/>asset: USD (scale: 2, id: "abc")
521-
ASE->>R: Backend Admin API call: DepositAssetLiquidity
533+
ASE->>R: Backend Admin API call: depositAssetLiquidity
534+
R-->>ASE: success: true
522535
523536
`}
524537
/>
@@ -549,7 +562,8 @@ The liquidity for your peer, Happy Life Bank, drops below \$100.00 USD.
549562
participant ASE as Account servicing entity
550563
551564
R->>ASE: Fires peer.liquidity_low event to webhook endpoint,<br/>peer: Happy Life Bank (asset: "USD", scale: 2, id: "abc")
552-
ASE->>R: Backend Admin API call: DepositPeerLiquidity
565+
ASE->>R: Backend Admin API call: depositPeerLiquidity
566+
R-->>ASE: success: true
553567
554568
`}
555569
/>

packages/documentation/src/content/docs/overview/concepts/accounting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ A two-phase transfer moves funds in two stages.
250250
<Mermaid
251251
graph={`sequenceDiagram
252252
Rafiki->>ASE: Fires webhook event when incoming payment completes
253-
ASE->>Rafiki: Withdraws payment amount from incoming payment liquidity account (reserve funds pending)
253+
ASE->>Rafiki: Withdraws payment amount from incoming payment<br />liquidity account (reserve funds pending)
254254
ASE->>ASE: Credits the recipient's account by the payment amount
255255
ASE->>Rafiki: Resolve funds (post)
256256
Rafiki->>Rafiki: Two-phase transfer complete

0 commit comments

Comments
 (0)