@parra/parra-js-sdk 0.3.346 → 0.3.347

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.
@@ -751,6 +751,8 @@ export interface BillingSource {
751
751
  description?: string | null;
752
752
  application_id: string;
753
753
  data: BillingSourceData;
754
+ last_synced_at?: string | null;
755
+ last_manual_sync_attempt_at?: string | null;
754
756
  }
755
757
  export interface UpdateBillingSourceRequestBody {
756
758
  title: string;
@@ -3798,6 +3800,7 @@ declare class ParraAPI {
3798
3800
  updateBillingSourceById: (tenant_id: string, billing_source_id: string, body: UpdateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
3799
3801
  deleteBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3800
3802
  setupAppStoreServerNotificationsForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3803
+ syncAppStoreForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
3801
3804
  testAppStoreServerNotificationsForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3802
3805
  createEntitlement: (tenant_id: string, body?: CreateEntitlementRequestBody, options?: Options) => Promise<Entitlement>;
3803
3806
  listEntitlements: (tenant_id: string, options?: Options) => Promise<Array<Entitlement>>;
package/dist/ParraAPI.js CHANGED
@@ -551,6 +551,10 @@ var ParraAPI = /** @class */ (function () {
551
551
  if (options === void 0) { options = {}; }
552
552
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/setup"), __assign({ method: "post" }, options));
553
553
  };
554
+ this.syncAppStoreForAppleBillingSource = function (tenant_id, billing_source_id, options) {
555
+ if (options === void 0) { options = {}; }
556
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store/sync"), __assign({ method: "post" }, options));
557
+ };
554
558
  this.testAppStoreServerNotificationsForAppleBillingSource = function (tenant_id, billing_source_id, options) {
555
559
  if (options === void 0) { options = {}; }
556
560
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/test"), __assign({ method: "post" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.346",
3
+ "version": "0.3.347",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",