@parra/parra-js-sdk 0.3.330 → 0.3.331
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.
- package/dist/ParraAPI.d.ts +10 -1
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -668,6 +668,12 @@ export interface CreateBillingSourceRequestBody {
|
|
|
668
668
|
application_id: string;
|
|
669
669
|
data: CreateBillingSourceBillingSourceData;
|
|
670
670
|
}
|
|
671
|
+
export interface BillingSourceAppleData {
|
|
672
|
+
app_store_connect_api_connection_id: string;
|
|
673
|
+
app_store_server_notification_production_url: string;
|
|
674
|
+
app_store_server_notification_sandbox_url: string;
|
|
675
|
+
}
|
|
676
|
+
export type BillingSourceData = BillingSourceAppleData;
|
|
671
677
|
export interface BillingSource {
|
|
672
678
|
id: string;
|
|
673
679
|
created_at: string;
|
|
@@ -678,7 +684,7 @@ export interface BillingSource {
|
|
|
678
684
|
type: BillingSourceType;
|
|
679
685
|
description?: string | null;
|
|
680
686
|
application_id: string;
|
|
681
|
-
data:
|
|
687
|
+
data: BillingSourceData;
|
|
682
688
|
}
|
|
683
689
|
export interface UpdateBillingSourceRequestBody {
|
|
684
690
|
title: string;
|
|
@@ -1037,6 +1043,7 @@ export interface ContentCardBackground {
|
|
|
1037
1043
|
}
|
|
1038
1044
|
export interface ContentCardAction {
|
|
1039
1045
|
url: string;
|
|
1046
|
+
confirmation_message?: string | null;
|
|
1040
1047
|
}
|
|
1041
1048
|
export interface ContentCard {
|
|
1042
1049
|
id: string;
|
|
@@ -1046,6 +1053,7 @@ export interface ContentCard {
|
|
|
1046
1053
|
background?: ContentCardBackground | null;
|
|
1047
1054
|
title?: string | null;
|
|
1048
1055
|
description?: string | null;
|
|
1056
|
+
badge?: string | null;
|
|
1049
1057
|
action?: ContentCardAction | null;
|
|
1050
1058
|
}
|
|
1051
1059
|
export interface EntitlementStub {
|
|
@@ -3713,6 +3721,7 @@ declare class ParraAPI {
|
|
|
3713
3721
|
getBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
|
|
3714
3722
|
updateBillingSourceById: (tenant_id: string, billing_source_id: string, body: UpdateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
|
|
3715
3723
|
deleteBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
|
|
3724
|
+
setupAppStoreServerNotificationsForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
|
|
3716
3725
|
createEntitlement: (tenant_id: string, body?: CreateEntitlementRequestBody, options?: Options) => Promise<Entitlement>;
|
|
3717
3726
|
listEntitlements: (tenant_id: string, options?: Options) => Promise<Array<Entitlement>>;
|
|
3718
3727
|
getEntitlementById: (tenant_id: string, entitlement_id: string, options?: Options) => Promise<Entitlement>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -531,6 +531,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
531
531
|
if (options === void 0) { options = {}; }
|
|
532
532
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), __assign({ method: "delete" }, options));
|
|
533
533
|
};
|
|
534
|
+
this.setupAppStoreServerNotificationsForAppleBillingSource = function (tenant_id, billing_source_id, options) {
|
|
535
|
+
if (options === void 0) { options = {}; }
|
|
536
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications"), __assign({ method: "post" }, options));
|
|
537
|
+
};
|
|
534
538
|
this.createEntitlement = function (tenant_id, body, options) {
|
|
535
539
|
if (options === void 0) { options = {}; }
|
|
536
540
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|