oci-ospgateway 2.11.1 → 2.14.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 (132) hide show
  1. package/index.d.ts +3 -2
  2. package/index.js +4 -3
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +93 -7
  5. package/lib/client.js +425 -10
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/authorize-subscription-payment-details.d.ts +31 -0
  8. package/lib/model/authorize-subscription-payment-details.js +57 -0
  9. package/lib/model/authorize-subscription-payment-details.js.map +1 -0
  10. package/lib/model/authorize-subscription-payment-receipt.d.ts +33 -0
  11. package/lib/model/authorize-subscription-payment-receipt.js +29 -0
  12. package/lib/model/authorize-subscription-payment-receipt.js.map +1 -0
  13. package/lib/model/{address.d.ts → bill-to-address.d.ts} +6 -6
  14. package/lib/model/{address.js → bill-to-address.js} +9 -9
  15. package/lib/model/bill-to-address.js.map +1 -0
  16. package/lib/model/billing-address.d.ts +65 -0
  17. package/lib/model/billing-address.js +29 -0
  18. package/lib/model/billing-address.js.map +1 -0
  19. package/lib/model/country.d.ts +2 -2
  20. package/lib/model/country.js +2 -2
  21. package/lib/model/credit-card-payment-detail.d.ts +2 -2
  22. package/lib/model/credit-card-payment-detail.js +2 -2
  23. package/lib/model/credit-card-payment-option.d.ts +24 -0
  24. package/lib/model/credit-card-payment-option.js +52 -0
  25. package/lib/model/credit-card-payment-option.js.map +1 -0
  26. package/lib/model/credit-card-type.d.ts +28 -0
  27. package/lib/model/credit-card-type.js +39 -0
  28. package/lib/model/credit-card-type.js.map +1 -0
  29. package/lib/model/currency.d.ts +2 -2
  30. package/lib/model/currency.js +2 -2
  31. package/lib/model/index.d.ts +38 -4
  32. package/lib/model/index.js +39 -5
  33. package/lib/model/index.js.map +1 -1
  34. package/lib/model/invoice-collection.d.ts +2 -2
  35. package/lib/model/invoice-collection.js +2 -2
  36. package/lib/model/invoice-line-collection.d.ts +2 -2
  37. package/lib/model/invoice-line-collection.js +2 -2
  38. package/lib/model/invoice-line-summary.d.ts +2 -2
  39. package/lib/model/invoice-line-summary.js +2 -2
  40. package/lib/model/invoice-summary.d.ts +2 -2
  41. package/lib/model/invoice-summary.js +2 -2
  42. package/lib/model/invoice.d.ts +3 -3
  43. package/lib/model/invoice.js +6 -4
  44. package/lib/model/invoice.js.map +1 -1
  45. package/lib/model/merchant-defined-data.d.ts +29 -0
  46. package/lib/model/merchant-defined-data.js +29 -0
  47. package/lib/model/merchant-defined-data.js.map +1 -0
  48. package/lib/model/other-payment-detail.d.ts +2 -2
  49. package/lib/model/other-payment-detail.js +2 -2
  50. package/lib/model/pay-invoice-details.d.ts +2 -2
  51. package/lib/model/pay-invoice-details.js +2 -2
  52. package/lib/model/pay-invoice-receipt.d.ts +2 -2
  53. package/lib/model/pay-invoice-receipt.js +2 -2
  54. package/lib/model/pay-subscription-details.d.ts +31 -0
  55. package/lib/model/pay-subscription-details.js +57 -0
  56. package/lib/model/pay-subscription-details.js.map +1 -0
  57. package/lib/model/pay-subscription-receipt.d.ts +33 -0
  58. package/lib/model/pay-subscription-receipt.js +29 -0
  59. package/lib/model/pay-subscription-receipt.js.map +1 -0
  60. package/lib/model/payment-detail.d.ts +2 -2
  61. package/lib/model/payment-detail.js +2 -2
  62. package/lib/model/payment-gateway.d.ts +23 -0
  63. package/lib/model/payment-gateway.js +57 -0
  64. package/lib/model/payment-gateway.js.map +1 -0
  65. package/lib/model/payment-method.d.ts +28 -0
  66. package/lib/model/payment-method.js +39 -0
  67. package/lib/model/payment-method.js.map +1 -0
  68. package/lib/model/payment-option.d.ts +30 -0
  69. package/lib/model/payment-option.js +69 -0
  70. package/lib/model/payment-option.js.map +1 -0
  71. package/lib/model/paypal-payment-detail.d.ts +2 -2
  72. package/lib/model/paypal-payment-detail.js +2 -2
  73. package/lib/model/paypal-payment-option.d.ts +24 -0
  74. package/lib/model/paypal-payment-option.js +52 -0
  75. package/lib/model/paypal-payment-option.js.map +1 -0
  76. package/lib/model/subscription-collection.d.ts +26 -0
  77. package/lib/model/subscription-collection.js +61 -0
  78. package/lib/model/subscription-collection.js.map +1 -0
  79. package/lib/model/subscription-summary.d.ts +118 -0
  80. package/lib/model/subscription-summary.js +107 -0
  81. package/lib/model/subscription-summary.js.map +1 -0
  82. package/lib/model/subscription.d.ts +118 -0
  83. package/lib/model/subscription.js +107 -0
  84. package/lib/model/subscription.js.map +1 -0
  85. package/lib/model/tax-info.d.ts +41 -0
  86. package/lib/model/tax-info.js +29 -0
  87. package/lib/model/tax-info.js.map +1 -0
  88. package/lib/model/update-subscription-details.d.ts +27 -0
  89. package/lib/model/update-subscription-details.js +57 -0
  90. package/lib/model/update-subscription-details.js.map +1 -0
  91. package/lib/request/authorize-subscription-payment-request.d.ts +58 -0
  92. package/lib/request/authorize-subscription-payment-request.js +15 -0
  93. package/lib/request/authorize-subscription-payment-request.js.map +1 -0
  94. package/lib/request/download-pdf-content-request.d.ts +1 -1
  95. package/lib/request/get-invoice-request.d.ts +1 -1
  96. package/lib/request/get-subscription-request.d.ts +38 -0
  97. package/lib/request/get-subscription-request.js +15 -0
  98. package/lib/request/get-subscription-request.js.map +1 -0
  99. package/lib/request/index.d.ts +12 -2
  100. package/lib/request/index.js +5 -3
  101. package/lib/request/index.js.map +1 -1
  102. package/lib/request/list-invoice-lines-request.d.ts +1 -1
  103. package/lib/request/list-invoices-request.d.ts +1 -1
  104. package/lib/request/list-subscriptions-request.d.ts +71 -0
  105. package/lib/request/list-subscriptions-request.js +36 -0
  106. package/lib/request/list-subscriptions-request.js.map +1 -0
  107. package/lib/request/pay-invoice-request.d.ts +1 -1
  108. package/lib/request/pay-subscription-request.d.ts +58 -0
  109. package/lib/request/pay-subscription-request.js +15 -0
  110. package/lib/request/pay-subscription-request.js.map +1 -0
  111. package/lib/request/update-subscription-request.d.ts +52 -0
  112. package/lib/request/update-subscription-request.js +15 -0
  113. package/lib/request/update-subscription-request.js.map +1 -0
  114. package/lib/response/authorize-subscription-payment-response.d.ts +29 -0
  115. package/lib/response/authorize-subscription-payment-response.js +15 -0
  116. package/lib/response/authorize-subscription-payment-response.js.map +1 -0
  117. package/lib/response/get-subscription-response.d.ts +29 -0
  118. package/lib/response/get-subscription-response.js +15 -0
  119. package/lib/response/get-subscription-response.js.map +1 -0
  120. package/lib/response/index.d.ts +12 -2
  121. package/lib/response/index.js +2 -2
  122. package/lib/response/list-subscriptions-response.d.ts +36 -0
  123. package/lib/response/list-subscriptions-response.js +15 -0
  124. package/lib/response/list-subscriptions-response.js.map +1 -0
  125. package/lib/response/pay-subscription-response.d.ts +29 -0
  126. package/lib/response/pay-subscription-response.js +15 -0
  127. package/lib/response/pay-subscription-response.js.map +1 -0
  128. package/lib/response/update-subscription-response.d.ts +29 -0
  129. package/lib/response/update-subscription-response.js +15 -0
  130. package/lib/response/update-subscription-response.js.map +1 -0
  131. package/package.json +3 -3
  132. package/lib/model/address.js.map +0 -1
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /**
3
+ * OSP Gateway API
4
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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.PaymentOption = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var PaymentOption;
37
+ (function (PaymentOption) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
40
+ if ("paymentMethod" in obj && obj.paymentMethod) {
41
+ switch (obj.paymentMethod) {
42
+ case "CREDIT_CARD":
43
+ return model.CreditCardPaymentOption.getJsonObj(jsonObj, true);
44
+ case "PAYPAL":
45
+ return model.PaypalPaymentOption.getJsonObj(jsonObj, true);
46
+ default:
47
+ throw Error("Unknown value for: " + obj.paymentMethod);
48
+ }
49
+ }
50
+ return jsonObj;
51
+ }
52
+ PaymentOption.getJsonObj = getJsonObj;
53
+ function getDeserializedJsonObj(obj) {
54
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
55
+ if ("paymentMethod" in obj && obj.paymentMethod) {
56
+ switch (obj.paymentMethod) {
57
+ case "CREDIT_CARD":
58
+ return model.CreditCardPaymentOption.getDeserializedJsonObj(jsonObj, true);
59
+ case "PAYPAL":
60
+ return model.PaypalPaymentOption.getDeserializedJsonObj(jsonObj, true);
61
+ default:
62
+ throw Error("Unknown value for: " + obj.paymentMethod);
63
+ }
64
+ }
65
+ return jsonObj;
66
+ }
67
+ PaymentOption.getDeserializedJsonObj = getDeserializedJsonObj;
68
+ })(PaymentOption = exports.PaymentOption || (exports.PaymentOption = {}));
69
+ //# sourceMappingURL=payment-option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-option.js","sourceRo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IApBe,oCAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3CgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA2C7B"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Billing Center Gateway API
3
- * This site describes all the Rest endpoints of Billing Center Gateway.
2
+ * OSP Gateway API
3
+ * This site describes all the Rest endpoints of OSP Gateway.
4
4
  * OpenAPI spec version: 20191001
5
5
  * Contact: osp_team_oci_cam_ww_grp@oracle.com
6
6
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
- * Billing Center Gateway API
4
- * This site describes all the Rest endpoints of Billing Center Gateway.
3
+ * OSP Gateway API
4
+ * This site describes all the Rest endpoints of OSP Gateway.
5
5
  * OpenAPI spec version: 20191001
6
6
  * Contact: osp_team_oci_cam_ww_grp@oracle.com
7
7
  *
@@ -0,0 +1,24 @@
1
+ /**
2
+ * OSP Gateway API
3
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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 model from "../model";
14
+ /**
15
+ * PayPal Payment related details
16
+ */
17
+ export interface PaypalPaymentOption extends model.PaymentOption {
18
+ "paymentMethod": string;
19
+ }
20
+ export declare namespace PaypalPaymentOption {
21
+ function getJsonObj(obj: PaypalPaymentOption, isParentJsonObj?: boolean): object;
22
+ const paymentMethod = "PAYPAL";
23
+ function getDeserializedJsonObj(obj: PaypalPaymentOption, isParentJsonObj?: boolean): object;
24
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * OSP Gateway API
4
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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.PaypalPaymentOption = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var PaypalPaymentOption;
37
+ (function (PaypalPaymentOption) {
38
+ function getJsonObj(obj, isParentJsonObj) {
39
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.PaymentOption.getJsonObj(obj))), {});
40
+ return jsonObj;
41
+ }
42
+ PaypalPaymentOption.getJsonObj = getJsonObj;
43
+ PaypalPaymentOption.paymentMethod = "PAYPAL";
44
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
45
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
46
+ ? obj
47
+ : model.PaymentOption.getDeserializedJsonObj(obj))), {});
48
+ return jsonObj;
49
+ }
50
+ PaypalPaymentOption.getDeserializedJsonObj = getDeserializedJsonObj;
51
+ })(PaypalPaymentOption = exports.PaypalPaymentOption || (exports.PaypalPaymentOption = {}));
52
+ //# sourceMappingURL=paypal-payment-option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-payment-option.js","sourceRoot":"","sources":["../../../../../lib/ospgateway/lib/model/paypal-payment-option.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,mBAAmB,CAuBnC;AAvBD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB,EAAE,eAAyB;QAC5E,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAyB,CAAC,GACtF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,8BAAU,aAOzB,CAAA;IACY,iCAAa,GAAG,QAAQ,CAAC;IACtC,SAAgB,sBAAsB,CACpC,GAAwB,EACxB,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,CAAyB,CAAC,GAC1E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,0CAAsB,yBAYrC,CAAA;AACH,CAAC,EAvBgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAuBnC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * OSP Gateway API
3
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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 model from "../model";
14
+ /**
15
+ * Subscription list
16
+ */
17
+ export interface SubscriptionCollection {
18
+ /**
19
+ * Subscription list elements
20
+ */
21
+ "items": Array<model.SubscriptionSummary>;
22
+ }
23
+ export declare namespace SubscriptionCollection {
24
+ function getJsonObj(obj: SubscriptionCollection): object;
25
+ function getDeserializedJsonObj(obj: SubscriptionCollection): object;
26
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * OSP Gateway API
4
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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.SubscriptionCollection = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var SubscriptionCollection;
37
+ (function (SubscriptionCollection) {
38
+ function getJsonObj(obj) {
39
+ const jsonObj = Object.assign(Object.assign({}, obj), {
40
+ "items": obj.items
41
+ ? obj.items.map(item => {
42
+ return model.SubscriptionSummary.getJsonObj(item);
43
+ })
44
+ : undefined
45
+ });
46
+ return jsonObj;
47
+ }
48
+ SubscriptionCollection.getJsonObj = getJsonObj;
49
+ function getDeserializedJsonObj(obj) {
50
+ const jsonObj = Object.assign(Object.assign({}, obj), {
51
+ "items": obj.items
52
+ ? obj.items.map(item => {
53
+ return model.SubscriptionSummary.getDeserializedJsonObj(item);
54
+ })
55
+ : undefined
56
+ });
57
+ return jsonObj;
58
+ }
59
+ SubscriptionCollection.getDeserializedJsonObj = getDeserializedJsonObj;
60
+ })(SubscriptionCollection = exports.SubscriptionCollection || (exports.SubscriptionCollection = {}));
61
+ //# sourceMappingURL=subscription-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-collection.js","sourceRoot":"","sources":["../../../../../lib/ospgateway/lib/model/subscription-collection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAalC,IAAiB,sBAAsB,CA6BtC;AA7BD,WAAiB,sBAAsB;IACrC,SAAgB,UAAU,CAAC,GAA2B;QACpD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,iCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA2B;QAChE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK;gBAChB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,6CAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QA6BtC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * OSP Gateway API
3
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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 model from "../model";
14
+ /**
15
+ * Subscription object which contains the common subscription data.
16
+ */
17
+ export interface SubscriptionSummary {
18
+ /**
19
+ * Subscription id identifier (OCID).
20
+ */
21
+ "id"?: string;
22
+ /**
23
+ * Subscription plan number.
24
+ */
25
+ "subscriptionPlanNumber": string;
26
+ /**
27
+ * Subscription plan type.
28
+ */
29
+ "planType"?: SubscriptionSummary.PlanType;
30
+ /**
31
+ * Start date of the subscription.
32
+ */
33
+ "timeStart"?: Date;
34
+ /**
35
+ * Ship to customer account site address id.
36
+ */
37
+ "shipToCustAcctSiteId"?: string;
38
+ /**
39
+ * Ship to customer account role.
40
+ */
41
+ "shipToCustAcctRoleId"?: string;
42
+ /**
43
+ * Bill to customer Account id.
44
+ */
45
+ "billToCustAccountId"?: string;
46
+ /**
47
+ * Payment intension.
48
+ */
49
+ "isIntentToPay"?: boolean;
50
+ /**
51
+ * Currency code
52
+ */
53
+ "currencyCode"?: string;
54
+ /**
55
+ * GSI Subscription external code.
56
+ */
57
+ "gsiOrgCode"?: string;
58
+ /**
59
+ * Language short code (en, de, hu, etc)
60
+ */
61
+ "languageCode"?: string;
62
+ /**
63
+ * GSI organization external identifier.
64
+ */
65
+ "organizationId"?: string;
66
+ /**
67
+ * Status of the upgrade.
68
+ */
69
+ "upgradeState"?: SubscriptionSummary.UpgradeState;
70
+ /**
71
+ * This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError)
72
+ */
73
+ "upgradeStateDetails"?: SubscriptionSummary.UpgradeStateDetails;
74
+ "taxInfo"?: model.TaxInfo;
75
+ /**
76
+ * Payment option list of a subscription.
77
+ */
78
+ "paymentOptions"?: Array<model.PaymentOption>;
79
+ "paymentGateway"?: model.PaymentGateway;
80
+ "billingAddress"?: model.BillingAddress;
81
+ /**
82
+ * Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
83
+ */
84
+ "timePlanUpgrade"?: Date;
85
+ }
86
+ export declare namespace SubscriptionSummary {
87
+ enum PlanType {
88
+ FreeTier = "FREE_TIER",
89
+ Payg = "PAYG",
90
+ /**
91
+ * This value is used if a service returns a value for this enum that is not recognized by this
92
+ * version of the SDK.
93
+ */
94
+ UnknownValue = "UNKNOWN_VALUE"
95
+ }
96
+ enum UpgradeState {
97
+ Promo = "PROMO",
98
+ Submitted = "SUBMITTED",
99
+ Error = "ERROR",
100
+ Upgraded = "UPGRADED",
101
+ /**
102
+ * This value is used if a service returns a value for this enum that is not recognized by this
103
+ * version of the SDK.
104
+ */
105
+ UnknownValue = "UNKNOWN_VALUE"
106
+ }
107
+ enum UpgradeStateDetails {
108
+ TaxError = "TAX_ERROR",
109
+ UpgradeError = "UPGRADE_ERROR",
110
+ /**
111
+ * This value is used if a service returns a value for this enum that is not recognized by this
112
+ * version of the SDK.
113
+ */
114
+ UnknownValue = "UNKNOWN_VALUE"
115
+ }
116
+ function getJsonObj(obj: SubscriptionSummary): object;
117
+ function getDeserializedJsonObj(obj: SubscriptionSummary): object;
118
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ /**
3
+ * OSP Gateway API
4
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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.SubscriptionSummary = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var SubscriptionSummary;
37
+ (function (SubscriptionSummary) {
38
+ let PlanType;
39
+ (function (PlanType) {
40
+ PlanType["FreeTier"] = "FREE_TIER";
41
+ PlanType["Payg"] = "PAYG";
42
+ /**
43
+ * This value is used if a service returns a value for this enum that is not recognized by this
44
+ * version of the SDK.
45
+ */
46
+ PlanType["UnknownValue"] = "UNKNOWN_VALUE";
47
+ })(PlanType = SubscriptionSummary.PlanType || (SubscriptionSummary.PlanType = {}));
48
+ let UpgradeState;
49
+ (function (UpgradeState) {
50
+ UpgradeState["Promo"] = "PROMO";
51
+ UpgradeState["Submitted"] = "SUBMITTED";
52
+ UpgradeState["Error"] = "ERROR";
53
+ UpgradeState["Upgraded"] = "UPGRADED";
54
+ /**
55
+ * This value is used if a service returns a value for this enum that is not recognized by this
56
+ * version of the SDK.
57
+ */
58
+ UpgradeState["UnknownValue"] = "UNKNOWN_VALUE";
59
+ })(UpgradeState = SubscriptionSummary.UpgradeState || (SubscriptionSummary.UpgradeState = {}));
60
+ let UpgradeStateDetails;
61
+ (function (UpgradeStateDetails) {
62
+ UpgradeStateDetails["TaxError"] = "TAX_ERROR";
63
+ UpgradeStateDetails["UpgradeError"] = "UPGRADE_ERROR";
64
+ /**
65
+ * This value is used if a service returns a value for this enum that is not recognized by this
66
+ * version of the SDK.
67
+ */
68
+ UpgradeStateDetails["UnknownValue"] = "UNKNOWN_VALUE";
69
+ })(UpgradeStateDetails = SubscriptionSummary.UpgradeStateDetails || (SubscriptionSummary.UpgradeStateDetails = {}));
70
+ function getJsonObj(obj) {
71
+ const jsonObj = Object.assign(Object.assign({}, obj), {
72
+ "taxInfo": obj.taxInfo ? model.TaxInfo.getJsonObj(obj.taxInfo) : undefined,
73
+ "paymentOptions": obj.paymentOptions
74
+ ? obj.paymentOptions.map(item => {
75
+ return model.PaymentOption.getJsonObj(item);
76
+ })
77
+ : undefined,
78
+ "paymentGateway": obj.paymentGateway
79
+ ? model.PaymentGateway.getJsonObj(obj.paymentGateway)
80
+ : undefined,
81
+ "billingAddress": obj.billingAddress
82
+ ? model.BillingAddress.getJsonObj(obj.billingAddress)
83
+ : undefined
84
+ });
85
+ return jsonObj;
86
+ }
87
+ SubscriptionSummary.getJsonObj = getJsonObj;
88
+ function getDeserializedJsonObj(obj) {
89
+ const jsonObj = Object.assign(Object.assign({}, obj), {
90
+ "taxInfo": obj.taxInfo ? model.TaxInfo.getDeserializedJsonObj(obj.taxInfo) : undefined,
91
+ "paymentOptions": obj.paymentOptions
92
+ ? obj.paymentOptions.map(item => {
93
+ return model.PaymentOption.getDeserializedJsonObj(item);
94
+ })
95
+ : undefined,
96
+ "paymentGateway": obj.paymentGateway
97
+ ? model.PaymentGateway.getDeserializedJsonObj(obj.paymentGateway)
98
+ : undefined,
99
+ "billingAddress": obj.billingAddress
100
+ ? model.BillingAddress.getDeserializedJsonObj(obj.billingAddress)
101
+ : undefined
102
+ });
103
+ return jsonObj;
104
+ }
105
+ SubscriptionSummary.getDeserializedJsonObj = getDeserializedJsonObj;
106
+ })(SubscriptionSummary = exports.SubscriptionSummary || (exports.SubscriptionSummary = {}));
107
+ //# sourceMappingURL=subscription-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-summary.js","sourceRoot":"","sources":["../../../../../lib/ospgateway/lib/model/subscription-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA4ElC,IAAiB,mBAAmB,CA2EnC;AA3ED,WAAiB,mBAAmB;IAClC,IAAY,QAQX;IARD,WAAY,QAAQ;QA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d,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,8BAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwB;QAC7D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YACtF,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC5B,OAAO,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC1D,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,0CAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3EgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA2EnC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * OSP Gateway API
3
+ * This site describes all the Rest endpoints of OSP 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, 2022, 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 model from "../model";
14
+ /**
15
+ * Subscription details object which extends the SubscriptionSummary
16
+ */
17
+ export interface Subscription {
18
+ /**
19
+ * Subscription id identifier (OCID).
20
+ */
21
+ "id"?: string;
22
+ /**
23
+ * Subscription plan number.
24
+ */
25
+ "subscriptionPlanNumber": string;
26
+ /**
27
+ * Subscription plan type.
28
+ */
29
+ "planType"?: Subscription.PlanType;
30
+ /**
31
+ * Start date of the subscription.
32
+ */
33
+ "timeStart"?: Date;
34
+ /**
35
+ * Ship to customer account site address id.
36
+ */
37
+ "shipToCustAcctSiteId"?: string;
38
+ /**
39
+ * Ship to customer account role.
40
+ */
41
+ "shipToCustAcctRoleId"?: string;
42
+ /**
43
+ * Bill to customer Account id.
44
+ */
45
+ "billToCustAccountId"?: string;
46
+ /**
47
+ * Payment intension.
48
+ */
49
+ "isIntentToPay"?: boolean;
50
+ /**
51
+ * Currency code
52
+ */
53
+ "currencyCode"?: string;
54
+ /**
55
+ * GSI Subscription external code.
56
+ */
57
+ "gsiOrgCode"?: string;
58
+ /**
59
+ * Language short code (en, de, hu, etc)
60
+ */
61
+ "languageCode"?: string;
62
+ /**
63
+ * GSI organization external identifier.
64
+ */
65
+ "organizationId"?: string;
66
+ /**
67
+ * Status of the upgrade.
68
+ */
69
+ "upgradeState"?: Subscription.UpgradeState;
70
+ /**
71
+ * This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError)
72
+ */
73
+ "upgradeStateDetails"?: Subscription.UpgradeStateDetails;
74
+ "taxInfo"?: model.TaxInfo;
75
+ /**
76
+ * Payment option list of a subscription.
77
+ */
78
+ "paymentOptions"?: Array<model.PaymentOption>;
79
+ "paymentGateway"?: model.PaymentGateway;
80
+ "billingAddress"?: model.BillingAddress;
81
+ /**
82
+ * Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
83
+ */
84
+ "timePlanUpgrade"?: Date;
85
+ }
86
+ export declare namespace Subscription {
87
+ enum PlanType {
88
+ FreeTier = "FREE_TIER",
89
+ Payg = "PAYG",
90
+ /**
91
+ * This value is used if a service returns a value for this enum that is not recognized by this
92
+ * version of the SDK.
93
+ */
94
+ UnknownValue = "UNKNOWN_VALUE"
95
+ }
96
+ enum UpgradeState {
97
+ Promo = "PROMO",
98
+ Submitted = "SUBMITTED",
99
+ Error = "ERROR",
100
+ Upgraded = "UPGRADED",
101
+ /**
102
+ * This value is used if a service returns a value for this enum that is not recognized by this
103
+ * version of the SDK.
104
+ */
105
+ UnknownValue = "UNKNOWN_VALUE"
106
+ }
107
+ enum UpgradeStateDetails {
108
+ TaxError = "TAX_ERROR",
109
+ UpgradeError = "UPGRADE_ERROR",
110
+ /**
111
+ * This value is used if a service returns a value for this enum that is not recognized by this
112
+ * version of the SDK.
113
+ */
114
+ UnknownValue = "UNKNOWN_VALUE"
115
+ }
116
+ function getJsonObj(obj: Subscription): object;
117
+ function getDeserializedJsonObj(obj: Subscription): object;
118
+ }