-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from mercadopago/feature/add-headers
Feature: add new headers to request options
- Loading branch information
Showing
6 changed files
with
51 additions
and
25 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
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,27 +1,30 @@ | ||
export declare type Config = { | ||
accessToken: string; | ||
options?: Options; | ||
accessToken: string; | ||
options?: Options; | ||
}; | ||
|
||
export declare type Options = { | ||
timeout?: number; | ||
idempotencyKey?: string; | ||
plataformId?: string; | ||
integratorId?: string; | ||
corporationId?: string; | ||
timeout?: number; | ||
idempotencyKey?: string; | ||
plataformId?: string; | ||
integratorId?: string; | ||
corporationId?: string; | ||
meliSessionId?: string; | ||
expandResponseNodes?: string; | ||
cardValidation?: string; | ||
}; | ||
|
||
export declare interface SearchOptions { | ||
limit?: number; | ||
offset?: number; | ||
[key: string]: string | number; | ||
limit?: number; | ||
offset?: number; | ||
[key: string]: string | number; | ||
} | ||
|
||
export declare interface ApiResponse { | ||
api_response: ResponseFields; | ||
api_response: ResponseFields; | ||
} | ||
|
||
export declare type ResponseFields = { | ||
status: number; | ||
headers: [string, string[]]; | ||
status: number; | ||
headers: [string, string[]]; | ||
}; |
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