diff --git a/lib/figo.js b/lib/figo.js index 6844b81..f957f66 100644 --- a/lib/figo.js +++ b/lib/figo.js @@ -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']; @@ -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. @@ -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 // @@ -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. // @@ -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) // @@ -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) // @@ -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` // diff --git a/lib/models.js b/lib/models.js index 6ee40ca..f6d9c49 100644 --- a/lib/models.js +++ b/lib/models.js @@ -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 // @@ -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; @@ -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 // @@ -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. // @@ -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 //