@emilgroup/public-api-sdk-node 1.0.2 → 1.1.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 (171) hide show
  1. package/.openapi-generator/FILES +30 -1
  2. package/README.md +3 -5
  3. package/api/documents-api.ts +31 -17
  4. package/api/leads-api.ts +482 -0
  5. package/api/notifications-api.ts +15 -9
  6. package/api/{payment-setup-api.ts → payments-setup-api.ts} +56 -44
  7. package/api/products-api.ts +73 -433
  8. package/api.ts +7 -5
  9. package/base.ts +3 -3
  10. package/common.ts +6 -6
  11. package/configuration.ts +3 -3
  12. package/dist/api/documents-api.d.ts +31 -18
  13. package/dist/api/documents-api.js +28 -16
  14. package/dist/api/leads-api.d.ts +266 -0
  15. package/dist/api/leads-api.js +506 -0
  16. package/dist/api/notifications-api.d.ts +15 -10
  17. package/dist/api/notifications-api.js +12 -8
  18. package/dist/api/{payment-setup-api.d.ts → payments-setup-api.d.ts} +50 -40
  19. package/dist/api/{payment-setup-api.js → payments-setup-api.js} +47 -39
  20. package/dist/api/products-api.d.ts +75 -251
  21. package/dist/api/products-api.js +52 -383
  22. package/dist/api.d.ts +5 -4
  23. package/dist/api.js +5 -4
  24. package/dist/base.d.ts +3 -3
  25. package/dist/base.js +4 -4
  26. package/dist/common.d.ts +6 -6
  27. package/dist/common.js +4 -4
  28. package/dist/configuration.d.ts +3 -3
  29. package/dist/configuration.js +3 -3
  30. package/dist/index.d.ts +3 -3
  31. package/dist/index.js +3 -3
  32. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +8 -8
  33. package/dist/models/complete-braintree-payment-setup-request-dto.js +3 -3
  34. package/dist/models/complete-payment-setup-request-dto.d.ts +3 -3
  35. package/dist/models/complete-payment-setup-request-dto.js +3 -3
  36. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  37. package/dist/models/complete-payment-setup-response-class.js +15 -0
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -9
  39. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -3
  40. package/dist/models/create-account-request-dto.d.ts +19 -6
  41. package/dist/models/create-account-request-dto.js +10 -4
  42. package/dist/models/create-bank-account-request-dto.d.ts +7 -7
  43. package/dist/models/create-bank-account-request-dto.js +3 -3
  44. package/dist/models/create-custom-application-request-dto.d.ts +6 -6
  45. package/dist/models/create-custom-application-request-dto.js +3 -3
  46. package/dist/models/create-custom-application-response-class.d.ts +24 -0
  47. package/dist/models/create-custom-application-response-class.js +15 -0
  48. package/dist/models/create-document-request-dto.d.ts +21 -15
  49. package/dist/models/create-document-request-dto.js +3 -3
  50. package/dist/models/create-estimated-invoice-request-dto.d.ts +11 -11
  51. package/dist/models/create-estimated-invoice-request-dto.js +3 -3
  52. package/dist/models/create-estimated-invoice-response-class.d.ts +25 -0
  53. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  54. package/dist/models/create-lead-request-dto.d.ts +23 -23
  55. package/dist/models/create-lead-request-dto.js +3 -3
  56. package/dist/models/create-lead-response-class.d.ts +25 -0
  57. package/dist/models/create-lead-response-class.js +15 -0
  58. package/dist/models/document-class.d.ts +130 -0
  59. package/dist/models/document-class.js +41 -0
  60. package/dist/models/get-custom-css-response-class.d.ts +24 -0
  61. package/dist/models/get-custom-css-response-class.js +15 -0
  62. package/dist/models/get-lead-response-class.d.ts +25 -0
  63. package/dist/models/get-lead-response-class.js +15 -0
  64. package/dist/models/index.d.ts +27 -0
  65. package/dist/models/index.js +27 -0
  66. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +4 -4
  67. package/dist/models/initiate-braintree-payment-setup-request-dto.js +3 -3
  68. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  69. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  70. package/dist/models/initiate-lead-response-class.d.ts +24 -0
  71. package/dist/models/initiate-lead-response-class.js +15 -0
  72. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -3
  73. package/dist/models/initiate-payment-setup-request-dto.js +3 -3
  74. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  75. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  76. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +4 -4
  77. package/dist/models/initiate-stripe-payment-setup-request-dto.js +3 -3
  78. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  79. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  80. package/dist/models/insured-object-class.d.ts +67 -0
  81. package/dist/models/insured-object-class.js +15 -0
  82. package/dist/models/insured-object-type-class.d.ts +48 -0
  83. package/dist/models/insured-object-type-class.js +15 -0
  84. package/dist/models/invoice-class.d.ts +128 -0
  85. package/dist/models/invoice-class.js +15 -0
  86. package/dist/models/invoice-item-class.d.ts +108 -0
  87. package/dist/models/invoice-item-class.js +15 -0
  88. package/dist/models/invoice-status-class.d.ts +42 -0
  89. package/dist/models/invoice-status-class.js +15 -0
  90. package/dist/models/lead-account-class.d.ts +109 -0
  91. package/dist/models/lead-account-class.js +22 -0
  92. package/dist/models/lead-bank-account-class.d.ts +30 -0
  93. package/dist/models/lead-bank-account-class.js +15 -0
  94. package/dist/models/lead-class.d.ts +77 -0
  95. package/dist/models/lead-class.js +15 -0
  96. package/dist/models/lead-policy-class.d.ts +44 -0
  97. package/dist/models/lead-policy-class.js +15 -0
  98. package/dist/models/lead-policy-object-class.d.ts +30 -0
  99. package/dist/models/lead-policy-object-class.js +15 -0
  100. package/dist/models/list-documents-response-class.d.ts +31 -0
  101. package/dist/models/list-documents-response-class.js +15 -0
  102. package/dist/models/payment-method-class.d.ts +60 -0
  103. package/dist/models/payment-method-class.js +15 -0
  104. package/dist/models/policy-object-request-dto.d.ts +5 -5
  105. package/dist/models/policy-object-request-dto.js +3 -3
  106. package/dist/models/premium-override-dto.d.ts +8 -8
  107. package/dist/models/premium-override-dto.js +3 -3
  108. package/dist/models/premium-override-request-dto.d.ts +4 -4
  109. package/dist/models/premium-override-request-dto.js +3 -3
  110. package/dist/models/product-factor-class.d.ts +54 -0
  111. package/dist/models/product-factor-class.js +15 -0
  112. package/dist/models/product-field-class.d.ts +120 -0
  113. package/dist/models/product-field-class.js +15 -0
  114. package/dist/models/send-notification-request-dto.d.ts +5 -5
  115. package/dist/models/send-notification-request-dto.js +3 -3
  116. package/dist/models/send-notification-response-class.d.ts +24 -0
  117. package/dist/models/send-notification-response-class.js +15 -0
  118. package/dist/models/update-lead-request-dto.d.ts +18 -18
  119. package/dist/models/update-lead-request-dto.js +3 -3
  120. package/dist/models/update-lead-response-class.d.ts +25 -0
  121. package/dist/models/update-lead-response-class.js +15 -0
  122. package/dist/models/uploaded-document-dto.d.ts +4 -4
  123. package/dist/models/uploaded-document-dto.js +3 -3
  124. package/index.ts +3 -3
  125. package/models/complete-braintree-payment-setup-request-dto.ts +8 -8
  126. package/models/complete-payment-setup-request-dto.ts +3 -3
  127. package/models/complete-payment-setup-response-class.ts +31 -0
  128. package/models/complete-stripe-payment-setup-request-dto.ts +9 -9
  129. package/models/create-account-request-dto.ts +19 -5
  130. package/models/create-bank-account-request-dto.ts +7 -7
  131. package/models/create-custom-application-request-dto.ts +5 -5
  132. package/models/create-custom-application-response-class.ts +30 -0
  133. package/models/create-document-request-dto.ts +19 -13
  134. package/models/create-estimated-invoice-request-dto.ts +10 -10
  135. package/models/create-estimated-invoice-response-class.ts +31 -0
  136. package/models/create-lead-request-dto.ts +22 -22
  137. package/models/create-lead-response-class.ts +31 -0
  138. package/models/document-class.ts +141 -0
  139. package/models/get-custom-css-response-class.ts +30 -0
  140. package/models/get-lead-response-class.ts +31 -0
  141. package/models/index.ts +27 -0
  142. package/models/initiate-braintree-payment-setup-request-dto.ts +4 -4
  143. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  144. package/models/initiate-lead-response-class.ts +30 -0
  145. package/models/initiate-payment-setup-request-dto.ts +3 -3
  146. package/models/initiate-payment-setup-response-class.ts +38 -0
  147. package/models/initiate-stripe-payment-setup-request-dto.ts +4 -4
  148. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  149. package/models/insured-object-class.ts +73 -0
  150. package/models/insured-object-type-class.ts +54 -0
  151. package/models/invoice-class.ts +134 -0
  152. package/models/invoice-item-class.ts +114 -0
  153. package/models/invoice-status-class.ts +48 -0
  154. package/models/lead-account-class.ts +118 -0
  155. package/models/lead-bank-account-class.ts +36 -0
  156. package/models/lead-class.ts +83 -0
  157. package/models/lead-policy-class.ts +50 -0
  158. package/models/lead-policy-object-class.ts +36 -0
  159. package/models/list-documents-response-class.ts +37 -0
  160. package/models/payment-method-class.ts +66 -0
  161. package/models/policy-object-request-dto.ts +5 -5
  162. package/models/premium-override-dto.ts +6 -6
  163. package/models/premium-override-request-dto.ts +4 -4
  164. package/models/product-factor-class.ts +60 -0
  165. package/models/product-field-class.ts +126 -0
  166. package/models/send-notification-request-dto.ts +5 -5
  167. package/models/send-notification-response-class.ts +30 -0
  168. package/models/update-lead-request-dto.ts +17 -17
  169. package/models/update-lead-response-class.ts +31 -0
  170. package/models/uploaded-document-dto.ts +4 -4
  171. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  /**
2
- * EMIL PublicAPI
3
- * The EMIL Public API description
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -13,14 +13,17 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CompletePaymentSetupRequestDto } from '../models';
16
+ import { CompletePaymentSetupResponseClass } from '../models';
16
17
  import { InitiatePaymentSetupRequestDto } from '../models';
18
+ import { InitiatePaymentSetupResponseClass } from '../models';
17
19
  /**
18
- * PaymentSetupApi - axios parameter creator
20
+ * PaymentsSetupApi - axios parameter creator
19
21
  * @export
20
22
  */
21
- export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configuration) => {
22
24
  /**
23
- *
25
+ * This will send the customer payment info from stripe or paypal to the backend.
26
+ * @summary Complete a payment setup
24
27
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
25
28
  * @param {string} [authorization] Bearer Token
26
29
  * @param {*} [options] Override http request option.
@@ -28,7 +31,8 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
28
31
  */
29
32
  completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
33
  /**
31
- *
34
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
35
+ * @summary Initiate a payment setup
32
36
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
33
37
  * @param {string} [authorization] Bearer Token
34
38
  * @param {*} [options] Override http request option.
@@ -37,108 +41,114 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
37
41
  initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
42
  };
39
43
  /**
40
- * PaymentSetupApi - functional programming interface
44
+ * PaymentsSetupApi - functional programming interface
41
45
  * @export
42
46
  */
43
- export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
47
+ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
44
48
  /**
45
- *
49
+ * This will send the customer payment info from stripe or paypal to the backend.
50
+ * @summary Complete a payment setup
46
51
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
47
52
  * @param {string} [authorization] Bearer Token
48
53
  * @param {*} [options] Override http request option.
49
54
  * @throws {RequiredError}
50
55
  */
51
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
56
+ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
52
57
  /**
53
- *
58
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
59
+ * @summary Initiate a payment setup
54
60
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
55
61
  * @param {string} [authorization] Bearer Token
56
62
  * @param {*} [options] Override http request option.
57
63
  * @throws {RequiredError}
58
64
  */
59
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
65
+ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
60
66
  };
61
67
  /**
62
- * PaymentSetupApi - factory interface
68
+ * PaymentsSetupApi - factory interface
63
69
  * @export
64
70
  */
65
- export declare const PaymentSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
71
+ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
66
72
  /**
67
- *
73
+ * This will send the customer payment info from stripe or paypal to the backend.
74
+ * @summary Complete a payment setup
68
75
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
69
76
  * @param {string} [authorization] Bearer Token
70
77
  * @param {*} [options] Override http request option.
71
78
  * @throws {RequiredError}
72
79
  */
73
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
80
+ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
74
81
  /**
75
- *
82
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
83
+ * @summary Initiate a payment setup
76
84
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
77
85
  * @param {string} [authorization] Bearer Token
78
86
  * @param {*} [options] Override http request option.
79
87
  * @throws {RequiredError}
80
88
  */
81
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
89
+ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
82
90
  };
83
91
  /**
84
- * Request parameters for completePaymentSetup operation in PaymentSetupApi.
92
+ * Request parameters for completePaymentSetup operation in PaymentsSetupApi.
85
93
  * @export
86
- * @interface PaymentSetupApiCompletePaymentSetupRequest
94
+ * @interface PaymentsSetupApiCompletePaymentSetupRequest
87
95
  */
88
- export interface PaymentSetupApiCompletePaymentSetupRequest {
96
+ export interface PaymentsSetupApiCompletePaymentSetupRequest {
89
97
  /**
90
98
  *
91
99
  * @type {CompletePaymentSetupRequestDto}
92
- * @memberof PaymentSetupApiCompletePaymentSetup
100
+ * @memberof PaymentsSetupApiCompletePaymentSetup
93
101
  */
94
102
  readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto;
95
103
  /**
96
104
  * Bearer Token
97
105
  * @type {string}
98
- * @memberof PaymentSetupApiCompletePaymentSetup
106
+ * @memberof PaymentsSetupApiCompletePaymentSetup
99
107
  */
100
108
  readonly authorization?: string;
101
109
  }
102
110
  /**
103
- * Request parameters for initiatePaymentSetup operation in PaymentSetupApi.
111
+ * Request parameters for initiatePaymentSetup operation in PaymentsSetupApi.
104
112
  * @export
105
- * @interface PaymentSetupApiInitiatePaymentSetupRequest
113
+ * @interface PaymentsSetupApiInitiatePaymentSetupRequest
106
114
  */
107
- export interface PaymentSetupApiInitiatePaymentSetupRequest {
115
+ export interface PaymentsSetupApiInitiatePaymentSetupRequest {
108
116
  /**
109
117
  *
110
118
  * @type {InitiatePaymentSetupRequestDto}
111
- * @memberof PaymentSetupApiInitiatePaymentSetup
119
+ * @memberof PaymentsSetupApiInitiatePaymentSetup
112
120
  */
113
121
  readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
114
122
  /**
115
123
  * Bearer Token
116
124
  * @type {string}
117
- * @memberof PaymentSetupApiInitiatePaymentSetup
125
+ * @memberof PaymentsSetupApiInitiatePaymentSetup
118
126
  */
119
127
  readonly authorization?: string;
120
128
  }
121
129
  /**
122
- * PaymentSetupApi - object-oriented interface
130
+ * PaymentsSetupApi - object-oriented interface
123
131
  * @export
124
- * @class PaymentSetupApi
132
+ * @class PaymentsSetupApi
125
133
  * @extends {BaseAPI}
126
134
  */
127
- export declare class PaymentSetupApi extends BaseAPI {
135
+ export declare class PaymentsSetupApi extends BaseAPI {
128
136
  /**
129
- *
130
- * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
137
+ * This will send the customer payment info from stripe or paypal to the backend.
138
+ * @summary Complete a payment setup
139
+ * @param {PaymentsSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
131
140
  * @param {*} [options] Override http request option.
132
141
  * @throws {RequiredError}
133
- * @memberof PaymentSetupApi
142
+ * @memberof PaymentsSetupApi
134
143
  */
135
- completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
144
+ completePaymentSetup(requestParameters: PaymentsSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
136
145
  /**
137
- *
138
- * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
146
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
147
+ * @summary Initiate a payment setup
148
+ * @param {PaymentsSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
139
149
  * @param {*} [options] Override http request option.
140
150
  * @throws {RequiredError}
141
- * @memberof PaymentSetupApi
151
+ * @memberof PaymentsSetupApi
142
152
  */
143
- initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
153
+ initiatePaymentSetup(requestParameters: PaymentsSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
144
154
  }
@@ -2,11 +2,11 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL PublicAPI
6
- * The EMIL Public API description
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
56
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
57
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
58
  if (y = 0, t) op = [op[0] & 2, t.value];
59
59
  switch (op[0]) {
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.PaymentSetupApi = exports.PaymentSetupApiFactory = exports.PaymentSetupApiFp = exports.PaymentSetupApiAxiosParamCreator = void 0;
81
+ exports.PaymentsSetupApi = exports.PaymentsSetupApiFactory = exports.PaymentsSetupApiFp = exports.PaymentsSetupApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,14 +90,15 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * PaymentSetupApi - axios parameter creator
93
+ * PaymentsSetupApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var PaymentSetupApiAxiosParamCreator = function (configuration) {
96
+ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * This will send the customer payment info from stripe or paypal to the backend.
101
+ * @summary Complete a payment setup
101
102
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
102
103
  * @param {string} [authorization] Bearer Token
103
104
  * @param {*} [options] Override http request option.
@@ -145,7 +146,8 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
145
146
  });
146
147
  },
147
148
  /**
148
- *
149
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
150
+ * @summary Initiate a payment setup
149
151
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
150
152
  * @param {string} [authorization] Bearer Token
151
153
  * @param {*} [options] Override http request option.
@@ -194,16 +196,17 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
194
196
  },
195
197
  };
196
198
  };
197
- exports.PaymentSetupApiAxiosParamCreator = PaymentSetupApiAxiosParamCreator;
199
+ exports.PaymentsSetupApiAxiosParamCreator = PaymentsSetupApiAxiosParamCreator;
198
200
  /**
199
- * PaymentSetupApi - functional programming interface
201
+ * PaymentsSetupApi - functional programming interface
200
202
  * @export
201
203
  */
202
- var PaymentSetupApiFp = function (configuration) {
203
- var localVarAxiosParamCreator = (0, exports.PaymentSetupApiAxiosParamCreator)(configuration);
204
+ var PaymentsSetupApiFp = function (configuration) {
205
+ var localVarAxiosParamCreator = (0, exports.PaymentsSetupApiAxiosParamCreator)(configuration);
204
206
  return {
205
207
  /**
206
- *
208
+ * This will send the customer payment info from stripe or paypal to the backend.
209
+ * @summary Complete a payment setup
207
210
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
208
211
  * @param {string} [authorization] Bearer Token
209
212
  * @param {*} [options] Override http request option.
@@ -223,7 +226,8 @@ var PaymentSetupApiFp = function (configuration) {
223
226
  });
224
227
  },
225
228
  /**
226
- *
229
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
230
+ * @summary Initiate a payment setup
227
231
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
228
232
  * @param {string} [authorization] Bearer Token
229
233
  * @param {*} [options] Override http request option.
@@ -244,16 +248,17 @@ var PaymentSetupApiFp = function (configuration) {
244
248
  },
245
249
  };
246
250
  };
247
- exports.PaymentSetupApiFp = PaymentSetupApiFp;
251
+ exports.PaymentsSetupApiFp = PaymentsSetupApiFp;
248
252
  /**
249
- * PaymentSetupApi - factory interface
253
+ * PaymentsSetupApi - factory interface
250
254
  * @export
251
255
  */
252
- var PaymentSetupApiFactory = function (configuration, basePath, axios) {
253
- var localVarFp = (0, exports.PaymentSetupApiFp)(configuration);
256
+ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
257
+ var localVarFp = (0, exports.PaymentsSetupApiFp)(configuration);
254
258
  return {
255
259
  /**
256
- *
260
+ * This will send the customer payment info from stripe or paypal to the backend.
261
+ * @summary Complete a payment setup
257
262
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
258
263
  * @param {string} [authorization] Bearer Token
259
264
  * @param {*} [options] Override http request option.
@@ -263,7 +268,8 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
263
268
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
264
269
  },
265
270
  /**
266
- *
271
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
272
+ * @summary Initiate a payment setup
267
273
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
268
274
  * @param {string} [authorization] Bearer Token
269
275
  * @param {*} [options] Override http request option.
@@ -274,40 +280,42 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
274
280
  },
275
281
  };
276
282
  };
277
- exports.PaymentSetupApiFactory = PaymentSetupApiFactory;
283
+ exports.PaymentsSetupApiFactory = PaymentsSetupApiFactory;
278
284
  /**
279
- * PaymentSetupApi - object-oriented interface
285
+ * PaymentsSetupApi - object-oriented interface
280
286
  * @export
281
- * @class PaymentSetupApi
287
+ * @class PaymentsSetupApi
282
288
  * @extends {BaseAPI}
283
289
  */
284
- var PaymentSetupApi = /** @class */ (function (_super) {
285
- __extends(PaymentSetupApi, _super);
286
- function PaymentSetupApi() {
290
+ var PaymentsSetupApi = /** @class */ (function (_super) {
291
+ __extends(PaymentsSetupApi, _super);
292
+ function PaymentsSetupApi() {
287
293
  return _super !== null && _super.apply(this, arguments) || this;
288
294
  }
289
295
  /**
290
- *
291
- * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
296
+ * This will send the customer payment info from stripe or paypal to the backend.
297
+ * @summary Complete a payment setup
298
+ * @param {PaymentsSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
292
299
  * @param {*} [options] Override http request option.
293
300
  * @throws {RequiredError}
294
- * @memberof PaymentSetupApi
301
+ * @memberof PaymentsSetupApi
295
302
  */
296
- PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
303
+ PaymentsSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
297
304
  var _this = this;
298
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
305
+ return (0, exports.PaymentsSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
299
306
  };
300
307
  /**
301
- *
302
- * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
308
+ * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
309
+ * @summary Initiate a payment setup
310
+ * @param {PaymentsSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
303
311
  * @param {*} [options] Override http request option.
304
312
  * @throws {RequiredError}
305
- * @memberof PaymentSetupApi
313
+ * @memberof PaymentsSetupApi
306
314
  */
307
- PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
315
+ PaymentsSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
308
316
  var _this = this;
309
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
317
+ return (0, exports.PaymentsSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
310
318
  };
311
- return PaymentSetupApi;
319
+ return PaymentsSetupApi;
312
320
  }(base_1.BaseAPI));
313
- exports.PaymentSetupApi = PaymentSetupApi;
321
+ exports.PaymentsSetupApi = PaymentsSetupApi;