|
| 1 | +# BillingAgreementsApi |
| 2 | + |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**billingAgreementsDeRegistration**](BillingAgreementsApi.md#billingAgreementsDeRegistration) | **PATCH** /pts/v2/billing-agreements/{id} | Standing Instruction Cancellation or Modification |
| 8 | +[**billingAgreementsIntimation**](BillingAgreementsApi.md#billingAgreementsIntimation) | **POST** /pts/v2/billing-agreements/{id}/intimations | Standing Instruction intimation |
| 9 | +[**billingAgreementsRegistration**](BillingAgreementsApi.md#billingAgreementsRegistration) | **POST** /pts/v2/billing-agreements | Standing Instruction completion registration |
| 10 | + |
| 11 | + |
| 12 | +<a name="billingAgreementsDeRegistration"></a> |
| 13 | +# **billingAgreementsDeRegistration** |
| 14 | +> PtsV2CreditsPost201Response1 billingAgreementsDeRegistration(modifyBillingAgreement, id) |
| 15 | +
|
| 16 | +Standing Instruction Cancellation or Modification |
| 17 | + |
| 18 | +Standing Instruction with or without Token |
| 19 | + |
| 20 | +### Example |
| 21 | +```java |
| 22 | +// Import classes: |
| 23 | +//import Invokers.ApiException; |
| 24 | +//import Api.BillingAgreementsApi; |
| 25 | + |
| 26 | + |
| 27 | +BillingAgreementsApi apiInstance = new BillingAgreementsApi(); |
| 28 | +ModifyBillingAgreement modifyBillingAgreement = new ModifyBillingAgreement(); // ModifyBillingAgreement | |
| 29 | +String id = "id_example"; // String | ID for de-registration or cancellation of Billing Agreement |
| 30 | +try { |
| 31 | + PtsV2CreditsPost201Response1 result = apiInstance.billingAgreementsDeRegistration(modifyBillingAgreement, id); |
| 32 | + System.out.println(result); |
| 33 | +} catch (ApiException e) { |
| 34 | + System.err.println("Exception when calling BillingAgreementsApi#billingAgreementsDeRegistration"); |
| 35 | + e.printStackTrace(); |
| 36 | +} |
| 37 | +``` |
| 38 | + |
| 39 | +### Parameters |
| 40 | + |
| 41 | +Name | Type | Description | Notes |
| 42 | +------------- | ------------- | ------------- | ------------- |
| 43 | + **modifyBillingAgreement** | [**ModifyBillingAgreement**](ModifyBillingAgreement.md)| | |
| 44 | + **id** | **String**| ID for de-registration or cancellation of Billing Agreement | |
| 45 | + |
| 46 | +### Return type |
| 47 | + |
| 48 | +[**PtsV2CreditsPost201Response1**](PtsV2CreditsPost201Response1.md) |
| 49 | + |
| 50 | +### Authorization |
| 51 | + |
| 52 | +No authorization required |
| 53 | + |
| 54 | +### HTTP request headers |
| 55 | + |
| 56 | + - **Content-Type**: application/json;charset=utf-8 |
| 57 | + - **Accept**: application/hal+json;charset=utf-8 |
| 58 | + |
| 59 | +<a name="billingAgreementsIntimation"></a> |
| 60 | +# **billingAgreementsIntimation** |
| 61 | +> PtsV2CreditsPost201Response1 billingAgreementsIntimation(intimateBillingAgreement, id) |
| 62 | +
|
| 63 | +Standing Instruction intimation |
| 64 | + |
| 65 | +Standing Instruction with or without Token. |
| 66 | + |
| 67 | +### Example |
| 68 | +```java |
| 69 | +// Import classes: |
| 70 | +//import Invokers.ApiException; |
| 71 | +//import Api.BillingAgreementsApi; |
| 72 | + |
| 73 | + |
| 74 | +BillingAgreementsApi apiInstance = new BillingAgreementsApi(); |
| 75 | +IntimateBillingAgreement intimateBillingAgreement = new IntimateBillingAgreement(); // IntimateBillingAgreement | |
| 76 | +String id = "id_example"; // String | ID for intimation of Billing Agreement |
| 77 | +try { |
| 78 | + PtsV2CreditsPost201Response1 result = apiInstance.billingAgreementsIntimation(intimateBillingAgreement, id); |
| 79 | + System.out.println(result); |
| 80 | +} catch (ApiException e) { |
| 81 | + System.err.println("Exception when calling BillingAgreementsApi#billingAgreementsIntimation"); |
| 82 | + e.printStackTrace(); |
| 83 | +} |
| 84 | +``` |
| 85 | + |
| 86 | +### Parameters |
| 87 | + |
| 88 | +Name | Type | Description | Notes |
| 89 | +------------- | ------------- | ------------- | ------------- |
| 90 | + **intimateBillingAgreement** | [**IntimateBillingAgreement**](IntimateBillingAgreement.md)| | |
| 91 | + **id** | **String**| ID for intimation of Billing Agreement | |
| 92 | + |
| 93 | +### Return type |
| 94 | + |
| 95 | +[**PtsV2CreditsPost201Response1**](PtsV2CreditsPost201Response1.md) |
| 96 | + |
| 97 | +### Authorization |
| 98 | + |
| 99 | +No authorization required |
| 100 | + |
| 101 | +### HTTP request headers |
| 102 | + |
| 103 | + - **Content-Type**: application/json;charset=utf-8 |
| 104 | + - **Accept**: application/hal+json;charset=utf-8 |
| 105 | + |
| 106 | +<a name="billingAgreementsRegistration"></a> |
| 107 | +# **billingAgreementsRegistration** |
| 108 | +> PtsV2CreditsPost201Response1 billingAgreementsRegistration(createBillingAgreement) |
| 109 | +
|
| 110 | +Standing Instruction completion registration |
| 111 | + |
| 112 | +Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed |
| 113 | + |
| 114 | +### Example |
| 115 | +```java |
| 116 | +// Import classes: |
| 117 | +//import Invokers.ApiException; |
| 118 | +//import Api.BillingAgreementsApi; |
| 119 | + |
| 120 | + |
| 121 | +BillingAgreementsApi apiInstance = new BillingAgreementsApi(); |
| 122 | +CreateBillingAgreement createBillingAgreement = new CreateBillingAgreement(); // CreateBillingAgreement | |
| 123 | +try { |
| 124 | + PtsV2CreditsPost201Response1 result = apiInstance.billingAgreementsRegistration(createBillingAgreement); |
| 125 | + System.out.println(result); |
| 126 | +} catch (ApiException e) { |
| 127 | + System.err.println("Exception when calling BillingAgreementsApi#billingAgreementsRegistration"); |
| 128 | + e.printStackTrace(); |
| 129 | +} |
| 130 | +``` |
| 131 | + |
| 132 | +### Parameters |
| 133 | + |
| 134 | +Name | Type | Description | Notes |
| 135 | +------------- | ------------- | ------------- | ------------- |
| 136 | + **createBillingAgreement** | [**CreateBillingAgreement**](CreateBillingAgreement.md)| | |
| 137 | + |
| 138 | +### Return type |
| 139 | + |
| 140 | +[**PtsV2CreditsPost201Response1**](PtsV2CreditsPost201Response1.md) |
| 141 | + |
| 142 | +### Authorization |
| 143 | + |
| 144 | +No authorization required |
| 145 | + |
| 146 | +### HTTP request headers |
| 147 | + |
| 148 | + - **Content-Type**: application/json;charset=utf-8 |
| 149 | + - **Accept**: application/hal+json;charset=utf-8 |
| 150 | + |
0 commit comments