oci-ospgateway 2.63.0 → 2.65.0

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 (101) hide show
  1. package/LICENSE.txt +6 -6
  2. package/index.d.ts +2 -0
  3. package/index.js +3 -1
  4. package/index.js.map +1 -1
  5. package/lib/client.d.ts +151 -20
  6. package/lib/client.js +436 -31
  7. package/lib/client.js.map +1 -1
  8. package/lib/model/address-quality-type.d.ts +31 -0
  9. package/lib/model/address-quality-type.js +42 -0
  10. package/lib/model/address-quality-type.js.map +1 -0
  11. package/lib/model/address-rule.d.ts +29 -0
  12. package/lib/model/address-rule.js +61 -0
  13. package/lib/model/address-rule.js.map +1 -0
  14. package/lib/model/address-type-rule.d.ts +30 -0
  15. package/lib/model/address-type-rule.js +61 -0
  16. package/lib/model/address-type-rule.js.map +1 -0
  17. package/lib/model/address-verification-code.d.ts +31 -0
  18. package/lib/model/address-verification-code.js +42 -0
  19. package/lib/model/address-verification-code.js.map +1 -0
  20. package/lib/model/address.d.ts +125 -0
  21. package/lib/model/{billing-address.js → address.js} +7 -7
  22. package/lib/model/address.js.map +1 -0
  23. package/lib/model/contact-type-rule.d.ts +26 -0
  24. package/lib/model/contact-type-rule.js +61 -0
  25. package/lib/model/contact-type-rule.js.map +1 -0
  26. package/lib/model/echeck-payment-detail.d.ts +50 -0
  27. package/lib/model/echeck-payment-detail.js +63 -0
  28. package/lib/model/echeck-payment-detail.js.map +1 -0
  29. package/lib/model/field.d.ts +36 -0
  30. package/lib/model/field.js +55 -0
  31. package/lib/model/field.js.map +1 -0
  32. package/lib/model/format.d.ts +29 -0
  33. package/lib/model/format.js +29 -0
  34. package/lib/model/format.js.map +1 -0
  35. package/lib/model/index.d.ts +28 -2
  36. package/lib/model/index.js +29 -3
  37. package/lib/model/index.js.map +1 -1
  38. package/lib/model/invoice-summary.d.ts +1 -1
  39. package/lib/model/invoice-summary.js.map +1 -1
  40. package/lib/model/invoice.d.ts +1 -1
  41. package/lib/model/invoice.js.map +1 -1
  42. package/lib/model/label.d.ts +29 -0
  43. package/lib/model/label.js +29 -0
  44. package/lib/model/label.js.map +1 -0
  45. package/lib/model/other-payment-detail.d.ts +3 -0
  46. package/lib/model/other-payment-detail.js +3 -0
  47. package/lib/model/other-payment-detail.js.map +1 -1
  48. package/lib/model/payment-detail.js +4 -0
  49. package/lib/model/payment-detail.js.map +1 -1
  50. package/lib/model/subscription-summary.d.ts +19 -1
  51. package/lib/model/subscription-summary.js +13 -2
  52. package/lib/model/subscription-summary.js.map +1 -1
  53. package/lib/model/subscription.d.ts +19 -1
  54. package/lib/model/subscription.js +13 -2
  55. package/lib/model/subscription.js.map +1 -1
  56. package/lib/model/tax-type-rule.d.ts +26 -0
  57. package/lib/model/tax-type-rule.js +61 -0
  58. package/lib/model/tax-type-rule.js.map +1 -0
  59. package/lib/model/third-party-validation-type.d.ts +29 -0
  60. package/lib/model/third-party-validation-type.js +40 -0
  61. package/lib/model/third-party-validation-type.js.map +1 -0
  62. package/lib/model/verify-address-details.d.ts +125 -0
  63. package/lib/model/verify-address-details.js +29 -0
  64. package/lib/model/verify-address-details.js.map +1 -0
  65. package/lib/model/verify-address-receipt.d.ts +31 -0
  66. package/lib/model/verify-address-receipt.js +53 -0
  67. package/lib/model/verify-address-receipt.js.map +1 -0
  68. package/lib/request/authorize-subscription-payment-request.d.ts +1 -1
  69. package/lib/request/download-pdf-content-request.d.ts +1 -1
  70. package/lib/request/get-address-request.d.ts +38 -0
  71. package/lib/request/get-address-request.js +15 -0
  72. package/lib/request/get-address-request.js.map +1 -0
  73. package/lib/request/get-address-rule-request.d.ts +39 -0
  74. package/lib/request/get-address-rule-request.js +15 -0
  75. package/lib/request/get-address-rule-request.js.map +1 -0
  76. package/lib/request/get-invoice-request.d.ts +1 -1
  77. package/lib/request/get-subscription-request.d.ts +1 -1
  78. package/lib/request/index.d.ts +6 -0
  79. package/lib/request/index.js.map +1 -1
  80. package/lib/request/list-invoice-lines-request.d.ts +1 -1
  81. package/lib/request/list-invoices-request.d.ts +1 -1
  82. package/lib/request/list-subscriptions-request.d.ts +1 -1
  83. package/lib/request/pay-invoice-request.d.ts +1 -1
  84. package/lib/request/pay-subscription-request.d.ts +1 -1
  85. package/lib/request/update-subscription-request.d.ts +1 -1
  86. package/lib/request/verify-address-request.d.ts +54 -0
  87. package/lib/request/verify-address-request.js +15 -0
  88. package/lib/request/verify-address-request.js.map +1 -0
  89. package/lib/response/get-address-response.d.ts +25 -0
  90. package/lib/response/get-address-response.js +15 -0
  91. package/lib/response/get-address-response.js.map +1 -0
  92. package/lib/response/get-address-rule-response.d.ts +25 -0
  93. package/lib/response/get-address-rule-response.js +15 -0
  94. package/lib/response/get-address-rule-response.js.map +1 -0
  95. package/lib/response/index.d.ts +6 -0
  96. package/lib/response/verify-address-response.d.ts +29 -0
  97. package/lib/response/verify-address-response.js +15 -0
  98. package/lib/response/verify-address-response.js.map +1 -0
  99. package/package.json +3 -3
  100. package/lib/model/billing-address.d.ts +0 -65
  101. package/lib/model/billing-address.js.map +0 -1
package/lib/client.js CHANGED
@@ -40,13 +40,418 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
40
40
  });
41
41
  };
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.SubscriptionServiceClient = exports.SubscriptionServiceApiKeys = exports.InvoiceServiceClient = exports.InvoiceServiceApiKeys = void 0;
43
+ exports.SubscriptionServiceClient = exports.SubscriptionServiceApiKeys = exports.InvoiceServiceClient = exports.InvoiceServiceApiKeys = exports.AddressServiceClient = exports.AddressServiceApiKeys = exports.AddressRuleServiceClient = exports.AddressRuleServiceApiKeys = void 0;
44
44
  const common = require("oci-common");
45
45
  const model = __importStar(require("./model"));
46
46
  const oci_common_1 = require("oci-common");
47
47
  // ===============================================
48
48
  // This file is autogenerated - Please do not edit
49
49
  // ===============================================
50
+ var AddressRuleServiceApiKeys;
51
+ (function (AddressRuleServiceApiKeys) {
52
+ })(AddressRuleServiceApiKeys = exports.AddressRuleServiceApiKeys || (exports.AddressRuleServiceApiKeys = {}));
53
+ /**
54
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
55
+ */
56
+ class AddressRuleServiceClient {
57
+ constructor(params, clientConfiguration) {
58
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
59
+ this["_endpoint"] = "";
60
+ this["_defaultHeaders"] = {};
61
+ this._circuitBreaker = null;
62
+ this._httpOptions = undefined;
63
+ this.targetService = "AddressRuleService";
64
+ this._regionId = "";
65
+ this._lastSetRegionOrRegionId = "";
66
+ const requestSigner = params.authenticationDetailsProvider
67
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
68
+ : null;
69
+ if (clientConfiguration) {
70
+ this._clientConfiguration = clientConfiguration;
71
+ this._circuitBreaker = clientConfiguration.circuitBreaker
72
+ ? clientConfiguration.circuitBreaker.circuit
73
+ : null;
74
+ this._httpOptions = clientConfiguration.httpOptions
75
+ ? clientConfiguration.httpOptions
76
+ : undefined;
77
+ }
78
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
79
+ const specCircuitBreakerEnabled = true;
80
+ if (!this._circuitBreaker &&
81
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
82
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
83
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
84
+ }
85
+ this._httpClient =
86
+ params.httpClient ||
87
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
88
+ if (params.authenticationDetailsProvider &&
89
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
90
+ const provider = params.authenticationDetailsProvider;
91
+ if (provider.getRegion()) {
92
+ this.region = provider.getRegion();
93
+ }
94
+ }
95
+ }
96
+ /**
97
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
98
+ */
99
+ get endpoint() {
100
+ return this._endpoint;
101
+ }
102
+ /**
103
+ * Sets the endpoint to call (ex, https://www.example.com).
104
+ * @param endpoint The endpoint of the service.
105
+ */
106
+ set endpoint(endpoint) {
107
+ this._endpoint = endpoint;
108
+ this._endpoint = this._endpoint + "/20191001";
109
+ if (this.logger)
110
+ this.logger.info(`AddressRuleServiceClient endpoint set to ${this._endpoint}`);
111
+ }
112
+ get logger() {
113
+ return common.LOG.logger;
114
+ }
115
+ /**
116
+ * Determines whether realm specific endpoint should be used or not.
117
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
118
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
119
+ */
120
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
121
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
122
+ if (this.logger)
123
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
124
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
125
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AddressRuleServiceClient.serviceEndpointTemplate, this._region, AddressRuleServiceClient.endpointServiceName);
126
+ }
127
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
128
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AddressRuleServiceClient.serviceEndpointTemplate, this._regionId, AddressRuleServiceClient.endpointServiceName);
129
+ }
130
+ }
131
+ /**
132
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
133
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
134
+ * @param region The region of the service.
135
+ */
136
+ set region(region) {
137
+ this._region = region;
138
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AddressRuleServiceClient.serviceEndpointTemplate, region, AddressRuleServiceClient.endpointServiceName);
139
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
140
+ }
141
+ /**
142
+ * Sets the regionId to call (ex, 'us-phoenix-1').
143
+ *
144
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
145
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
146
+ * and then call {@link #endpoint(String) endpoint}.
147
+ * @param regionId The public region ID.
148
+ */
149
+ set regionId(regionId) {
150
+ this._regionId = regionId;
151
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AddressRuleServiceClient.serviceEndpointTemplate, regionId, AddressRuleServiceClient.endpointServiceName);
152
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
153
+ }
154
+ /**
155
+ * Get the address rule for the compartment based on the country code
156
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
157
+ * @param GetAddressRuleRequest
158
+ * @return GetAddressRuleResponse
159
+ * @throws OciError when an error occurs
160
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/GetAddressRule.ts.html |here} to see how to use GetAddressRule API.
161
+ */
162
+ getAddressRule(getAddressRuleRequest) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ if (this.logger)
165
+ this.logger.debug("Calling operation AddressRuleServiceClient#getAddressRule.");
166
+ const operationName = "getAddressRule";
167
+ const apiReferenceLink = "";
168
+ const pathParams = {
169
+ "{countryCode}": getAddressRuleRequest.countryCode
170
+ };
171
+ const queryParams = {
172
+ "ospHomeRegion": getAddressRuleRequest.ospHomeRegion,
173
+ "compartmentId": getAddressRuleRequest.compartmentId
174
+ };
175
+ let headerParams = {
176
+ "Content-Type": common.Constants.APPLICATION_JSON,
177
+ "opc-request-id": getAddressRuleRequest.opcRequestId
178
+ };
179
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
180
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAddressRuleRequest.retryConfiguration, specRetryConfiguration);
181
+ if (this.logger)
182
+ retrier.logger = this.logger;
183
+ const request = yield oci_common_1.composeRequest({
184
+ baseEndpoint: this._endpoint,
185
+ defaultHeaders: this._defaultHeaders,
186
+ path: "/addressRules/{countryCode}",
187
+ method: "GET",
188
+ pathParams: pathParams,
189
+ headerParams: headerParams,
190
+ queryParams: queryParams
191
+ });
192
+ try {
193
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
194
+ const sdkResponse = oci_common_1.composeResponse({
195
+ responseObject: {},
196
+ body: yield response.json(),
197
+ bodyKey: "addressRule",
198
+ bodyModel: model.AddressRule,
199
+ type: "model.AddressRule",
200
+ responseHeaders: [
201
+ {
202
+ value: response.headers.get("opc-request-id"),
203
+ key: "opcRequestId",
204
+ dataType: "string"
205
+ }
206
+ ]
207
+ });
208
+ return sdkResponse;
209
+ }
210
+ catch (err) {
211
+ throw err;
212
+ }
213
+ });
214
+ }
215
+ }
216
+ exports.AddressRuleServiceClient = AddressRuleServiceClient;
217
+ AddressRuleServiceClient.serviceEndpointTemplate = "https://ospap.oracle.com";
218
+ AddressRuleServiceClient.endpointServiceName = "";
219
+ var AddressServiceApiKeys;
220
+ (function (AddressServiceApiKeys) {
221
+ })(AddressServiceApiKeys = exports.AddressServiceApiKeys || (exports.AddressServiceApiKeys = {}));
222
+ /**
223
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
224
+ */
225
+ class AddressServiceClient {
226
+ constructor(params, clientConfiguration) {
227
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
228
+ this["_endpoint"] = "";
229
+ this["_defaultHeaders"] = {};
230
+ this._circuitBreaker = null;
231
+ this._httpOptions = undefined;
232
+ this.targetService = "AddressService";
233
+ this._regionId = "";
234
+ this._lastSetRegionOrRegionId = "";
235
+ const requestSigner = params.authenticationDetailsProvider
236
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
237
+ : null;
238
+ if (clientConfiguration) {
239
+ this._clientConfiguration = clientConfiguration;
240
+ this._circuitBreaker = clientConfiguration.circuitBreaker
241
+ ? clientConfiguration.circuitBreaker.circuit
242
+ : null;
243
+ this._httpOptions = clientConfiguration.httpOptions
244
+ ? clientConfiguration.httpOptions
245
+ : undefined;
246
+ }
247
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
248
+ const specCircuitBreakerEnabled = true;
249
+ if (!this._circuitBreaker &&
250
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
251
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
252
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
253
+ }
254
+ this._httpClient =
255
+ params.httpClient ||
256
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
257
+ if (params.authenticationDetailsProvider &&
258
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
259
+ const provider = params.authenticationDetailsProvider;
260
+ if (provider.getRegion()) {
261
+ this.region = provider.getRegion();
262
+ }
263
+ }
264
+ }
265
+ /**
266
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
267
+ */
268
+ get endpoint() {
269
+ return this._endpoint;
270
+ }
271
+ /**
272
+ * Sets the endpoint to call (ex, https://www.example.com).
273
+ * @param endpoint The endpoint of the service.
274
+ */
275
+ set endpoint(endpoint) {
276
+ this._endpoint = endpoint;
277
+ this._endpoint = this._endpoint + "/20191001";
278
+ if (this.logger)
279
+ this.logger.info(`AddressServiceClient endpoint set to ${this._endpoint}`);
280
+ }
281
+ get logger() {
282
+ return common.LOG.logger;
283
+ }
284
+ /**
285
+ * Determines whether realm specific endpoint should be used or not.
286
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
287
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
288
+ */
289
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
290
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
291
+ if (this.logger)
292
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
293
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
294
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AddressServiceClient.serviceEndpointTemplate, this._region, AddressServiceClient.endpointServiceName);
295
+ }
296
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
297
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AddressServiceClient.serviceEndpointTemplate, this._regionId, AddressServiceClient.endpointServiceName);
298
+ }
299
+ }
300
+ /**
301
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
302
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
303
+ * @param region The region of the service.
304
+ */
305
+ set region(region) {
306
+ this._region = region;
307
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AddressServiceClient.serviceEndpointTemplate, region, AddressServiceClient.endpointServiceName);
308
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
309
+ }
310
+ /**
311
+ * Sets the regionId to call (ex, 'us-phoenix-1').
312
+ *
313
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
314
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
315
+ * and then call {@link #endpoint(String) endpoint}.
316
+ * @param regionId The public region ID.
317
+ */
318
+ set regionId(regionId) {
319
+ this._regionId = regionId;
320
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AddressServiceClient.serviceEndpointTemplate, regionId, AddressServiceClient.endpointServiceName);
321
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
322
+ }
323
+ /**
324
+ * Get the address by id for the compartment
325
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
326
+ * @param GetAddressRequest
327
+ * @return GetAddressResponse
328
+ * @throws OciError when an error occurs
329
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/GetAddress.ts.html |here} to see how to use GetAddress API.
330
+ */
331
+ getAddress(getAddressRequest) {
332
+ return __awaiter(this, void 0, void 0, function* () {
333
+ if (this.logger)
334
+ this.logger.debug("Calling operation AddressServiceClient#getAddress.");
335
+ const operationName = "getAddress";
336
+ const apiReferenceLink = "";
337
+ const pathParams = {
338
+ "{addressId}": getAddressRequest.addressId
339
+ };
340
+ const queryParams = {
341
+ "ospHomeRegion": getAddressRequest.ospHomeRegion,
342
+ "compartmentId": getAddressRequest.compartmentId
343
+ };
344
+ let headerParams = {
345
+ "Content-Type": common.Constants.APPLICATION_JSON,
346
+ "opc-request-id": getAddressRequest.opcRequestId
347
+ };
348
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
349
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAddressRequest.retryConfiguration, specRetryConfiguration);
350
+ if (this.logger)
351
+ retrier.logger = this.logger;
352
+ const request = yield oci_common_1.composeRequest({
353
+ baseEndpoint: this._endpoint,
354
+ defaultHeaders: this._defaultHeaders,
355
+ path: "/addresses/{addressId}",
356
+ method: "GET",
357
+ pathParams: pathParams,
358
+ headerParams: headerParams,
359
+ queryParams: queryParams
360
+ });
361
+ try {
362
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
363
+ const sdkResponse = oci_common_1.composeResponse({
364
+ responseObject: {},
365
+ body: yield response.json(),
366
+ bodyKey: "address",
367
+ bodyModel: model.Address,
368
+ type: "model.Address",
369
+ responseHeaders: [
370
+ {
371
+ value: response.headers.get("opc-request-id"),
372
+ key: "opcRequestId",
373
+ dataType: "string"
374
+ }
375
+ ]
376
+ });
377
+ return sdkResponse;
378
+ }
379
+ catch (err) {
380
+ throw err;
381
+ }
382
+ });
383
+ }
384
+ /**
385
+ * Verify address
386
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
387
+ * @param VerifyAddressRequest
388
+ * @return VerifyAddressResponse
389
+ * @throws OciError when an error occurs
390
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/VerifyAddress.ts.html |here} to see how to use VerifyAddress API.
391
+ */
392
+ verifyAddress(verifyAddressRequest) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ if (this.logger)
395
+ this.logger.debug("Calling operation AddressServiceClient#verifyAddress.");
396
+ const operationName = "verifyAddress";
397
+ const apiReferenceLink = "";
398
+ const pathParams = {};
399
+ const queryParams = {
400
+ "ospHomeRegion": verifyAddressRequest.ospHomeRegion,
401
+ "compartmentId": verifyAddressRequest.compartmentId
402
+ };
403
+ let headerParams = {
404
+ "Content-Type": common.Constants.APPLICATION_JSON,
405
+ "if-match": verifyAddressRequest.ifMatch,
406
+ "opc-retry-token": verifyAddressRequest.opcRetryToken,
407
+ "opc-request-id": verifyAddressRequest.opcRequestId
408
+ };
409
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
410
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, verifyAddressRequest.retryConfiguration, specRetryConfiguration);
411
+ if (this.logger)
412
+ retrier.logger = this.logger;
413
+ const request = yield oci_common_1.composeRequest({
414
+ baseEndpoint: this._endpoint,
415
+ defaultHeaders: this._defaultHeaders,
416
+ path: "/addresses/action/verification",
417
+ method: "POST",
418
+ bodyContent: common.ObjectSerializer.serialize(verifyAddressRequest.verifyAddressDetails, "VerifyAddressDetails", model.VerifyAddressDetails.getJsonObj),
419
+ pathParams: pathParams,
420
+ headerParams: headerParams,
421
+ queryParams: queryParams
422
+ });
423
+ try {
424
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
425
+ const sdkResponse = oci_common_1.composeResponse({
426
+ responseObject: {},
427
+ body: yield response.json(),
428
+ bodyKey: "verifyAddressReceipt",
429
+ bodyModel: model.VerifyAddressReceipt,
430
+ type: "model.VerifyAddressReceipt",
431
+ responseHeaders: [
432
+ {
433
+ value: response.headers.get("opc-request-id"),
434
+ key: "opcRequestId",
435
+ dataType: "string"
436
+ },
437
+ {
438
+ value: response.headers.get("etag"),
439
+ key: "etag",
440
+ dataType: "string"
441
+ }
442
+ ]
443
+ });
444
+ return sdkResponse;
445
+ }
446
+ catch (err) {
447
+ throw err;
448
+ }
449
+ });
450
+ }
451
+ }
452
+ exports.AddressServiceClient = AddressServiceClient;
453
+ AddressServiceClient.serviceEndpointTemplate = "https://ospap.oracle.com";
454
+ AddressServiceClient.endpointServiceName = "";
50
455
  var InvoiceServiceApiKeys;
51
456
  (function (InvoiceServiceApiKeys) {
52
457
  })(InvoiceServiceApiKeys = exports.InvoiceServiceApiKeys || (exports.InvoiceServiceApiKeys = {}));
@@ -153,11 +558,11 @@ class InvoiceServiceClient {
153
558
  }
154
559
  /**
155
560
  * Returns an invoice in pdf format
156
- * This operation does not retry by default if the user has not defined a retry configuration.
561
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
157
562
  * @param DownloadPdfContentRequest
158
563
  * @return DownloadPdfContentResponse
159
564
  * @throws OciError when an error occurs
160
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/DownloadPdfContent.ts.html |here} to see how to use DownloadPdfContent API.
565
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/DownloadPdfContent.ts.html |here} to see how to use DownloadPdfContent API.
161
566
  */
162
567
  downloadPdfContent(downloadPdfContentRequest) {
163
568
  return __awaiter(this, void 0, void 0, function* () {
@@ -176,7 +581,7 @@ class InvoiceServiceClient {
176
581
  "Content-Type": common.Constants.APPLICATION_JSON,
177
582
  "opc-request-id": downloadPdfContentRequest.opcRequestId
178
583
  };
179
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
584
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
180
585
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadPdfContentRequest.retryConfiguration, specRetryConfiguration);
181
586
  if (this.logger)
182
587
  retrier.logger = this.logger;
@@ -228,11 +633,11 @@ class InvoiceServiceClient {
228
633
  }
229
634
  /**
230
635
  * Returns an invoice by invoice id
231
- * This operation does not retry by default if the user has not defined a retry configuration.
636
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
232
637
  * @param GetInvoiceRequest
233
638
  * @return GetInvoiceResponse
234
639
  * @throws OciError when an error occurs
235
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/GetInvoice.ts.html |here} to see how to use GetInvoice API.
640
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/GetInvoice.ts.html |here} to see how to use GetInvoice API.
236
641
  */
237
642
  getInvoice(getInvoiceRequest) {
238
643
  return __awaiter(this, void 0, void 0, function* () {
@@ -251,7 +656,7 @@ class InvoiceServiceClient {
251
656
  "Content-Type": common.Constants.APPLICATION_JSON,
252
657
  "opc-request-id": getInvoiceRequest.opcRequestId
253
658
  };
254
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
659
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
255
660
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getInvoiceRequest.retryConfiguration, specRetryConfiguration);
256
661
  if (this.logger)
257
662
  retrier.logger = this.logger;
@@ -294,11 +699,11 @@ class InvoiceServiceClient {
294
699
  }
295
700
  /**
296
701
  * Returns the invoice product list by invoice id
297
- * This operation does not retry by default if the user has not defined a retry configuration.
702
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
298
703
  * @param ListInvoiceLinesRequest
299
704
  * @return ListInvoiceLinesResponse
300
705
  * @throws OciError when an error occurs
301
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/ListInvoiceLines.ts.html |here} to see how to use ListInvoiceLines API.
706
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/ListInvoiceLines.ts.html |here} to see how to use ListInvoiceLines API.
302
707
  */
303
708
  listInvoiceLines(listInvoiceLinesRequest) {
304
709
  return __awaiter(this, void 0, void 0, function* () {
@@ -319,7 +724,7 @@ class InvoiceServiceClient {
319
724
  "Content-Type": common.Constants.APPLICATION_JSON,
320
725
  "opc-request-id": listInvoiceLinesRequest.opcRequestId
321
726
  };
322
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
727
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
323
728
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInvoiceLinesRequest.retryConfiguration, specRetryConfiguration);
324
729
  if (this.logger)
325
730
  retrier.logger = this.logger;
@@ -372,11 +777,11 @@ class InvoiceServiceClient {
372
777
  }
373
778
  /**
374
779
  * Returns a list of invoices
375
- * This operation does not retry by default if the user has not defined a retry configuration.
780
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
376
781
  * @param ListInvoicesRequest
377
782
  * @return ListInvoicesResponse
378
783
  * @throws OciError when an error occurs
379
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/ListInvoices.ts.html |here} to see how to use ListInvoices API.
784
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/ListInvoices.ts.html |here} to see how to use ListInvoices API.
380
785
  */
381
786
  listInvoices(listInvoicesRequest) {
382
787
  return __awaiter(this, void 0, void 0, function* () {
@@ -405,7 +810,7 @@ class InvoiceServiceClient {
405
810
  "Content-Type": common.Constants.APPLICATION_JSON,
406
811
  "opc-request-id": listInvoicesRequest.opcRequestId
407
812
  };
408
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
813
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
409
814
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInvoicesRequest.retryConfiguration, specRetryConfiguration);
410
815
  if (this.logger)
411
816
  retrier.logger = this.logger;
@@ -453,11 +858,11 @@ class InvoiceServiceClient {
453
858
  }
454
859
  /**
455
860
  * Pay an invoice
456
- * This operation does not retry by default if the user has not defined a retry configuration.
861
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
457
862
  * @param PayInvoiceRequest
458
863
  * @return PayInvoiceResponse
459
864
  * @throws OciError when an error occurs
460
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/PayInvoice.ts.html |here} to see how to use PayInvoice API.
865
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/PayInvoice.ts.html |here} to see how to use PayInvoice API.
461
866
  */
462
867
  payInvoice(payInvoiceRequest) {
463
868
  return __awaiter(this, void 0, void 0, function* () {
@@ -478,7 +883,7 @@ class InvoiceServiceClient {
478
883
  "opc-retry-token": payInvoiceRequest.opcRetryToken,
479
884
  "opc-request-id": payInvoiceRequest.opcRequestId
480
885
  };
481
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
886
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
482
887
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, payInvoiceRequest.retryConfiguration, specRetryConfiguration);
483
888
  if (this.logger)
484
889
  retrier.logger = this.logger;
@@ -630,11 +1035,11 @@ class SubscriptionServiceClient {
630
1035
  }
631
1036
  /**
632
1037
  * PSD2 authorization for subscription payment
633
- * This operation does not retry by default if the user has not defined a retry configuration.
1038
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
634
1039
  * @param AuthorizeSubscriptionPaymentRequest
635
1040
  * @return AuthorizeSubscriptionPaymentResponse
636
1041
  * @throws OciError when an error occurs
637
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/AuthorizeSubscriptionPayment.ts.html |here} to see how to use AuthorizeSubscriptionPayment API.
1042
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/AuthorizeSubscriptionPayment.ts.html |here} to see how to use AuthorizeSubscriptionPayment API.
638
1043
  */
639
1044
  authorizeSubscriptionPayment(authorizeSubscriptionPaymentRequest) {
640
1045
  return __awaiter(this, void 0, void 0, function* () {
@@ -655,7 +1060,7 @@ class SubscriptionServiceClient {
655
1060
  "opc-retry-token": authorizeSubscriptionPaymentRequest.opcRetryToken,
656
1061
  "opc-request-id": authorizeSubscriptionPaymentRequest.opcRequestId
657
1062
  };
658
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1063
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
659
1064
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, authorizeSubscriptionPaymentRequest.retryConfiguration, specRetryConfiguration);
660
1065
  if (this.logger)
661
1066
  retrier.logger = this.logger;
@@ -699,11 +1104,11 @@ class SubscriptionServiceClient {
699
1104
  }
700
1105
  /**
701
1106
  * Get the subscription plan.
702
- * This operation does not retry by default if the user has not defined a retry configuration.
1107
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
703
1108
  * @param GetSubscriptionRequest
704
1109
  * @return GetSubscriptionResponse
705
1110
  * @throws OciError when an error occurs
706
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/GetSubscription.ts.html |here} to see how to use GetSubscription API.
1111
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/GetSubscription.ts.html |here} to see how to use GetSubscription API.
707
1112
  */
708
1113
  getSubscription(getSubscriptionRequest) {
709
1114
  return __awaiter(this, void 0, void 0, function* () {
@@ -722,7 +1127,7 @@ class SubscriptionServiceClient {
722
1127
  "Content-Type": common.Constants.APPLICATION_JSON,
723
1128
  "opc-request-id": getSubscriptionRequest.opcRequestId
724
1129
  };
725
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1130
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
726
1131
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriptionRequest.retryConfiguration, specRetryConfiguration);
727
1132
  if (this.logger)
728
1133
  retrier.logger = this.logger;
@@ -765,11 +1170,11 @@ class SubscriptionServiceClient {
765
1170
  }
766
1171
  /**
767
1172
  * Get the subscription data for the compartment
768
- * This operation does not retry by default if the user has not defined a retry configuration.
1173
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
769
1174
  * @param ListSubscriptionsRequest
770
1175
  * @return ListSubscriptionsResponse
771
1176
  * @throws OciError when an error occurs
772
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
1177
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
773
1178
  */
774
1179
  listSubscriptions(listSubscriptionsRequest) {
775
1180
  return __awaiter(this, void 0, void 0, function* () {
@@ -790,7 +1195,7 @@ class SubscriptionServiceClient {
790
1195
  "Content-Type": common.Constants.APPLICATION_JSON,
791
1196
  "opc-request-id": listSubscriptionsRequest.opcRequestId
792
1197
  };
793
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1198
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
794
1199
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSubscriptionsRequest.retryConfiguration, specRetryConfiguration);
795
1200
  if (this.logger)
796
1201
  retrier.logger = this.logger;
@@ -838,11 +1243,11 @@ class SubscriptionServiceClient {
838
1243
  }
839
1244
  /**
840
1245
  * Pay a subscription
841
- * This operation does not retry by default if the user has not defined a retry configuration.
1246
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
842
1247
  * @param PaySubscriptionRequest
843
1248
  * @return PaySubscriptionResponse
844
1249
  * @throws OciError when an error occurs
845
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/PaySubscription.ts.html |here} to see how to use PaySubscription API.
1250
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/PaySubscription.ts.html |here} to see how to use PaySubscription API.
846
1251
  */
847
1252
  paySubscription(paySubscriptionRequest) {
848
1253
  return __awaiter(this, void 0, void 0, function* () {
@@ -863,7 +1268,7 @@ class SubscriptionServiceClient {
863
1268
  "opc-retry-token": paySubscriptionRequest.opcRetryToken,
864
1269
  "opc-request-id": paySubscriptionRequest.opcRequestId
865
1270
  };
866
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1271
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
867
1272
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, paySubscriptionRequest.retryConfiguration, specRetryConfiguration);
868
1273
  if (this.logger)
869
1274
  retrier.logger = this.logger;
@@ -907,11 +1312,11 @@ class SubscriptionServiceClient {
907
1312
  }
908
1313
  /**
909
1314
  * Update plan of the subscription.
910
- * This operation does not retry by default if the user has not defined a retry configuration.
1315
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
911
1316
  * @param UpdateSubscriptionRequest
912
1317
  * @return UpdateSubscriptionResponse
913
1318
  * @throws OciError when an error occurs
914
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.63.0/ospgateway/UpdateSubscription.ts.html |here} to see how to use UpdateSubscription API.
1319
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.65.0/ospgateway/UpdateSubscription.ts.html |here} to see how to use UpdateSubscription API.
915
1320
  */
916
1321
  updateSubscription(updateSubscriptionRequest) {
917
1322
  return __awaiter(this, void 0, void 0, function* () {
@@ -931,7 +1336,7 @@ class SubscriptionServiceClient {
931
1336
  "opc-request-id": updateSubscriptionRequest.opcRequestId,
932
1337
  "if-match": updateSubscriptionRequest.ifMatch
933
1338
  };
934
- const specRetryConfiguration = common.NoRetryConfigurationDetails;
1339
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
935
1340
  const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSubscriptionRequest.retryConfiguration, specRetryConfiguration);
936
1341
  if (this.logger)
937
1342
  retrier.logger = this.logger;