-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
9 changed files
with
38 additions
and
21 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { masa } from "../../helpers"; | ||
import { PaymentMethod } from "@masa-finance/masa-sdk"; | ||
|
||
export const create = async () => { | ||
const result = await masa.creditScore.create(); | ||
export const create = async (paymentMethod: PaymentMethod) => { | ||
const result = await masa.creditScore.create(paymentMethod); | ||
if (!result || !result.success) console.error(result?.message); | ||
}; |
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import { masa } from "../../../helpers"; | ||
import { PaymentMethod } from "@masa-finance/masa-sdk"; | ||
|
||
/** | ||
* | ||
* @param paymentMethod | ||
* @param passport the base64 encoded soul linker passport | ||
*/ | ||
export const establish = async (passport: string) => { | ||
await masa.creditScore.links.establish(passport); | ||
export const establish = async ( | ||
paymentMethod: PaymentMethod, | ||
passport: string | ||
) => { | ||
await masa.creditScore.links.establish(paymentMethod, passport); | ||
}; |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { masa } from "../../../helpers"; | ||
import { PaymentMethod } from "@masa-finance/masa-sdk"; | ||
|
||
/** | ||
* | ||
* @param paymentMethod | ||
* @param passport the base64 encoded soul linker passport | ||
*/ | ||
export const query = async (passport: string) => { | ||
await masa.creditScore.links.query(passport); | ||
export const query = async (paymentMethod: PaymentMethod, passport: string) => { | ||
await masa.creditScore.links.query(paymentMethod, passport); | ||
}; |
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