@selfcommunity/api-services 0.6.7-payments.181 → 0.6.7-payments.183

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.
@@ -1635,6 +1635,14 @@ const Endpoints = {
1635
1635
  url: (0, utils_1.urlReplacer)('/api/v2/payments/payment_order/'),
1636
1636
  method: 'GET'
1637
1637
  },
1638
+ GetPaymentOrder: {
1639
+ url: (0, utils_1.urlReplacer)('/api/v2/payments/payment_order/$(id)/'),
1640
+ method: 'GET'
1641
+ },
1642
+ GetPaymentOrderPdf: {
1643
+ url: (0, utils_1.urlReplacer)('/api/v2/payments/payment_order/$(id)/pdf/'),
1644
+ method: 'GET'
1645
+ },
1638
1646
  CreateCustomerPortalSession: {
1639
1647
  url: (0, utils_1.urlReplacer)('/api/v2/payments/customer_portal_session/'),
1640
1648
  method: 'POST'
@@ -58,6 +58,18 @@ export interface PaymentApiClientInterface {
58
58
  * @param config
59
59
  */
60
60
  getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
61
+ /**
62
+ * This endpoint retrieves the single payment order
63
+ * @param id
64
+ * @param config
65
+ */
66
+ getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
67
+ /**
68
+ * This endpoint retrieves the single payment order in pdf format
69
+ * @param id
70
+ * @param config
71
+ */
72
+ getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
61
73
  /**
62
74
  * This endpoint retrieve customer portal
63
75
  * @param data
@@ -136,6 +148,18 @@ export declare class PaymentApiClient {
136
148
  * @param config
137
149
  */
138
150
  static getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
151
+ /**
152
+ * This endpoint retrieves the single payment order
153
+ * @param id
154
+ * @param config
155
+ */
156
+ static getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
157
+ /**
158
+ * This endpoint retrieves the single payment order in pdf format
159
+ * @param id
160
+ * @param config
161
+ */
162
+ static getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
139
163
  /**
140
164
  * This endpoint retrive customer portal
141
165
  * @param data
@@ -188,6 +212,8 @@ export default class PaymentService {
188
212
  static getCheckoutSession(params?: CheckoutSessionParams, config?: AxiosRequestConfig): Promise<SCCheckoutSessionDetail>;
189
213
  static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
190
214
  static getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
215
+ static getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
216
+ static getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
191
217
  static getPaymentsCustomerPortal(data: CustomerPortalCreateSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCPaymentsCustomerPortalSession>;
192
218
  static createPaymentProduct(data: CreatePaymentProductParams | FormData, config?: AxiosRequestConfig): Promise<SCPaymentProduct>;
193
219
  }
@@ -95,6 +95,22 @@ class PaymentApiClient {
95
95
  const p = (0, url_1.urlParams)(params);
96
96
  return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetPaymentOrders.url({})}?${p.toString()}`, method: Endpoints_1.default.GetPaymentOrders.method }));
97
97
  }
98
+ /**
99
+ * This endpoint retrieves the single payment order
100
+ * @param id
101
+ * @param config
102
+ */
103
+ static getPaymentOrder(id, config) {
104
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetPaymentOrder.url({ id })}`, method: Endpoints_1.default.GetPaymentOrder.method }));
105
+ }
106
+ /**
107
+ * This endpoint retrieves the single payment order in pdf format
108
+ * @param id
109
+ * @param config
110
+ */
111
+ static getPaymentOrderPdf(id, config) {
112
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.GetPaymentOrderPdf.url({ id })}`, method: Endpoints_1.default.GetPaymentOrderPdf.method }));
113
+ }
98
114
  /**
99
115
  * This endpoint retrive customer portal
100
116
  * @param data
@@ -184,6 +200,12 @@ class PaymentService {
184
200
  static getPaymentsOrder(params, config) {
185
201
  return PaymentApiClient.getPaymentsOrder(params, config);
186
202
  }
203
+ static getPaymentOrder(id, config) {
204
+ return PaymentApiClient.getPaymentOrder(id, config);
205
+ }
206
+ static getPaymentOrderPdf(id, config) {
207
+ return PaymentApiClient.getPaymentOrderPdf(id, config);
208
+ }
187
209
  static getPaymentsCustomerPortal(data, config) {
188
210
  return PaymentApiClient.getPaymentsCustomerPortal(data, config);
189
211
  }
@@ -1633,6 +1633,14 @@ const Endpoints = {
1633
1633
  url: urlReplacer('/api/v2/payments/payment_order/'),
1634
1634
  method: 'GET'
1635
1635
  },
1636
+ GetPaymentOrder: {
1637
+ url: urlReplacer('/api/v2/payments/payment_order/$(id)/'),
1638
+ method: 'GET'
1639
+ },
1640
+ GetPaymentOrderPdf: {
1641
+ url: urlReplacer('/api/v2/payments/payment_order/$(id)/pdf/'),
1642
+ method: 'GET'
1643
+ },
1636
1644
  CreateCustomerPortalSession: {
1637
1645
  url: urlReplacer('/api/v2/payments/customer_portal_session/'),
1638
1646
  method: 'POST'
@@ -58,6 +58,18 @@ export interface PaymentApiClientInterface {
58
58
  * @param config
59
59
  */
60
60
  getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
61
+ /**
62
+ * This endpoint retrieves the single payment order
63
+ * @param id
64
+ * @param config
65
+ */
66
+ getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
67
+ /**
68
+ * This endpoint retrieves the single payment order in pdf format
69
+ * @param id
70
+ * @param config
71
+ */
72
+ getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
61
73
  /**
62
74
  * This endpoint retrieve customer portal
63
75
  * @param data
@@ -136,6 +148,18 @@ export declare class PaymentApiClient {
136
148
  * @param config
137
149
  */
138
150
  static getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
151
+ /**
152
+ * This endpoint retrieves the single payment order
153
+ * @param id
154
+ * @param config
155
+ */
156
+ static getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
157
+ /**
158
+ * This endpoint retrieves the single payment order in pdf format
159
+ * @param id
160
+ * @param config
161
+ */
162
+ static getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
139
163
  /**
140
164
  * This endpoint retrive customer portal
141
165
  * @param data
@@ -188,6 +212,8 @@ export default class PaymentService {
188
212
  static getCheckoutSession(params?: CheckoutSessionParams, config?: AxiosRequestConfig): Promise<SCCheckoutSessionDetail>;
189
213
  static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
190
214
  static getPaymentsOrder(params?: PaymentOrderParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
215
+ static getPaymentOrder(id: number | string, config?: AxiosRequestConfig): Promise<SCPaymentOrder>;
216
+ static getPaymentOrderPdf(id: number | string, config?: AxiosRequestConfig): Promise<Blob>;
191
217
  static getPaymentsCustomerPortal(data: CustomerPortalCreateSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCPaymentsCustomerPortalSession>;
192
218
  static createPaymentProduct(data: CreatePaymentProductParams | FormData, config?: AxiosRequestConfig): Promise<SCPaymentProduct>;
193
219
  }
@@ -92,6 +92,22 @@ export class PaymentApiClient {
92
92
  const p = urlParams(params);
93
93
  return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetPaymentOrders.url({})}?${p.toString()}`, method: Endpoints.GetPaymentOrders.method }));
94
94
  }
95
+ /**
96
+ * This endpoint retrieves the single payment order
97
+ * @param id
98
+ * @param config
99
+ */
100
+ static getPaymentOrder(id, config) {
101
+ return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetPaymentOrder.url({ id })}`, method: Endpoints.GetPaymentOrder.method }));
102
+ }
103
+ /**
104
+ * This endpoint retrieves the single payment order in pdf format
105
+ * @param id
106
+ * @param config
107
+ */
108
+ static getPaymentOrderPdf(id, config) {
109
+ return apiRequest(Object.assign(Object.assign({}, config), { url: `${Endpoints.GetPaymentOrderPdf.url({ id })}`, method: Endpoints.GetPaymentOrderPdf.method }));
110
+ }
95
111
  /**
96
112
  * This endpoint retrive customer portal
97
113
  * @param data
@@ -180,6 +196,12 @@ export default class PaymentService {
180
196
  static getPaymentsOrder(params, config) {
181
197
  return PaymentApiClient.getPaymentsOrder(params, config);
182
198
  }
199
+ static getPaymentOrder(id, config) {
200
+ return PaymentApiClient.getPaymentOrder(id, config);
201
+ }
202
+ static getPaymentOrderPdf(id, config) {
203
+ return PaymentApiClient.getPaymentOrderPdf(id, config);
204
+ }
183
205
  static getPaymentsCustomerPortal(data, config) {
184
206
  return PaymentApiClient.getPaymentsCustomerPortal(data, config);
185
207
  }