import 'package:conekta/api.dart';
All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
createRuleBlacklist | POST /antifraud/blacklists | Create blacklisted rule |
createRuleWhitelist | POST /antifraud/whitelists | Create whitelisted rule |
deleteRuleBlacklist | DELETE /antifraud/blacklists/{id} | Delete blacklisted rule |
deleteRuleWhitelist | DELETE /antifraud/whitelists/{id} | Delete whitelisted rule |
getRuleBlacklist | GET /antifraud/blacklists | Get list of blacklisted rules |
getRuleWhitelist | GET /antifraud/whitelists | Get a list of whitelisted rules |
BlacklistRuleResponse createRuleBlacklist(createRiskRulesData, acceptLanguage)
Create blacklisted rule
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final CreateRiskRulesData createRiskRulesData = ; // CreateRiskRulesData | requested field for blacklist rule
final String acceptLanguage = es; // String | Use for knowing which language to use
try {
final response = api.createRuleBlacklist(createRiskRulesData, acceptLanguage);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->createRuleBlacklist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
createRiskRulesData | CreateRiskRulesData | requested field for blacklist rule | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WhitelistlistRuleResponse createRuleWhitelist(acceptLanguage, createRiskRulesData)
Create whitelisted rule
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final String acceptLanguage = es; // String | Use for knowing which language to use
final CreateRiskRulesData createRiskRulesData = ; // CreateRiskRulesData |
try {
final response = api.createRuleWhitelist(acceptLanguage, createRiskRulesData);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->createRuleWhitelist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
createRiskRulesData | CreateRiskRulesData | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletedBlacklistRuleResponse deleteRuleBlacklist(id, acceptLanguage, xChildCompanyId)
Delete blacklisted rule
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final String id = 6307a60c41de27127515a575; // String | Identifier of the resource
final String acceptLanguage = es; // String | Use for knowing which language to use
final String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
final response = api.deleteRuleBlacklist(id, acceptLanguage, xChildCompanyId);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->deleteRuleBlacklist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletedWhitelistRuleResponse deleteRuleWhitelist(id, acceptLanguage, xChildCompanyId)
Delete whitelisted rule
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final String id = 6307a60c41de27127515a575; // String | Identifier of the resource
final String acceptLanguage = es; // String | Use for knowing which language to use
final String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
final response = api.deleteRuleWhitelist(id, acceptLanguage, xChildCompanyId);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->deleteRuleWhitelist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RiskRulesList getRuleBlacklist(acceptLanguage)
Get list of blacklisted rules
Return all rules
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final String acceptLanguage = es; // String | Use for knowing which language to use
try {
final response = api.getRuleBlacklist(acceptLanguage);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->getRuleBlacklist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RiskRulesList getRuleWhitelist(acceptLanguage)
Get a list of whitelisted rules
Return all rules
import 'package:conekta/api.dart';
final api = Conekta().getAntifraudApi();
final String acceptLanguage = es; // String | Use for knowing which language to use
try {
final response = api.getRuleWhitelist(acceptLanguage);
print(response);
} catch on DioException (e) {
print('Exception when calling AntifraudApi->getRuleWhitelist: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]