Skip to content

Commit

Permalink
Release 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraswallee committed Sep 20, 2022
1 parent 225b3b3 commit f0bdb47
Show file tree
Hide file tree
Showing 110 changed files with 5,321 additions and 111 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install wallee

## Usage
The library needs to be configured with your account's space id, user id, and secret key which are available in your [wallee
account dashboard](https://app-wallee.com/account/select). Set `space_id`, `user_id`, and `api_secret` to their values.
account dashboard](https://app-wallee.com/account/select). Set `space_id`, `user_id`, and `api_secret` to their values. You can also add custom default headers to the configuration.

### Configuring a Service

Expand All @@ -36,6 +36,10 @@ let config = {
space_id: spaceId,
user_id: userId,
api_secret: apiSecret
default_headers: {
'x-meta-header-name-1': 'header-value-1',
'x-meta-header-name-2': 'header-value-2'
}
}

// Transaction Service
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wallee",
"title": "wallee",
"version": "3.1.1",
"version": "3.1.2",
"description": "TypeScript/JavaScript client for wallee",
"homepage": "http://github.com/wallee-payment/typescript-sdk",
"repository": {
Expand Down
65 changes: 64 additions & 1 deletion src/api/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class AccountService {
};

constructor(configuration: any) {
this.setDefaultAuthentication(new VoidAuth(configuration))
this.setDefaultAuthentication(new VoidAuth(configuration));
this.defaultHeaders = configuration.default_headers;
}

set useQuerystring(value: boolean) {
Expand All @@ -45,6 +46,14 @@ class AccountService {
this.authentications.default = auth;
}

private getVersion(): string {
if (typeof (process) !== 'undefined' && process && process.version) {
return 'node ' + process.version;
} else {
return 'unknown';
}
}

/**
* Deletes the entity with the given id.
* @summary Delete
Expand All @@ -64,6 +73,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -140,6 +158,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -221,6 +248,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -306,6 +342,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -386,6 +431,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -467,6 +521,15 @@ class AccountService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down
65 changes: 64 additions & 1 deletion src/api/AnalyticsQueryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class AnalyticsQueryService {
};

constructor(configuration: any) {
this.setDefaultAuthentication(new VoidAuth(configuration))
this.setDefaultAuthentication(new VoidAuth(configuration));
this.defaultHeaders = configuration.default_headers;
}

set useQuerystring(value: boolean) {
Expand All @@ -44,6 +45,14 @@ class AnalyticsQueryService {
this.authentications.default = auth;
}

private getVersion(): string {
if (typeof (process) !== 'undefined' && process && process.version) {
return 'node ' + process.version;
} else {
return 'unknown';
}
}

/**
* Cancels the specified query execution.
* @summary Cancel Execution
Expand All @@ -67,6 +76,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -166,6 +184,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -255,6 +282,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -329,6 +365,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -413,6 +458,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -493,6 +547,15 @@ class AnalyticsQueryService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down
65 changes: 64 additions & 1 deletion src/api/ApplicationUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class ApplicationUserService {
};

constructor(configuration: any) {
this.setDefaultAuthentication(new VoidAuth(configuration))
this.setDefaultAuthentication(new VoidAuth(configuration));
this.defaultHeaders = configuration.default_headers;
}

set useQuerystring(value: boolean) {
Expand All @@ -46,6 +47,14 @@ class ApplicationUserService {
this.authentications.default = auth;
}

private getVersion(): string {
if (typeof (process) !== 'undefined' && process && process.version) {
return 'node ' + process.version;
} else {
return 'unknown';
}
}

/**
* Deletes the entity with the given id.
* @summary Delete
Expand All @@ -65,6 +74,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -141,6 +159,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -222,6 +249,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -307,6 +343,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -387,6 +432,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down Expand Up @@ -468,6 +522,15 @@ class ApplicationUserService {

(<any>Object).assign(localVarHeaderParams, options.headers);

let defaultHeaderParams = {
"x-meta-sdk-version": "3.1.2",
"x-meta-sdk-language": "typescript",
"x-meta-sdk-provider": "wallee",
"x-meta-sdk-language-version": this.getVersion(),
};

(<any>Object).assign(localVarHeaderParams, defaultHeaderParams);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
Expand Down
Loading

0 comments on commit f0bdb47

Please sign in to comment.