|
| 1 | +# CyberSource::DeviceDeAssociationApi |
| 2 | + |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**delete_terminal_association**](DeviceDeAssociationApi.md#delete_terminal_association) | **PATCH** /dms/v2/devices/deassociate | De-associate a device from merchant or account V2 |
| 8 | +[**post_de_associate_v3_terminal**](DeviceDeAssociationApi.md#post_de_associate_v3_terminal) | **POST** /dms/v3/devices/deassociate | De-associate a device from merchant to account or reseller and from account to reseller |
| 9 | + |
| 10 | + |
| 11 | +# **delete_terminal_association** |
| 12 | +> delete_terminal_association(de_association_request_body) |
| 13 | +
|
| 14 | +De-associate a device from merchant or account V2 |
| 15 | + |
| 16 | +The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic |
| 17 | + |
| 18 | +### Example |
| 19 | +```ruby |
| 20 | +# load the gem |
| 21 | +require 'cybersource_rest_client' |
| 22 | + |
| 23 | +api_instance = CyberSource::DeviceDeAssociationApi.new |
| 24 | + |
| 25 | +de_association_request_body = CyberSource::DeAssociationRequestBody.new # DeAssociationRequestBody | de association of the deviceId in the request body. |
| 26 | + |
| 27 | + |
| 28 | +begin |
| 29 | + #De-associate a device from merchant or account V2 |
| 30 | + api_instance.delete_terminal_association(de_association_request_body) |
| 31 | +rescue CyberSource::ApiError => e |
| 32 | + puts "Exception when calling DeviceDeAssociationApi->delete_terminal_association: #{e}" |
| 33 | +end |
| 34 | +``` |
| 35 | + |
| 36 | +### Parameters |
| 37 | + |
| 38 | +Name | Type | Description | Notes |
| 39 | +------------- | ------------- | ------------- | ------------- |
| 40 | + **de_association_request_body** | [**DeAssociationRequestBody**](DeAssociationRequestBody.md)| de association of the deviceId in the request body. | |
| 41 | + |
| 42 | +### Return type |
| 43 | + |
| 44 | +nil (empty response body) |
| 45 | + |
| 46 | +### Authorization |
| 47 | + |
| 48 | +No authorization required |
| 49 | + |
| 50 | +### HTTP request headers |
| 51 | + |
| 52 | + - **Content-Type**: application/json;charset=UTF-8 |
| 53 | + - **Accept**: application/hal+json;charset=utf-8 |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +# **post_de_associate_v3_terminal** |
| 58 | +> Array<InlineResponse2006> post_de_associate_v3_terminal(device_de_associate_v3_request) |
| 59 | +
|
| 60 | +De-associate a device from merchant to account or reseller and from account to reseller |
| 61 | + |
| 62 | +A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. |
| 63 | + |
| 64 | +### Example |
| 65 | +```ruby |
| 66 | +# load the gem |
| 67 | +require 'cybersource_rest_client' |
| 68 | + |
| 69 | +api_instance = CyberSource::DeviceDeAssociationApi.new |
| 70 | + |
| 71 | +device_de_associate_v3_request = [CyberSource::DeviceDeAssociateV3Request.new] # Array<DeviceDeAssociateV3Request> | deviceId that has to be de-associated to the destination organizationId. |
| 72 | + |
| 73 | + |
| 74 | +begin |
| 75 | + #De-associate a device from merchant to account or reseller and from account to reseller |
| 76 | + result = api_instance.post_de_associate_v3_terminal(device_de_associate_v3_request) |
| 77 | + p result |
| 78 | +rescue CyberSource::ApiError => e |
| 79 | + puts "Exception when calling DeviceDeAssociationApi->post_de_associate_v3_terminal: #{e}" |
| 80 | +end |
| 81 | +``` |
| 82 | + |
| 83 | +### Parameters |
| 84 | + |
| 85 | +Name | Type | Description | Notes |
| 86 | +------------- | ------------- | ------------- | ------------- |
| 87 | + **device_de_associate_v3_request** | [**Array<DeviceDeAssociateV3Request>**](DeviceDeAssociateV3Request.md)| deviceId that has to be de-associated to the destination organizationId. | |
| 88 | + |
| 89 | +### Return type |
| 90 | + |
| 91 | +[**Array<InlineResponse2006>**](InlineResponse2006.md) |
| 92 | + |
| 93 | +### Authorization |
| 94 | + |
| 95 | +No authorization required |
| 96 | + |
| 97 | +### HTTP request headers |
| 98 | + |
| 99 | + - **Content-Type**: application/json;charset=UTF-8 |
| 100 | + - **Accept**: application/json;charset=UTF-8 |
| 101 | + |
| 102 | + |
| 103 | + |
0 commit comments