cybersource-rest-client 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/docs/BillingAgreementsApi.md +155 -0
  2. package/docs/CreateBillingAgreement.md +16 -0
  3. package/docs/CreateBundledDecisionManagerCaseRequest.md +1 -0
  4. package/docs/IntimateBillingAgreement.md +12 -0
  5. package/docs/InvoiceSettingsApi.md +2 -2
  6. package/docs/InvoicesApi.md +6 -6
  7. package/docs/ModifyBillingAgreement.md +16 -0
  8. package/docs/PlansApi.md +8 -8
  9. package/docs/PtsV2CreditsPost201Response1.md +12 -0
  10. package/docs/PtsV2CreditsPost201Response1InstallmentInformation.md +8 -0
  11. package/docs/PtsV2CreditsPost201Response1ProcessorInformation.md +9 -0
  12. package/docs/Ptsv2billingagreementsAggregatorInformation.md +9 -0
  13. package/docs/Ptsv2billingagreementsConsumerAuthenticationInformation.md +11 -0
  14. package/docs/Ptsv2billingagreementsDeviceInformation.md +10 -0
  15. package/docs/Ptsv2billingagreementsInstallmentInformation.md +16 -0
  16. package/docs/Ptsv2billingagreementsMerchantInformation.md +11 -0
  17. package/docs/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.md +11 -0
  18. package/docs/Ptsv2billingagreementsOrderInformation.md +9 -0
  19. package/docs/Ptsv2billingagreementsOrderInformationBillTo.md +20 -0
  20. package/docs/Ptsv2billingagreementsPaymentInformation.md +9 -0
  21. package/docs/Ptsv2billingagreementsPaymentInformationCard.md +12 -0
  22. package/docs/Ptsv2billingagreementsPaymentInformationTokenizedCard.md +13 -0
  23. package/docs/Ptsv2billingagreementsProcessingInformation.md +9 -0
  24. package/docs/Ptsv2paymentsOrderInformation.md +1 -0
  25. package/docs/Riskv1authenticationsetupsTokenInformation.md +1 -0
  26. package/docs/Riskv1decisionsOrderInformation.md +1 -0
  27. package/docs/Riskv1decisionsTokenInformation.md +8 -0
  28. package/docs/SubscriptionsApi.md +8 -8
  29. package/docs/ValidateRequest.md +1 -0
  30. package/package.json +1 -1
  31. package/src/ApiClient.js +3 -1
  32. package/src/api/BillingAgreementsApi.js +203 -0
  33. package/src/api/InvoiceSettingsApi.js +2 -2
  34. package/src/api/InvoicesApi.js +6 -6
  35. package/src/api/PlansApi.js +8 -8
  36. package/src/api/SubscriptionsApi.js +8 -8
  37. package/src/index.js +103 -3
  38. package/src/model/CreateBillingAgreement.js +145 -0
  39. package/src/model/CreateBundledDecisionManagerCaseRequest.js +12 -4
  40. package/src/model/IntimateBillingAgreement.js +113 -0
  41. package/src/model/ModifyBillingAgreement.js +145 -0
  42. package/src/model/PtsV2CreditsPost201Response1.js +116 -0
  43. package/src/model/PtsV2CreditsPost201Response1InstallmentInformation.js +82 -0
  44. package/src/model/PtsV2CreditsPost201Response1ProcessorInformation.js +91 -0
  45. package/src/model/Ptsv2billingagreementsAggregatorInformation.js +90 -0
  46. package/src/model/Ptsv2billingagreementsConsumerAuthenticationInformation.js +109 -0
  47. package/src/model/Ptsv2billingagreementsDeviceInformation.js +100 -0
  48. package/src/model/Ptsv2billingagreementsInstallmentInformation.js +154 -0
  49. package/src/model/Ptsv2billingagreementsMerchantInformation.js +108 -0
  50. package/src/model/Ptsv2billingagreementsMerchantInformationMerchantDescriptor.js +109 -0
  51. package/src/model/Ptsv2billingagreementsOrderInformation.js +89 -0
  52. package/src/model/Ptsv2billingagreementsOrderInformationBillTo.js +190 -0
  53. package/src/model/Ptsv2billingagreementsPaymentInformation.js +89 -0
  54. package/src/model/Ptsv2billingagreementsPaymentInformationCard.js +118 -0
  55. package/src/model/Ptsv2billingagreementsPaymentInformationTokenizedCard.js +127 -0
  56. package/src/model/Ptsv2billingagreementsProcessingInformation.js +91 -0
  57. package/src/model/Ptsv2paymentsOrderInformation.js +9 -0
  58. package/src/model/Riskv1authenticationsetupsTokenInformation.js +9 -0
  59. package/src/model/Riskv1decisionsOrderInformation.js +9 -0
  60. package/src/model/Riskv1decisionsTokenInformation.js +82 -0
  61. package/src/model/ValidateRequest.js +12 -4
@@ -0,0 +1,9 @@
1
+ # CyberSource.Ptsv2billingagreementsProcessingInformation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **commerceIndicator** | **String** | Type of transaction. Used to determine fees based on channel. Possible values: - aesk: American Express SafeKey authentication was successful. - aesk_attempted: American Express SafeKey authentication was attempted but did not succeed. • install: Installment payment. - install_internet: Non-U.S. e-commerce (Internet) installment payment. This value is supported only on Visa Platform Connect. - internet (default for authorizations): E-commerce order placed using a web site. - js: JCB J/Secure authentication was successful. - js_attempted: JCB J/Secure authentication was attempted but did not succeed. - moto: Mail order or telephone order. - moto_cc: Mail order or telephone order from a call center. This value is supported only on the Asia, Middle East, and Africa Gateway. - pb: ProtectBuy authentication was successful. - pb_attempted: ProtectBuy authentication was attempted but did not succeed. - recurring: Recurring payment that is a U.S. transaction or non-U.S. mail order / telephone order (MOTO) transaction. - recurring_internet: Recurring payment that is a non-U.S. e-commerce (Internet) transaction. - retail: Card-present transaction. - spa: For Mastercard Identity Check: Authentication was successful or was attempted but did not succeed. The e-commerce indicator for all Mastercard Identity Check transactions, including authentication attempts, must be set to spa. - spa_attempted: Authentication for a co-badged Mastercard and Cartes Bancaires card was attempted but did not succeed. - spa_failure: – For Mastercard Identity Check: Authentication failed. This value is supported only on Elavon, HSBC, and Streamline. - vbv: – For Visa Secure: Authentication was successful. - vbv_attempted: – For Visa Secure: Authentication was attempted but did not succeed. - vbv_failure: – For Visa Secure: Authentication failed. This value is supported only on HSBC and Streamline. | [optional]
7
+ **actionList** | **[String]** | - Use `CONSUMER_AUTHENTICATION` to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run. - Use `WATCHLIST_SCREENING` when you want to call Watchlist Screening service. - Use `UPDATE_AGREEMENT` - Use `BILLING_AGREEMENT_CREATE` - Use `CANCEL_AGREEMENT` | [optional]
8
+
9
+
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **shippingDetails** | [**Ptsv2paymentsOrderInformationShippingDetails**](Ptsv2paymentsOrderInformationShippingDetails.md) | | [optional]
12
12
  **returnsAccepted** | **Boolean** | This is only needed when you are requesting both payment and DM service at same time. Boolean that indicates whether returns are accepted for this order. This field can contain one of the following values: - true: Returns are accepted for this order. - false: Returns are not accepted for this order. | [optional]
13
13
  **isCryptocurrencyPurchase** | **String** | #### Visa Platform Connect : This API will contain the Flag that specifies whether the payment is for the purchase of cryptocurrency. Additional values to add : This API will contain the Flag that specifies whether the payment is for the purchase of cryptocurrency. valid values are - Y/y, true - N/n, false | [optional]
14
+ **cutoffDateTime** | **String** | Starting date and time for an event or a journey that is independent of which transportation mechanism, in UTC. The cutoffDateTime will supersede travelInformation.transit.airline.legs[].departureDate and travelInformation.transit.airline.legs[].departureTime if these fields are supplied in the request. Format: YYYY-MM-DDThh:mm:ssZ. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional]
14
15
  **preOrder** | **String** | Indicates whether cardholder is placing an order with a future availability or release date. This field can contain one of these values: - MERCHANDISE_AVAILABLE: Merchandise available - FUTURE_AVAILABILITY: Future availability | [optional]
15
16
  **preOrderDate** | **String** | Expected date that a pre-ordered purchase will be available. Format: YYYYMMDD | [optional]
16
17
  **reordered** | **Boolean** | Indicates whether the cardholder is reordering previously purchased merchandise. This field can contain one of these values: - false: First time ordered - true: Reordered | [optional]
@@ -4,5 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **transientToken** | **String** | A temporary ID that represents the customer's payment data (which is securely stored in Visa Data Centers). Flex Microform generates this ID and sets it to expire within 15 minutes from when the ID is generated or until the first payment authorization is carried out (whichever occurs first). Valid value for the ID is a 64-character, alphanumeric string. Example: 1D08M4YB968R1F7YVL4TBBKYVNRIR02VZFH9CBYSQIJJXORPI1NK5C98D7F6EB53 | [optional]
7
+ **jti** | **String** | TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV). | [optional]
7
8
 
8
9
 
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **amountDetails** | [**Riskv1decisionsOrderInformationAmountDetails**](Riskv1decisionsOrderInformationAmountDetails.md) | | [optional]
7
7
  **preOrder** | **String** | Indicates whether cardholder is placing an order with a future availability or release date. This field can contain one of these values: - MERCHANDISE_AVAILABLE: Merchandise available - FUTURE_AVAILABILITY: Future availability | [optional]
8
8
  **preOrderDate** | **String** | Expected date that a pre-ordered purchase will be available. Format: YYYYMMDD | [optional]
9
+ **cutoffDateTime** | **String** | Starting date and time for an event or a journey that is independent of which transportation mechanism, in UTC. The cutoffDateTime will supersede travelInformation.departureTime if both are supplied in the request. Format: YYYY-MM-DDThh:mm:ssZ. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional]
9
10
  **reordered** | **Boolean** | Indicates whether the cardholder is reordering previously purchased merchandise. This field can contain one of these values: - false: First time ordered - true: Reordered | [optional]
10
11
  **shippingDetails** | [**Riskv1decisionsOrderInformationShippingDetails**](Riskv1decisionsOrderInformationShippingDetails.md) | | [optional]
11
12
  **shipTo** | [**Riskv1decisionsOrderInformationShipTo**](Riskv1decisionsOrderInformationShipTo.md) | | [optional]
@@ -0,0 +1,8 @@
1
+ # CyberSource.Riskv1decisionsTokenInformation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **jti** | **String** | TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV). | [optional]
7
+
8
+
@@ -58,7 +58,7 @@ No authorization required
58
58
  ### HTTP request headers
59
59
 
60
60
  - **Content-Type**: application/json;charset=utf-8
61
- - **Accept**: application/json;charset=utf-8
61
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
62
62
 
63
63
  <a name="cancelSubscription"></a>
64
64
  # **cancelSubscription**
@@ -104,7 +104,7 @@ No authorization required
104
104
  ### HTTP request headers
105
105
 
106
106
  - **Content-Type**: application/json;charset=utf-8
107
- - **Accept**: application/json;charset=utf-8
107
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
108
108
 
109
109
  <a name="createSubscription"></a>
110
110
  # **createSubscription**
@@ -150,7 +150,7 @@ No authorization required
150
150
  ### HTTP request headers
151
151
 
152
152
  - **Content-Type**: application/json;charset=utf-8
153
- - **Accept**: application/json;charset=utf-8
153
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
154
154
 
155
155
  <a name="getAllSubscriptions"></a>
156
156
  # **getAllSubscriptions**
@@ -203,7 +203,7 @@ No authorization required
203
203
  ### HTTP request headers
204
204
 
205
205
  - **Content-Type**: application/json;charset=utf-8
206
- - **Accept**: application/json;charset=utf-8
206
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
207
207
 
208
208
  <a name="getSubscription"></a>
209
209
  # **getSubscription**
@@ -249,7 +249,7 @@ No authorization required
249
249
  ### HTTP request headers
250
250
 
251
251
  - **Content-Type**: application/json;charset=utf-8
252
- - **Accept**: application/json;charset=utf-8
252
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
253
253
 
254
254
  <a name="getSubscriptionCode"></a>
255
255
  # **getSubscriptionCode**
@@ -289,7 +289,7 @@ No authorization required
289
289
  ### HTTP request headers
290
290
 
291
291
  - **Content-Type**: application/json;charset=utf-8
292
- - **Accept**: application/json;charset=utf-8
292
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
293
293
 
294
294
  <a name="suspendSubscription"></a>
295
295
  # **suspendSubscription**
@@ -335,7 +335,7 @@ No authorization required
335
335
  ### HTTP request headers
336
336
 
337
337
  - **Content-Type**: application/json;charset=utf-8
338
- - **Accept**: application/json;charset=utf-8
338
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
339
339
 
340
340
  <a name="updateSubscription"></a>
341
341
  # **updateSubscription**
@@ -384,5 +384,5 @@ No authorization required
384
384
  ### HTTP request headers
385
385
 
386
386
  - **Content-Type**: application/json;charset=utf-8
387
- - **Accept**: application/json;charset=utf-8
387
+ - **Accept**: application/json, application/hal+json, application/json;charset=utf-8, application/hal+json;charset=utf-8
388
388
 
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **paymentInformation** | [**Riskv1authenticationresultsPaymentInformation**](Riskv1authenticationresultsPaymentInformation.md) | | [optional]
10
10
  **consumerAuthenticationInformation** | [**Riskv1authenticationresultsConsumerAuthenticationInformation**](Riskv1authenticationresultsConsumerAuthenticationInformation.md) | | [optional]
11
11
  **deviceInformation** | [**Riskv1authenticationresultsDeviceInformation**](Riskv1authenticationresultsDeviceInformation.md) | | [optional]
12
+ **tokenInformation** | [**Riskv1decisionsTokenInformation**](Riskv1decisionsTokenInformation.md) | | [optional]
12
13
 
13
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cybersource-rest-client",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Node.js SDK for the CyberSource REST API",
5
5
  "author": "developer@cybersource.com",
6
6
  "license": "CyberSource",
package/src/ApiClient.js CHANGED
@@ -528,7 +528,9 @@
528
528
  if (httpMethod.toLowerCase() === this.constants.POST
529
529
  || httpMethod.toLowerCase() === this.constants.PATCH
530
530
  || httpMethod.toLowerCase() === this.constants.PUT) {
531
- bodyParam = JSON.stringify(bodyParam, null, 0);
531
+ if (bodyParam !== "{}") {
532
+ bodyParam = JSON.stringify(bodyParam, null, 0);
533
+ }
532
534
  }
533
535
 
534
536
  if (this.merchantConfig.getAuthenticationType().toLowerCase() !== this.constants.MUTUAL_AUTH)
@@ -0,0 +1,203 @@
1
+ /**
2
+ * CyberSource Merged Spec
3
+ * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ * NOTE: This class is auto generated by the swagger code generator program.
8
+ * https://github.com/swagger-api/swagger-codegen.git
9
+ *
10
+ * Swagger Codegen version: 2.3.0
11
+ *
12
+ * Do not edit the class manually.
13
+ *
14
+ */
15
+
16
+ (function(root, factory) {
17
+ if (typeof define === 'function' && define.amd) {
18
+ // AMD. Register as an anonymous module.
19
+ define(['ApiClient', 'model/CreateBillingAgreement', 'model/IntimateBillingAgreement', 'model/ModifyBillingAgreement', 'model/PtsV2CreditsPost201Response1', 'model/PtsV2PaymentsPost502Response', 'model/PtsV2PaymentsRefundPost400Response'], factory);
20
+ } else if (typeof module === 'object' && module.exports) {
21
+ // CommonJS-like environments that support module.exports, like Node.
22
+ module.exports = factory(require('../ApiClient'), require('../model/CreateBillingAgreement'), require('../model/IntimateBillingAgreement'), require('../model/ModifyBillingAgreement'), require('../model/PtsV2CreditsPost201Response1'), require('../model/PtsV2PaymentsPost502Response'), require('../model/PtsV2PaymentsRefundPost400Response'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.CyberSource) {
26
+ root.CyberSource = {};
27
+ }
28
+ root.CyberSource.BillingAgreementsApi = factory(root.CyberSource.ApiClient, root.CyberSource.CreateBillingAgreement, root.CyberSource.IntimateBillingAgreement, root.CyberSource.ModifyBillingAgreement, root.CyberSource.PtsV2CreditsPost201Response1, root.CyberSource.PtsV2PaymentsPost502Response, root.CyberSource.PtsV2PaymentsRefundPost400Response);
29
+ }
30
+ }(this, function(ApiClient, CreateBillingAgreement, IntimateBillingAgreement, ModifyBillingAgreement, PtsV2CreditsPost201Response1, PtsV2PaymentsPost502Response, PtsV2PaymentsRefundPost400Response) {
31
+ 'use strict';
32
+
33
+ /**
34
+ * BillingAgreements service.
35
+ * @module api/BillingAgreementsApi
36
+ * @version 0.0.1
37
+ */
38
+
39
+ /**
40
+ * Constructs a new BillingAgreementsApi.
41
+ * @alias module:api/BillingAgreementsApi
42
+ * @class
43
+ * @param {module:ApiClient} apiClient Optional API client implementation to use,
44
+ * default to {@link module:ApiClient#instance} if unspecified.
45
+ */
46
+ var exports = function(configObject, apiClient) {
47
+ this.apiClient = apiClient || ApiClient.instance;
48
+
49
+ this.apiClient.setConfiguration(configObject);
50
+
51
+
52
+ /**
53
+ * Callback function to receive the result of the billingAgreementsDeRegistration operation.
54
+ * @callback module:api/BillingAgreementsApi~billingAgreementsDeRegistrationCallback
55
+ * @param {String} error Error message, if any.
56
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
57
+ * @param {String} response The complete HTTP response.
58
+ */
59
+
60
+ /**
61
+ * Standing Instruction Cancellation or Modification
62
+ * Standing Instruction with or without Token
63
+ * @param {module:model/ModifyBillingAgreement} modifyBillingAgreement
64
+ * @param {String} id ID for de-registration or cancellation of Billing Agreement
65
+ * @param {module:api/BillingAgreementsApi~billingAgreementsDeRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
66
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
67
+ */
68
+ this.billingAgreementsDeRegistration = function(modifyBillingAgreement, id, callback) {
69
+ var postBody = modifyBillingAgreement;
70
+
71
+ // verify the required parameter 'modifyBillingAgreement' is set
72
+ if (modifyBillingAgreement === undefined || modifyBillingAgreement === null) {
73
+ throw new Error("Missing the required parameter 'modifyBillingAgreement' when calling billingAgreementsDeRegistration");
74
+ }
75
+
76
+ // verify the required parameter 'id' is set
77
+ if (id === undefined || id === null) {
78
+ throw new Error("Missing the required parameter 'id' when calling billingAgreementsDeRegistration");
79
+ }
80
+
81
+
82
+ var pathParams = {
83
+ 'id': id
84
+ };
85
+ var queryParams = {
86
+ };
87
+ var headerParams = {
88
+ };
89
+ var formParams = {
90
+ };
91
+
92
+ var authNames = [];
93
+ var contentTypes = ['application/json;charset=utf-8'];
94
+ var accepts = ['application/hal+json;charset=utf-8'];
95
+ var returnType = PtsV2CreditsPost201Response1;
96
+
97
+ return this.apiClient.callApi(
98
+ '/pts/v2/billing-agreements/{id}', 'PATCH',
99
+ pathParams, queryParams, headerParams, formParams, postBody,
100
+ authNames, contentTypes, accepts, returnType, callback
101
+ );
102
+ }
103
+
104
+ /**
105
+ * Callback function to receive the result of the billingAgreementsIntimation operation.
106
+ * @callback module:api/BillingAgreementsApi~billingAgreementsIntimationCallback
107
+ * @param {String} error Error message, if any.
108
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
109
+ * @param {String} response The complete HTTP response.
110
+ */
111
+
112
+ /**
113
+ * Standing Instruction intimation
114
+ * Standing Instruction with or without Token.
115
+ * @param {module:model/IntimateBillingAgreement} intimateBillingAgreement
116
+ * @param {String} id ID for intimation of Billing Agreement
117
+ * @param {module:api/BillingAgreementsApi~billingAgreementsIntimationCallback} callback The callback function, accepting three arguments: error, data, response
118
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
119
+ */
120
+ this.billingAgreementsIntimation = function(intimateBillingAgreement, id, callback) {
121
+ var postBody = intimateBillingAgreement;
122
+
123
+ // verify the required parameter 'intimateBillingAgreement' is set
124
+ if (intimateBillingAgreement === undefined || intimateBillingAgreement === null) {
125
+ throw new Error("Missing the required parameter 'intimateBillingAgreement' when calling billingAgreementsIntimation");
126
+ }
127
+
128
+ // verify the required parameter 'id' is set
129
+ if (id === undefined || id === null) {
130
+ throw new Error("Missing the required parameter 'id' when calling billingAgreementsIntimation");
131
+ }
132
+
133
+
134
+ var pathParams = {
135
+ 'id': id
136
+ };
137
+ var queryParams = {
138
+ };
139
+ var headerParams = {
140
+ };
141
+ var formParams = {
142
+ };
143
+
144
+ var authNames = [];
145
+ var contentTypes = ['application/json;charset=utf-8'];
146
+ var accepts = ['application/hal+json;charset=utf-8'];
147
+ var returnType = PtsV2CreditsPost201Response1;
148
+
149
+ return this.apiClient.callApi(
150
+ '/pts/v2/billing-agreements/{id}/intimations', 'POST',
151
+ pathParams, queryParams, headerParams, formParams, postBody,
152
+ authNames, contentTypes, accepts, returnType, callback
153
+ );
154
+ }
155
+
156
+ /**
157
+ * Callback function to receive the result of the billingAgreementsRegistration operation.
158
+ * @callback module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback
159
+ * @param {String} error Error message, if any.
160
+ * @param {module:model/PtsV2CreditsPost201Response1} data The data returned by the service call.
161
+ * @param {String} response The complete HTTP response.
162
+ */
163
+
164
+ /**
165
+ * Standing Instruction completion registration
166
+ * Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed
167
+ * @param {module:model/CreateBillingAgreement} createBillingAgreement
168
+ * @param {module:api/BillingAgreementsApi~billingAgreementsRegistrationCallback} callback The callback function, accepting three arguments: error, data, response
169
+ * data is of type: {@link module:model/PtsV2CreditsPost201Response1}
170
+ */
171
+ this.billingAgreementsRegistration = function(createBillingAgreement, callback) {
172
+ var postBody = createBillingAgreement;
173
+
174
+ // verify the required parameter 'createBillingAgreement' is set
175
+ if (createBillingAgreement === undefined || createBillingAgreement === null) {
176
+ throw new Error("Missing the required parameter 'createBillingAgreement' when calling billingAgreementsRegistration");
177
+ }
178
+
179
+
180
+ var pathParams = {
181
+ };
182
+ var queryParams = {
183
+ };
184
+ var headerParams = {
185
+ };
186
+ var formParams = {
187
+ };
188
+
189
+ var authNames = [];
190
+ var contentTypes = ['application/json;charset=utf-8'];
191
+ var accepts = ['application/hal+json;charset=utf-8'];
192
+ var returnType = PtsV2CreditsPost201Response1;
193
+
194
+ return this.apiClient.callApi(
195
+ '/pts/v2/billing-agreements', 'POST',
196
+ pathParams, queryParams, headerParams, formParams, postBody,
197
+ authNames, contentTypes, accepts, returnType, callback
198
+ );
199
+ }
200
+ };
201
+
202
+ return exports;
203
+ }));
@@ -81,7 +81,7 @@
81
81
 
82
82
  var authNames = [];
83
83
  var contentTypes = ['application/json;charset=utf-8'];
84
- var accepts = ['application/json;charset=utf-8'];
84
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
85
85
  var returnType = InvoicingV2InvoiceSettingsGet200Response;
86
86
 
87
87
  return this.apiClient.callApi(
@@ -126,7 +126,7 @@
126
126
 
127
127
  var authNames = [];
128
128
  var contentTypes = ['application/json;charset=utf-8'];
129
- var accepts = ['application/json;charset=utf-8'];
129
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
130
130
  var returnType = InvoicingV2InvoiceSettingsGet200Response;
131
131
 
132
132
  return this.apiClient.callApi(
@@ -84,7 +84,7 @@
84
84
 
85
85
  var authNames = [];
86
86
  var contentTypes = ['application/json;charset=utf-8'];
87
- var accepts = ['application/json;charset=utf-8'];
87
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
88
88
  var returnType = InvoicingV2InvoicesPost201Response;
89
89
 
90
90
  return this.apiClient.callApi(
@@ -144,7 +144,7 @@
144
144
 
145
145
  var authNames = [];
146
146
  var contentTypes = ['application/json;charset=utf-8'];
147
- var accepts = ['application/json;charset=utf-8'];
147
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
148
148
  var returnType = InvoicingV2InvoicesAllGet200Response;
149
149
 
150
150
  return this.apiClient.callApi(
@@ -193,7 +193,7 @@
193
193
 
194
194
  var authNames = [];
195
195
  var contentTypes = ['application/json;charset=utf-8'];
196
- var accepts = ['application/json;charset=utf-8'];
196
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
197
197
  var returnType = InvoicingV2InvoicesGet200Response;
198
198
 
199
199
  return this.apiClient.callApi(
@@ -242,7 +242,7 @@
242
242
 
243
243
  var authNames = [];
244
244
  var contentTypes = ['application/json;charset=utf-8'];
245
- var accepts = ['application/json;charset=utf-8'];
245
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
246
246
  var returnType = InvoicingV2InvoicesPost201Response;
247
247
 
248
248
  return this.apiClient.callApi(
@@ -291,7 +291,7 @@
291
291
 
292
292
  var authNames = [];
293
293
  var contentTypes = ['application/json;charset=utf-8'];
294
- var accepts = ['application/json;charset=utf-8'];
294
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
295
295
  var returnType = InvoicingV2InvoicesPost201Response;
296
296
 
297
297
  return this.apiClient.callApi(
@@ -343,7 +343,7 @@
343
343
 
344
344
  var authNames = [];
345
345
  var contentTypes = ['application/json;charset=utf-8'];
346
- var accepts = ['application/json;charset=utf-8'];
346
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
347
347
  var returnType = InvoicingV2InvoicesPost201Response;
348
348
 
349
349
  return this.apiClient.callApi(
@@ -88,7 +88,7 @@
88
88
 
89
89
  var authNames = [];
90
90
  var contentTypes = ['application/json;charset=utf-8'];
91
- var accepts = ['application/json;charset=utf-8'];
91
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
92
92
  var returnType = InlineResponse2004;
93
93
 
94
94
  return this.apiClient.callApi(
@@ -133,7 +133,7 @@
133
133
 
134
134
  var authNames = [];
135
135
  var contentTypes = ['application/json;charset=utf-8'];
136
- var accepts = ['application/json;charset=utf-8'];
136
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
137
137
  var returnType = InlineResponse201;
138
138
 
139
139
  return this.apiClient.callApi(
@@ -182,7 +182,7 @@
182
182
 
183
183
  var authNames = [];
184
184
  var contentTypes = ['application/json;charset=utf-8'];
185
- var accepts = ['application/json;charset=utf-8'];
185
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
186
186
  var returnType = InlineResponse2004;
187
187
 
188
188
  return this.apiClient.callApi(
@@ -231,7 +231,7 @@
231
231
 
232
232
  var authNames = [];
233
233
  var contentTypes = ['application/json;charset=utf-8'];
234
- var accepts = ['application/json;charset=utf-8'];
234
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
235
235
  var returnType = InlineResponse2002;
236
236
 
237
237
  return this.apiClient.callApi(
@@ -280,7 +280,7 @@
280
280
 
281
281
  var authNames = [];
282
282
  var contentTypes = ['application/json;charset=utf-8'];
283
- var accepts = ['application/json;charset=utf-8'];
283
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
284
284
  var returnType = InlineResponse2001;
285
285
 
286
286
  return this.apiClient.callApi(
@@ -322,7 +322,7 @@
322
322
 
323
323
  var authNames = [];
324
324
  var contentTypes = ['application/json;charset=utf-8'];
325
- var accepts = ['application/json;charset=utf-8'];
325
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
326
326
  var returnType = InlineResponse2005;
327
327
 
328
328
  return this.apiClient.callApi(
@@ -376,7 +376,7 @@
376
376
 
377
377
  var authNames = [];
378
378
  var contentTypes = ['application/json;charset=utf-8'];
379
- var accepts = ['application/json;charset=utf-8'];
379
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
380
380
  var returnType = InlineResponse200;
381
381
 
382
382
  return this.apiClient.callApi(
@@ -428,7 +428,7 @@
428
428
 
429
429
  var authNames = [];
430
430
  var contentTypes = ['application/json;charset=utf-8'];
431
- var accepts = ['application/json;charset=utf-8'];
431
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
432
432
  var returnType = InlineResponse2003;
433
433
 
434
434
  return this.apiClient.callApi(
@@ -88,7 +88,7 @@
88
88
 
89
89
  var authNames = [];
90
90
  var contentTypes = ['application/json;charset=utf-8'];
91
- var accepts = ['application/json;charset=utf-8'];
91
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
92
92
  var returnType = InlineResponse2009;
93
93
 
94
94
  return this.apiClient.callApi(
@@ -137,7 +137,7 @@
137
137
 
138
138
  var authNames = [];
139
139
  var contentTypes = ['application/json;charset=utf-8'];
140
- var accepts = ['application/json;charset=utf-8'];
140
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
141
141
  var returnType = InlineResponse202;
142
142
 
143
143
  return this.apiClient.callApi(
@@ -182,7 +182,7 @@
182
182
 
183
183
  var authNames = [];
184
184
  var contentTypes = ['application/json;charset=utf-8'];
185
- var accepts = ['application/json;charset=utf-8'];
185
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
186
186
  var returnType = InlineResponse2011;
187
187
 
188
188
  return this.apiClient.callApi(
@@ -234,7 +234,7 @@
234
234
 
235
235
  var authNames = [];
236
236
  var contentTypes = ['application/json;charset=utf-8'];
237
- var accepts = ['application/json;charset=utf-8'];
237
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
238
238
  var returnType = InlineResponse2006;
239
239
 
240
240
  return this.apiClient.callApi(
@@ -283,7 +283,7 @@
283
283
 
284
284
  var authNames = [];
285
285
  var contentTypes = ['application/json;charset=utf-8'];
286
- var accepts = ['application/json;charset=utf-8'];
286
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
287
287
  var returnType = InlineResponse2007;
288
288
 
289
289
  return this.apiClient.callApi(
@@ -325,7 +325,7 @@
325
325
 
326
326
  var authNames = [];
327
327
  var contentTypes = ['application/json;charset=utf-8'];
328
- var accepts = ['application/json;charset=utf-8'];
328
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
329
329
  var returnType = InlineResponse20010;
330
330
 
331
331
  return this.apiClient.callApi(
@@ -374,7 +374,7 @@
374
374
 
375
375
  var authNames = [];
376
376
  var contentTypes = ['application/json;charset=utf-8'];
377
- var accepts = ['application/json;charset=utf-8'];
377
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
378
378
  var returnType = InlineResponse2021;
379
379
 
380
380
  return this.apiClient.callApi(
@@ -426,7 +426,7 @@
426
426
 
427
427
  var authNames = [];
428
428
  var contentTypes = ['application/json;charset=utf-8'];
429
- var accepts = ['application/json;charset=utf-8'];
429
+ var accepts = ['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'];
430
430
  var returnType = InlineResponse2008;
431
431
 
432
432
  return this.apiClient.callApi(