@selfcommunity/api-services 0.6.7-payments.147 → 0.6.7-payments.149
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.
|
@@ -2,7 +2,7 @@ import { SCPaymentProduct, SCPaymentPrice } from '@selfcommunity/types';
|
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import { BaseGetParams, SCPaginatedResponse } from '../../types';
|
|
4
4
|
import { CheckoutCreateSessionParams, CheckoutSessionParams, ContentProductsParams } from '../../types/payment';
|
|
5
|
-
import { SCCheckoutSession, SCPaymentOrder, SCCheckoutSessionDetail } from '@selfcommunity/types';
|
|
5
|
+
import { SCCheckoutSession, SCPaymentOrder, SCCheckoutSessionDetail, SCCheckoutSessionComplete } from '@selfcommunity/types';
|
|
6
6
|
export interface PaymentApiClientInterface {
|
|
7
7
|
/**
|
|
8
8
|
* Get paywall products related to an object of type <content_type> and id <content_id>
|
|
@@ -34,7 +34,7 @@ export interface PaymentApiClientInterface {
|
|
|
34
34
|
* @param data
|
|
35
35
|
* @param config
|
|
36
36
|
*/
|
|
37
|
-
checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
37
|
+
checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
38
38
|
/**
|
|
39
39
|
* This endpoint retrive order history of authenticated user
|
|
40
40
|
* @param params
|
|
@@ -76,7 +76,7 @@ export declare class PaymentApiClient {
|
|
|
76
76
|
* @param data
|
|
77
77
|
* @param config
|
|
78
78
|
*/
|
|
79
|
-
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
79
|
+
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
80
80
|
/**
|
|
81
81
|
* This endpoint retrive order history of authenticated user
|
|
82
82
|
* @param params
|
|
@@ -124,6 +124,6 @@ export default class PaymentService {
|
|
|
124
124
|
static getPaymentProductPrices(id: number | string, params?: ContentProductsParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentPrice>>;
|
|
125
125
|
static checkoutCreateSession(data: CheckoutCreateSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSession>;
|
|
126
126
|
static getCheckoutSession(params?: CheckoutSessionParams, config?: AxiosRequestConfig): Promise<SCCheckoutSessionDetail>;
|
|
127
|
-
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
127
|
+
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
128
128
|
static getPaymentsOrder(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
|
|
129
129
|
}
|
|
@@ -2,7 +2,7 @@ import { SCPaymentProduct, SCPaymentPrice } from '@selfcommunity/types';
|
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import { BaseGetParams, SCPaginatedResponse } from '../../types';
|
|
4
4
|
import { CheckoutCreateSessionParams, CheckoutSessionParams, ContentProductsParams } from '../../types/payment';
|
|
5
|
-
import { SCCheckoutSession, SCPaymentOrder, SCCheckoutSessionDetail } from '@selfcommunity/types';
|
|
5
|
+
import { SCCheckoutSession, SCPaymentOrder, SCCheckoutSessionDetail, SCCheckoutSessionComplete } from '@selfcommunity/types';
|
|
6
6
|
export interface PaymentApiClientInterface {
|
|
7
7
|
/**
|
|
8
8
|
* Get paywall products related to an object of type <content_type> and id <content_id>
|
|
@@ -34,7 +34,7 @@ export interface PaymentApiClientInterface {
|
|
|
34
34
|
* @param data
|
|
35
35
|
* @param config
|
|
36
36
|
*/
|
|
37
|
-
checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
37
|
+
checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
38
38
|
/**
|
|
39
39
|
* This endpoint retrive order history of authenticated user
|
|
40
40
|
* @param params
|
|
@@ -76,7 +76,7 @@ export declare class PaymentApiClient {
|
|
|
76
76
|
* @param data
|
|
77
77
|
* @param config
|
|
78
78
|
*/
|
|
79
|
-
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
79
|
+
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
80
80
|
/**
|
|
81
81
|
* This endpoint retrive order history of authenticated user
|
|
82
82
|
* @param params
|
|
@@ -124,6 +124,6 @@ export default class PaymentService {
|
|
|
124
124
|
static getPaymentProductPrices(id: number | string, params?: ContentProductsParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentPrice>>;
|
|
125
125
|
static checkoutCreateSession(data: CheckoutCreateSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSession>;
|
|
126
126
|
static getCheckoutSession(params?: CheckoutSessionParams, config?: AxiosRequestConfig): Promise<SCCheckoutSessionDetail>;
|
|
127
|
-
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<
|
|
127
|
+
static checkoutCompleteSession(data: CheckoutSessionParams | FormData, config?: AxiosRequestConfig): Promise<SCCheckoutSessionComplete>;
|
|
128
128
|
static getPaymentsOrder(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPaymentOrder>>;
|
|
129
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/api-services",
|
|
3
|
-
"version": "0.6.7-payments.
|
|
3
|
+
"version": "0.6.7-payments.149+52061512a",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@selfcommunity/types": "0.7.7-payments.
|
|
62
|
-
"@selfcommunity/utils": "0.2.64-payments.
|
|
61
|
+
"@selfcommunity/types": "0.7.7-payments.149+52061512a",
|
|
62
|
+
"@selfcommunity/utils": "0.2.64-payments.149+52061512a",
|
|
63
63
|
"axios": "^1.4.0",
|
|
64
64
|
"jose": "^4.14.4"
|
|
65
65
|
},
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"bugs": {
|
|
116
116
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "52061512a931e26c6224a4d8c6530c1cd5a9800f"
|
|
119
119
|
}
|