oci-ospgateway 2.10.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 (92) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +1521 -0
  5. package/index.d.ts +20 -0
  6. package/index.js +43 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +99 -0
  9. package/lib/client.js +477 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/model/address.d.ts +75 -0
  12. package/lib/model/address.js +53 -0
  13. package/lib/model/address.js.map +1 -0
  14. package/lib/model/country.d.ts +41 -0
  15. package/lib/model/country.js +29 -0
  16. package/lib/model/country.js.map +1 -0
  17. package/lib/model/credit-card-payment-detail.d.ts +24 -0
  18. package/lib/model/credit-card-payment-detail.js +52 -0
  19. package/lib/model/credit-card-payment-detail.js.map +1 -0
  20. package/lib/model/currency.d.ts +41 -0
  21. package/lib/model/currency.js +29 -0
  22. package/lib/model/currency.js.map +1 -0
  23. package/lib/model/index.d.ts +40 -0
  24. package/lib/model/index.js +63 -0
  25. package/lib/model/index.js.map +1 -0
  26. package/lib/model/invoice-collection.d.ts +26 -0
  27. package/lib/model/invoice-collection.js +61 -0
  28. package/lib/model/invoice-collection.js.map +1 -0
  29. package/lib/model/invoice-line-collection.d.ts +26 -0
  30. package/lib/model/invoice-line-collection.js +61 -0
  31. package/lib/model/invoice-line-collection.js.map +1 -0
  32. package/lib/model/invoice-line-summary.d.ts +55 -0
  33. package/lib/model/invoice-line-summary.js +53 -0
  34. package/lib/model/invoice-line-summary.js.map +1 -0
  35. package/lib/model/invoice-summary.d.ts +146 -0
  36. package/lib/model/invoice-summary.js +87 -0
  37. package/lib/model/invoice-summary.js.map +1 -0
  38. package/lib/model/invoice.d.ts +139 -0
  39. package/lib/model/invoice.js +91 -0
  40. package/lib/model/invoice.js.map +1 -0
  41. package/lib/model/other-payment-detail.d.ts +24 -0
  42. package/lib/model/other-payment-detail.js +52 -0
  43. package/lib/model/other-payment-detail.js.map +1 -0
  44. package/lib/model/pay-invoice-details.d.ts +33 -0
  45. package/lib/model/pay-invoice-details.js +29 -0
  46. package/lib/model/pay-invoice-details.js.map +1 -0
  47. package/lib/model/pay-invoice-receipt.d.ts +33 -0
  48. package/lib/model/pay-invoice-receipt.js +29 -0
  49. package/lib/model/pay-invoice-receipt.js.map +1 -0
  50. package/lib/model/payment-detail.d.ts +34 -0
  51. package/lib/model/payment-detail.js +73 -0
  52. package/lib/model/payment-detail.js.map +1 -0
  53. package/lib/model/paypal-payment-detail.d.ts +24 -0
  54. package/lib/model/paypal-payment-detail.js +52 -0
  55. package/lib/model/paypal-payment-detail.js.map +1 -0
  56. package/lib/request/download-pdf-content-request.d.ts +38 -0
  57. package/lib/request/download-pdf-content-request.js +15 -0
  58. package/lib/request/download-pdf-content-request.js.map +1 -0
  59. package/lib/request/get-invoice-request.d.ts +38 -0
  60. package/lib/request/get-invoice-request.js +15 -0
  61. package/lib/request/get-invoice-request.js.map +1 -0
  62. package/lib/request/index.d.ts +22 -0
  63. package/lib/request/index.js +37 -0
  64. package/lib/request/index.js.map +1 -0
  65. package/lib/request/list-invoice-lines-request.d.ts +48 -0
  66. package/lib/request/list-invoice-lines-request.js +15 -0
  67. package/lib/request/list-invoice-lines-request.js.map +1 -0
  68. package/lib/request/list-invoices-request.d.ts +129 -0
  69. package/lib/request/list-invoices-request.js +54 -0
  70. package/lib/request/list-invoices-request.js.map +1 -0
  71. package/lib/request/pay-invoice-request.d.ts +58 -0
  72. package/lib/request/pay-invoice-request.js +15 -0
  73. package/lib/request/pay-invoice-request.js.map +1 -0
  74. package/lib/response/download-pdf-content-response.d.ts +30 -0
  75. package/lib/response/download-pdf-content-response.js +15 -0
  76. package/lib/response/download-pdf-content-response.js.map +1 -0
  77. package/lib/response/get-invoice-response.d.ts +29 -0
  78. package/lib/response/get-invoice-response.js +15 -0
  79. package/lib/response/get-invoice-response.js.map +1 -0
  80. package/lib/response/index.d.ts +22 -0
  81. package/lib/response/index.js +15 -0
  82. package/lib/response/index.js.map +1 -0
  83. package/lib/response/list-invoice-lines-response.d.ts +40 -0
  84. package/lib/response/list-invoice-lines-response.js +15 -0
  85. package/lib/response/list-invoice-lines-response.js.map +1 -0
  86. package/lib/response/list-invoices-response.d.ts +36 -0
  87. package/lib/response/list-invoices-response.js +15 -0
  88. package/lib/response/list-invoices-response.js.map +1 -0
  89. package/lib/response/pay-invoice-response.d.ts +29 -0
  90. package/lib/response/pay-invoice-response.js +15 -0
  91. package/lib/response/pay-invoice-response.js.map +1 -0
  92. package/package.json +29 -0
package/index.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Billing Center Gateway API
3
+ * This site describes all the Rest endpoints of Billing Center Gateway.
4
+ * OpenAPI spec version: 20191001
5
+ * Contact: osp_team_oci_cam_ww_grp@oracle.com
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import * as requests from "./lib/request";
14
+ import * as models from "./lib/model";
15
+ import * as responses from "./lib/response";
16
+ import * as client from "./lib/client";
17
+ export { models };
18
+ export { requests };
19
+ export { responses };
20
+ export import InvoiceServiceClient = client.InvoiceServiceClient;
package/index.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * Billing Center Gateway API
4
+ * This site describes all the Rest endpoints of Billing Center Gateway.
5
+ * OpenAPI spec version: 20191001
6
+ * Contact: osp_team_oci_cam_ww_grp@oracle.com
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.InvoiceServiceClient = exports.responses = exports.requests = exports.models = void 0;
35
+ const requests = __importStar(require("./lib/request"));
36
+ exports.requests = requests;
37
+ const models = __importStar(require("./lib/model"));
38
+ exports.models = models;
39
+ const responses = __importStar(require("./lib/response"));
40
+ exports.responses = responses;
41
+ const client = __importStar(require("./lib/client"));
42
+ exports.InvoiceServiceClient = client.InvoiceServiceClient;
43
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/ospgateway/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAMjC,4BAAQ;AALjB,oDAAsC;AAI7B,wBAAM;AAHf,0DAA4C;AAKnC,8BAAS;AAJlB,qDAAuC;AAKzB,QAAA,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Billing Center Gateway API
3
+ * This site describes all the Rest endpoints of Billing Center Gateway.
4
+ * OpenAPI spec version: 20191001
5
+ * Contact: osp_team_oci_cam_ww_grp@oracle.com
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import common = require("oci-common");
14
+ import * as requests from "./request";
15
+ import * as responses from "./response";
16
+ export declare enum InvoiceServiceApiKeys {
17
+ }
18
+ /**
19
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
20
+ */
21
+ export declare class InvoiceServiceClient {
22
+ protected static serviceEndpointTemplate: string;
23
+ protected "_endpoint": string;
24
+ protected "_defaultHeaders": any;
25
+ protected "_clientConfiguration": common.ClientConfiguration;
26
+ protected _circuitBreaker: null;
27
+ protected _httpClient: common.HttpClient;
28
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
29
+ /**
30
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
31
+ */
32
+ get endpoint(): string;
33
+ /**
34
+ * Sets the endpoint to call (ex, https://www.example.com).
35
+ * @param endpoint The endpoint of the service.
36
+ */
37
+ set endpoint(endpoint: string);
38
+ get logger(): import("oci-common/lib/log").Logger;
39
+ /**
40
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
41
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
42
+ * @param region The region of the service.
43
+ */
44
+ set region(region: common.Region);
45
+ /**
46
+ * Sets the regionId to call (ex, 'us-phoenix-1').
47
+ *
48
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
49
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
50
+ * and then call {@link #endpoint(String) endpoint}.
51
+ * @param regionId The public region ID.
52
+ */
53
+ set regionId(regionId: string);
54
+ /**
55
+ * Returns an invoice in pdf format
56
+ * This operation does not retry by default if the user has not defined a retry configuration.
57
+ * @param DownloadPdfContentRequest
58
+ * @return DownloadPdfContentResponse
59
+ * @throws OciError when an error occurs
60
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/DownloadPdfContent.ts.html |here} to see how to use DownloadPdfContent API.
61
+ */
62
+ downloadPdfContent(downloadPdfContentRequest: requests.DownloadPdfContentRequest): Promise<responses.DownloadPdfContentResponse>;
63
+ /**
64
+ * Returns an invoice by invoice id
65
+ * This operation does not retry by default if the user has not defined a retry configuration.
66
+ * @param GetInvoiceRequest
67
+ * @return GetInvoiceResponse
68
+ * @throws OciError when an error occurs
69
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/GetInvoice.ts.html |here} to see how to use GetInvoice API.
70
+ */
71
+ getInvoice(getInvoiceRequest: requests.GetInvoiceRequest): Promise<responses.GetInvoiceResponse>;
72
+ /**
73
+ * Returns the invoice product list by invoice id
74
+ * This operation does not retry by default if the user has not defined a retry configuration.
75
+ * @param ListInvoiceLinesRequest
76
+ * @return ListInvoiceLinesResponse
77
+ * @throws OciError when an error occurs
78
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/ListInvoiceLines.ts.html |here} to see how to use ListInvoiceLines API.
79
+ */
80
+ listInvoiceLines(listInvoiceLinesRequest: requests.ListInvoiceLinesRequest): Promise<responses.ListInvoiceLinesResponse>;
81
+ /**
82
+ * Returns a list of invoices
83
+ * This operation does not retry by default if the user has not defined a retry configuration.
84
+ * @param ListInvoicesRequest
85
+ * @return ListInvoicesResponse
86
+ * @throws OciError when an error occurs
87
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/ListInvoices.ts.html |here} to see how to use ListInvoices API.
88
+ */
89
+ listInvoices(listInvoicesRequest: requests.ListInvoicesRequest): Promise<responses.ListInvoicesResponse>;
90
+ /**
91
+ * Pay an invoice
92
+ * This operation does not retry by default if the user has not defined a retry configuration.
93
+ * @param PayInvoiceRequest
94
+ * @return PayInvoiceResponse
95
+ * @throws OciError when an error occurs
96
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/PayInvoice.ts.html |here} to see how to use PayInvoice API.
97
+ */
98
+ payInvoice(payInvoiceRequest: requests.PayInvoiceRequest): Promise<responses.PayInvoiceResponse>;
99
+ }
package/lib/client.js ADDED
@@ -0,0 +1,477 @@
1
+ "use strict";
2
+ /**
3
+ * Billing Center Gateway API
4
+ * This site describes all the Rest endpoints of Billing Center Gateway.
5
+ * OpenAPI spec version: 20191001
6
+ * Contact: osp_team_oci_cam_ww_grp@oracle.com
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.InvoiceServiceClient = exports.InvoiceServiceApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const oci_common_1 = require("oci-common");
47
+ // ===============================================
48
+ // This file is autogenerated - Please do not edit
49
+ // ===============================================
50
+ var InvoiceServiceApiKeys;
51
+ (function (InvoiceServiceApiKeys) {
52
+ })(InvoiceServiceApiKeys = exports.InvoiceServiceApiKeys || (exports.InvoiceServiceApiKeys = {}));
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 InvoiceServiceClient {
57
+ constructor(params, clientConfiguration) {
58
+ this["_endpoint"] = "";
59
+ this["_defaultHeaders"] = {};
60
+ this._circuitBreaker = null;
61
+ const requestSigner = params.authenticationDetailsProvider
62
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
63
+ : null;
64
+ if (clientConfiguration) {
65
+ this._clientConfiguration = clientConfiguration;
66
+ this._circuitBreaker = clientConfiguration.circuitBreaker
67
+ ? clientConfiguration.circuitBreaker.circuit
68
+ : null;
69
+ }
70
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
71
+ const specCircuitBreakerEnabled = true;
72
+ if (!this._circuitBreaker &&
73
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
74
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
75
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
76
+ }
77
+ this._httpClient =
78
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
79
+ if (params.authenticationDetailsProvider &&
80
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
81
+ const provider = params.authenticationDetailsProvider;
82
+ if (provider.getRegion()) {
83
+ this.region = provider.getRegion();
84
+ }
85
+ }
86
+ }
87
+ /**
88
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
89
+ */
90
+ get endpoint() {
91
+ return this._endpoint;
92
+ }
93
+ /**
94
+ * Sets the endpoint to call (ex, https://www.example.com).
95
+ * @param endpoint The endpoint of the service.
96
+ */
97
+ set endpoint(endpoint) {
98
+ this._endpoint = endpoint;
99
+ this._endpoint = this._endpoint + "/20191001";
100
+ if (this.logger)
101
+ this.logger.info(`InvoiceServiceClient endpoint set to ${this._endpoint}`);
102
+ }
103
+ get logger() {
104
+ return common.LOG.logger;
105
+ }
106
+ /**
107
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
108
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
109
+ * @param region The region of the service.
110
+ */
111
+ set region(region) {
112
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(InvoiceServiceClient.serviceEndpointTemplate, region);
113
+ }
114
+ /**
115
+ * Sets the regionId to call (ex, 'us-phoenix-1').
116
+ *
117
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
118
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
119
+ * and then call {@link #endpoint(String) endpoint}.
120
+ * @param regionId The public region ID.
121
+ */
122
+ set regionId(regionId) {
123
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(InvoiceServiceClient.serviceEndpointTemplate, regionId);
124
+ }
125
+ /**
126
+ * Returns an invoice in pdf format
127
+ * This operation does not retry by default if the user has not defined a retry configuration.
128
+ * @param DownloadPdfContentRequest
129
+ * @return DownloadPdfContentResponse
130
+ * @throws OciError when an error occurs
131
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/DownloadPdfContent.ts.html |here} to see how to use DownloadPdfContent API.
132
+ */
133
+ downloadPdfContent(downloadPdfContentRequest) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ if (this.logger)
136
+ this.logger.debug("Calling operation InvoiceServiceClient#downloadPdfContent.");
137
+ const pathParams = {
138
+ "{internalInvoiceId}": downloadPdfContentRequest.internalInvoiceId
139
+ };
140
+ const queryParams = {
141
+ "ospHomeRegion": downloadPdfContentRequest.ospHomeRegion,
142
+ "compartmentId": downloadPdfContentRequest.compartmentId
143
+ };
144
+ let headerParams = {
145
+ "Content-Type": common.Constants.APPLICATION_JSON,
146
+ "opc-request-id": downloadPdfContentRequest.opcRequestId
147
+ };
148
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
149
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadPdfContentRequest.retryConfiguration, specRetryConfiguration);
150
+ if (this.logger)
151
+ retrier.logger = this.logger;
152
+ const request = yield oci_common_1.composeRequest({
153
+ baseEndpoint: this._endpoint,
154
+ defaultHeaders: this._defaultHeaders,
155
+ path: "/invoices/{internalInvoiceId}/actions/downloadPdfContent",
156
+ method: "POST",
157
+ pathParams: pathParams,
158
+ headerParams: headerParams,
159
+ queryParams: queryParams
160
+ });
161
+ try {
162
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
163
+ const sdkResponse = oci_common_1.composeResponse({
164
+ responseObject: {},
165
+ body: response.body,
166
+ bodyKey: "value",
167
+ bodyModel: "string",
168
+ responseHeaders: [
169
+ {
170
+ value: response.headers.get("opc-request-id"),
171
+ key: "opcRequestId",
172
+ dataType: "string"
173
+ },
174
+ {
175
+ value: response.headers.get("Content-Disposition"),
176
+ key: "contentDisposition",
177
+ dataType: "string"
178
+ }
179
+ ]
180
+ });
181
+ return sdkResponse;
182
+ }
183
+ catch (err) {
184
+ throw err;
185
+ }
186
+ });
187
+ }
188
+ /**
189
+ * Returns an invoice by invoice id
190
+ * This operation does not retry by default if the user has not defined a retry configuration.
191
+ * @param GetInvoiceRequest
192
+ * @return GetInvoiceResponse
193
+ * @throws OciError when an error occurs
194
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/GetInvoice.ts.html |here} to see how to use GetInvoice API.
195
+ */
196
+ getInvoice(getInvoiceRequest) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ if (this.logger)
199
+ this.logger.debug("Calling operation InvoiceServiceClient#getInvoice.");
200
+ const pathParams = {
201
+ "{internalInvoiceId}": getInvoiceRequest.internalInvoiceId
202
+ };
203
+ const queryParams = {
204
+ "ospHomeRegion": getInvoiceRequest.ospHomeRegion,
205
+ "compartmentId": getInvoiceRequest.compartmentId
206
+ };
207
+ let headerParams = {
208
+ "Content-Type": common.Constants.APPLICATION_JSON,
209
+ "opc-request-id": getInvoiceRequest.opcRequestId
210
+ };
211
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
212
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getInvoiceRequest.retryConfiguration, specRetryConfiguration);
213
+ if (this.logger)
214
+ retrier.logger = this.logger;
215
+ const request = yield oci_common_1.composeRequest({
216
+ baseEndpoint: this._endpoint,
217
+ defaultHeaders: this._defaultHeaders,
218
+ path: "/invoices/{internalInvoiceId}",
219
+ method: "GET",
220
+ pathParams: pathParams,
221
+ headerParams: headerParams,
222
+ queryParams: queryParams
223
+ });
224
+ try {
225
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
226
+ const sdkResponse = oci_common_1.composeResponse({
227
+ responseObject: {},
228
+ body: yield response.json(),
229
+ bodyKey: "invoice",
230
+ bodyModel: model.Invoice,
231
+ type: "model.Invoice",
232
+ responseHeaders: [
233
+ {
234
+ value: response.headers.get("etag"),
235
+ key: "etag",
236
+ dataType: "string"
237
+ },
238
+ {
239
+ value: response.headers.get("opc-request-id"),
240
+ key: "opcRequestId",
241
+ dataType: "string"
242
+ }
243
+ ]
244
+ });
245
+ return sdkResponse;
246
+ }
247
+ catch (err) {
248
+ throw err;
249
+ }
250
+ });
251
+ }
252
+ /**
253
+ * Returns the invoice product list by invoice id
254
+ * This operation does not retry by default if the user has not defined a retry configuration.
255
+ * @param ListInvoiceLinesRequest
256
+ * @return ListInvoiceLinesResponse
257
+ * @throws OciError when an error occurs
258
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/ListInvoiceLines.ts.html |here} to see how to use ListInvoiceLines API.
259
+ */
260
+ listInvoiceLines(listInvoiceLinesRequest) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (this.logger)
263
+ this.logger.debug("Calling operation InvoiceServiceClient#listInvoiceLines.");
264
+ const pathParams = {
265
+ "{internalInvoiceId}": listInvoiceLinesRequest.internalInvoiceId
266
+ };
267
+ const queryParams = {
268
+ "ospHomeRegion": listInvoiceLinesRequest.ospHomeRegion,
269
+ "compartmentId": listInvoiceLinesRequest.compartmentId,
270
+ "page": listInvoiceLinesRequest.page,
271
+ "limit": listInvoiceLinesRequest.limit
272
+ };
273
+ let headerParams = {
274
+ "Content-Type": common.Constants.APPLICATION_JSON,
275
+ "opc-request-id": listInvoiceLinesRequest.opcRequestId
276
+ };
277
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
278
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInvoiceLinesRequest.retryConfiguration, specRetryConfiguration);
279
+ if (this.logger)
280
+ retrier.logger = this.logger;
281
+ const request = yield oci_common_1.composeRequest({
282
+ baseEndpoint: this._endpoint,
283
+ defaultHeaders: this._defaultHeaders,
284
+ path: "/invoices/{internalInvoiceId}/invoiceLines",
285
+ method: "GET",
286
+ pathParams: pathParams,
287
+ headerParams: headerParams,
288
+ queryParams: queryParams
289
+ });
290
+ try {
291
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
292
+ const sdkResponse = oci_common_1.composeResponse({
293
+ responseObject: {},
294
+ body: yield response.json(),
295
+ bodyKey: "invoiceLineCollection",
296
+ bodyModel: model.InvoiceLineCollection,
297
+ type: "model.InvoiceLineCollection",
298
+ responseHeaders: [
299
+ {
300
+ value: response.headers.get("etag"),
301
+ key: "etag",
302
+ dataType: "string"
303
+ },
304
+ {
305
+ value: response.headers.get("opc-request-id"),
306
+ key: "opcRequestId",
307
+ dataType: "string"
308
+ },
309
+ {
310
+ value: response.headers.get("opc-next-page"),
311
+ key: "opcNextPage",
312
+ dataType: "string"
313
+ },
314
+ {
315
+ value: response.headers.get("opc-total-items"),
316
+ key: "opcTotalItems",
317
+ dataType: "number"
318
+ }
319
+ ]
320
+ });
321
+ return sdkResponse;
322
+ }
323
+ catch (err) {
324
+ throw err;
325
+ }
326
+ });
327
+ }
328
+ /**
329
+ * Returns a list of invoices
330
+ * This operation does not retry by default if the user has not defined a retry configuration.
331
+ * @param ListInvoicesRequest
332
+ * @return ListInvoicesResponse
333
+ * @throws OciError when an error occurs
334
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/ListInvoices.ts.html |here} to see how to use ListInvoices API.
335
+ */
336
+ listInvoices(listInvoicesRequest) {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ if (this.logger)
339
+ this.logger.debug("Calling operation InvoiceServiceClient#listInvoices.");
340
+ const pathParams = {};
341
+ const queryParams = {
342
+ "ospHomeRegion": listInvoicesRequest.ospHomeRegion,
343
+ "compartmentId": listInvoicesRequest.compartmentId,
344
+ "invoiceId": listInvoicesRequest.invoiceId,
345
+ "type": listInvoicesRequest.type,
346
+ "searchText": listInvoicesRequest.searchText,
347
+ "timeInvoiceStart": listInvoicesRequest.timeInvoiceStart,
348
+ "timeInvoiceEnd": listInvoicesRequest.timeInvoiceEnd,
349
+ "timePaymentStart": listInvoicesRequest.timePaymentStart,
350
+ "timePaymentEnd": listInvoicesRequest.timePaymentEnd,
351
+ "status": listInvoicesRequest.status,
352
+ "page": listInvoicesRequest.page,
353
+ "limit": listInvoicesRequest.limit,
354
+ "sortBy": listInvoicesRequest.sortBy,
355
+ "sortOrder": listInvoicesRequest.sortOrder
356
+ };
357
+ let headerParams = {
358
+ "Content-Type": common.Constants.APPLICATION_JSON,
359
+ "opc-request-id": listInvoicesRequest.opcRequestId
360
+ };
361
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
362
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInvoicesRequest.retryConfiguration, specRetryConfiguration);
363
+ if (this.logger)
364
+ retrier.logger = this.logger;
365
+ const request = yield oci_common_1.composeRequest({
366
+ baseEndpoint: this._endpoint,
367
+ defaultHeaders: this._defaultHeaders,
368
+ path: "/invoices",
369
+ method: "GET",
370
+ pathParams: pathParams,
371
+ headerParams: headerParams,
372
+ queryParams: queryParams
373
+ });
374
+ try {
375
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
376
+ const sdkResponse = oci_common_1.composeResponse({
377
+ responseObject: {},
378
+ body: yield response.json(),
379
+ bodyKey: "invoiceCollection",
380
+ bodyModel: model.InvoiceCollection,
381
+ type: "model.InvoiceCollection",
382
+ responseHeaders: [
383
+ {
384
+ value: response.headers.get("opc-request-id"),
385
+ key: "opcRequestId",
386
+ dataType: "string"
387
+ },
388
+ {
389
+ value: response.headers.get("opc-next-page"),
390
+ key: "opcNextPage",
391
+ dataType: "string"
392
+ },
393
+ {
394
+ value: response.headers.get("opc-total-items"),
395
+ key: "opcTotalItems",
396
+ dataType: "number"
397
+ }
398
+ ]
399
+ });
400
+ return sdkResponse;
401
+ }
402
+ catch (err) {
403
+ throw err;
404
+ }
405
+ });
406
+ }
407
+ /**
408
+ * Pay an invoice
409
+ * This operation does not retry by default if the user has not defined a retry configuration.
410
+ * @param PayInvoiceRequest
411
+ * @return PayInvoiceResponse
412
+ * @throws OciError when an error occurs
413
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.10.0/ospgateway/PayInvoice.ts.html |here} to see how to use PayInvoice API.
414
+ */
415
+ payInvoice(payInvoiceRequest) {
416
+ return __awaiter(this, void 0, void 0, function* () {
417
+ if (this.logger)
418
+ this.logger.debug("Calling operation InvoiceServiceClient#payInvoice.");
419
+ const pathParams = {
420
+ "{internalInvoiceId}": payInvoiceRequest.internalInvoiceId
421
+ };
422
+ const queryParams = {
423
+ "ospHomeRegion": payInvoiceRequest.ospHomeRegion,
424
+ "compartmentId": payInvoiceRequest.compartmentId
425
+ };
426
+ let headerParams = {
427
+ "Content-Type": common.Constants.APPLICATION_JSON,
428
+ "if-match": payInvoiceRequest.ifMatch,
429
+ "opc-retry-token": payInvoiceRequest.opcRetryToken,
430
+ "opc-request-id": payInvoiceRequest.opcRequestId
431
+ };
432
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
433
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, payInvoiceRequest.retryConfiguration, specRetryConfiguration);
434
+ if (this.logger)
435
+ retrier.logger = this.logger;
436
+ const request = yield oci_common_1.composeRequest({
437
+ baseEndpoint: this._endpoint,
438
+ defaultHeaders: this._defaultHeaders,
439
+ path: "/invoices/{internalInvoiceId}/actions/pay",
440
+ method: "POST",
441
+ bodyContent: common.ObjectSerializer.serialize(payInvoiceRequest.payInvoiceDetails, "PayInvoiceDetails", model.PayInvoiceDetails.getJsonObj),
442
+ pathParams: pathParams,
443
+ headerParams: headerParams,
444
+ queryParams: queryParams
445
+ });
446
+ try {
447
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
448
+ const sdkResponse = oci_common_1.composeResponse({
449
+ responseObject: {},
450
+ body: yield response.json(),
451
+ bodyKey: "payInvoiceReceipt",
452
+ bodyModel: model.PayInvoiceReceipt,
453
+ type: "model.PayInvoiceReceipt",
454
+ responseHeaders: [
455
+ {
456
+ value: response.headers.get("opc-request-id"),
457
+ key: "opcRequestId",
458
+ dataType: "string"
459
+ },
460
+ {
461
+ value: response.headers.get("etag"),
462
+ key: "etag",
463
+ dataType: "string"
464
+ }
465
+ ]
466
+ });
467
+ return sdkResponse;
468
+ }
469
+ catch (err) {
470
+ throw err;
471
+ }
472
+ });
473
+ }
474
+ }
475
+ exports.InvoiceServiceClient = InvoiceServiceClient;
476
+ InvoiceServiceClient.serviceEndpointTemplate = "https://ospap.oracle.com";
477
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/ospgateway/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,2CAA6E;AAE7E,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAElD,IAAY,qBAAwB;AAApC,WAAY,qBAAqB;AAAE,CAAC,EAAxB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAAG;AACpC;;GAEG;AACH,MAAa,oBAAoB;IAS/B,YAAY,MAAyB,EAAE,mBAAgD;QAP7E,iBAAW,GAAW,EAAE,CAAC;QACzB,u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