Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions lib/figo.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const RETRIABLE_ERRORS = [
'ETIMEDOUT',
];

// Override config, e.g. to use staging evironment.
// Override config, e.g. to use staging environment.
const setConfig = function(config) {
const fields = ['api_endpoint', 'userAgent'];

Expand Down Expand Up @@ -708,7 +708,7 @@ var Session = function(access_token) {
//
// - **payment_id** (`String`) - figo ID of the payment.
//
// - **init_id** (`String`) - figo ID of the payment initation.
// - **init_id** (`String`) - figo ID of the payment initiation.
//
// - **callback** (`Function`) - callback function with two parameters: `error` and `result`;
// The result parameter is an array of `Access` objects.
Expand All @@ -723,7 +723,7 @@ var Session = function(access_token) {
//
// - **payment_id** (`String`) - figo ID of the payment.
//
// - **init_id** (`String`) - figo ID of the payment initation.
// - **init_id** (`String`) - figo ID of the payment initiation.
//
// - **challenge_id** (`String`) - figo ID of the challenge
//
Expand All @@ -740,7 +740,7 @@ var Session = function(access_token) {
//
// - **payment_id** (`String`) - figo ID of synchronization operation.
//
// - **init_id** (`String`) - figo ID of the payment initation.
// - **init_id** (`String`) - figo ID of the payment initiation.
//
// - **challange_id** (`String`) - figo ID of the challenge.
//
Expand Down Expand Up @@ -989,9 +989,9 @@ var Session = function(access_token) {
}
};

// **get_standing_order** - Retreive a specific standing order.
// **get_standing_order** - Retrieve a specific standing order.
//
// - **standing_order_id** (`String`) - ID of standing order to retreive
// - **standing_order_id** (`String`) - ID of standing order to retrieve
//
// - **accounts** (`Array`) - list of account IDs (optional)
//
Expand Down Expand Up @@ -1033,9 +1033,9 @@ var Session = function(access_token) {
}
}

// **delete_standing_order** - Retreive a specific standing order.
// **delete_standing_order** - Retrieve a specific standing order.
//
// - **standing_order_id** (`String`) - ID of standing order to retreive
// - **standing_order_id** (`String`) - ID of standing order to retrieve
//
// - **submit** (`Boolean`) - if true the standing order will be deleted from the figo API backend and the bank server. It this parameter is set to false, the standing order will be deleted from the figo backend only. (optional)
//
Expand Down Expand Up @@ -1247,7 +1247,7 @@ var Session = function(access_token) {
//
// - **payment_id** (`String`) - Figo ID of the payment to retrieve the initiation status for
//
// - **init_id** (`String`) - Figo ID of the payment initation
// - **init_id** (`String`) - Figo ID of the payment initiation
//
// - **callback** (`Function`) - callback function with one parameter: `error`
//
Expand Down
10 changes: 5 additions & 5 deletions lib/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ var StandingOrder = function(session, json) {
//
// - **first_execution_date** (`Date`) - First execution date of the standing order
//
// - **last_execution_date** (`Date`) - Last execution date of the standing order (this field might be emtpy, if no last execution date is set)
// - **last_execution_date** (`Date`) - Last execution date of the standing order (this field might be empty, if no last execution date is set)
//
// - **execution_day** (`Number`) - The day the standing order gets executed
//
Expand Down Expand Up @@ -394,7 +394,7 @@ var Notification = function(session, json) {
//
// - **notify_url** (`String`) - Notification messages will be sent to this URL.
//
// - **state** (`String`) - State similiar to sync and logon process; It will passed as POST payload for webhooks.
// - **state** (`String`) - State similar to sync and logon process; It will passed as POST payload for webhooks.
};
Notification.prototype = new Base();
Notification.prototype.constructor = Notification;
Expand Down Expand Up @@ -576,7 +576,7 @@ var TaskState = function(session, json) {
//
// - **is_waiting_for_response** (`Boolean`) - The figo Connect server is waiting for a response to the parameter challenge
//
// - **is_erroneous** (`Boolean`) - An error occured and the figo Connect server is waiting for continuation
// - **is_erroneous** (`Boolean`) - An error occurred and the figo Connect server is waiting for continuation
//
// - **is_ended** (`Boolean`) - The communication with a bank server has been completed
//
Expand Down Expand Up @@ -684,7 +684,7 @@ var Sync = function(session, json) {
//
// - **status** (`String`) - The processing state that the work item currently is in.
//
// - **challange** (`Object`) - AuthMethodSelectChallenge (object) or EmbeddedChallenge (object) or RedirectChallenge (object) or DecoupledChallenge (object) (Challenge).
// - **challenge** (`Object`) - AuthMethodSelectChallenge (object) or EmbeddedChallenge (object) or RedirectChallenge (object) or DecoupledChallenge (object) (Challenge).
//
// - **error** (`Object`) - Error detailing why the background operation failed.
//
Expand All @@ -710,7 +710,7 @@ var SynchronizationChallenge = function(session, json) {
//
// - **type** (`String`)
//
// Challange can be rapresented in multiple ways depending on type, here the list:
// Challenge can be rapresented in multiple ways depending on type, here the list:
//
// AuthMethodSelectChallenge
//
Expand Down