mobilyflow-react-native-sdk 0.1.0-alpha.2 → 0.1.0-alpha.4
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/lib/commonjs/MobilyPurchaseSDK.js +158 -0
- package/lib/commonjs/MobilyPurchaseSDK.js.map +1 -0
- package/lib/commonjs/NativeMobilyflowReactNativeSdk.js +9 -0
- package/lib/commonjs/NativeMobilyflowReactNativeSdk.js.map +1 -0
- package/lib/commonjs/entities/mobily-customer-entitlement.js +30 -0
- package/lib/commonjs/entities/mobily-customer-entitlement.js.map +1 -0
- package/lib/commonjs/entities/mobily-one-time-product.js +9 -0
- package/lib/commonjs/entities/mobily-one-time-product.js.map +1 -0
- package/lib/commonjs/entities/mobily-product.js +16 -0
- package/lib/commonjs/entities/mobily-product.js.map +1 -0
- package/lib/commonjs/entities/mobily-subscription-group.js +19 -0
- package/lib/commonjs/entities/mobily-subscription-group.js.map +1 -0
- package/lib/commonjs/entities/mobily-subscription-offer.js +9 -0
- package/lib/commonjs/entities/mobily-subscription-offer.js.map +1 -0
- package/lib/commonjs/entities/mobily-subscription-product.js +9 -0
- package/lib/commonjs/entities/mobily-subscription-product.js.map +1 -0
- package/lib/commonjs/enums/mobily-environment.js +13 -0
- package/lib/commonjs/enums/mobily-environment.js.map +1 -0
- package/lib/commonjs/enums/period-unit.js +13 -0
- package/lib/commonjs/enums/period-unit.js.map +1 -0
- package/lib/commonjs/enums/platform.js +12 -0
- package/lib/commonjs/enums/platform.js.map +1 -0
- package/lib/commonjs/enums/product-status.js +13 -0
- package/lib/commonjs/enums/product-status.js.map +1 -0
- package/lib/commonjs/enums/product-type.js +12 -0
- package/lib/commonjs/enums/product-type.js.map +1 -0
- package/lib/commonjs/enums/webhook-status.js +13 -0
- package/lib/commonjs/enums/webhook-status.js.map +1 -0
- package/lib/commonjs/errors/mobily-error.js +26 -0
- package/lib/commonjs/errors/mobily-error.js.map +1 -0
- package/lib/commonjs/errors/mobily-purchase-error.js +34 -0
- package/lib/commonjs/errors/mobily-purchase-error.js.map +1 -0
- package/lib/commonjs/errors/mobily-transfer-ownership-error.js +27 -0
- package/lib/commonjs/errors/mobily-transfer-ownership-error.js.map +1 -0
- package/lib/commonjs/index.js +130 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/utils/object-transformer.js +59 -0
- package/lib/commonjs/utils/object-transformer.js.map +1 -0
- package/lib/module/MobilyPurchaseSDK.js +152 -0
- package/lib/module/MobilyPurchaseSDK.js.map +1 -0
- package/lib/module/NativeMobilyflowReactNativeSdk.js +5 -0
- package/lib/module/NativeMobilyflowReactNativeSdk.js.map +1 -0
- package/lib/module/entities/mobily-customer-entitlement.js +23 -0
- package/lib/module/entities/mobily-customer-entitlement.js.map +1 -0
- package/lib/module/entities/mobily-one-time-product.js +4 -0
- package/lib/module/entities/mobily-one-time-product.js.map +1 -0
- package/lib/module/entities/mobily-product.js +11 -0
- package/lib/module/entities/mobily-product.js.map +1 -0
- package/lib/module/entities/mobily-subscription-group.js +14 -0
- package/lib/module/entities/mobily-subscription-group.js.map +1 -0
- package/lib/module/entities/mobily-subscription-offer.js +4 -0
- package/lib/module/entities/mobily-subscription-offer.js.map +1 -0
- package/lib/module/entities/mobily-subscription-product.js +4 -0
- package/lib/module/entities/mobily-subscription-product.js.map +1 -0
- package/lib/module/enums/mobily-environment.js +9 -0
- package/lib/module/enums/mobily-environment.js.map +1 -0
- package/lib/module/enums/period-unit.js +9 -0
- package/lib/module/enums/period-unit.js.map +1 -0
- package/lib/module/enums/platform.js +8 -0
- package/lib/module/enums/platform.js.map +1 -0
- package/lib/module/enums/product-status.js +9 -0
- package/lib/module/enums/product-status.js.map +1 -0
- package/lib/module/enums/product-type.js +8 -0
- package/lib/module/enums/product-type.js.map +1 -0
- package/lib/module/enums/webhook-status.js +9 -0
- package/lib/module/enums/webhook-status.js.map +1 -0
- package/lib/module/errors/mobily-error.js +21 -0
- package/lib/module/errors/mobily-error.js.map +1 -0
- package/lib/module/errors/mobily-purchase-error.js +29 -0
- package/lib/module/errors/mobily-purchase-error.js.map +1 -0
- package/lib/module/errors/mobily-transfer-ownership-error.js +22 -0
- package/lib/module/errors/mobily-transfer-ownership-error.js.map +1 -0
- package/lib/module/index.js +19 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/utils/object-transformer.js +54 -0
- package/lib/module/utils/object-transformer.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/MobilyPurchaseSDK.d.ts +30 -0
- package/lib/typescript/commonjs/src/MobilyPurchaseSDK.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeMobilyflowReactNativeSdk.d.ts +34 -0
- package/lib/typescript/commonjs/src/NativeMobilyflowReactNativeSdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-customer-entitlement.d.ts +23 -0
- package/lib/typescript/commonjs/src/entities/mobily-customer-entitlement.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-one-time-product.d.ts +11 -0
- package/lib/typescript/commonjs/src/entities/mobily-one-time-product.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-product.d.ts +23 -0
- package/lib/typescript/commonjs/src/entities/mobily-product.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-group.d.ts +12 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-group.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-offer.d.ts +16 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-offer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-product.d.ts +13 -0
- package/lib/typescript/commonjs/src/entities/mobily-subscription-product.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/mobily-environment.d.ts +6 -0
- package/lib/typescript/commonjs/src/enums/mobily-environment.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/period-unit.d.ts +6 -0
- package/lib/typescript/commonjs/src/enums/period-unit.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/platform.d.ts +5 -0
- package/lib/typescript/commonjs/src/enums/platform.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/product-status.d.ts +6 -0
- package/lib/typescript/commonjs/src/enums/product-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/product-type.d.ts +5 -0
- package/lib/typescript/commonjs/src/enums/product-type.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/webhook-status.d.ts +6 -0
- package/lib/typescript/commonjs/src/enums/webhook-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/errors/mobily-error.d.ts +15 -0
- package/lib/typescript/commonjs/src/errors/mobily-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/errors/mobily-purchase-error.d.ts +23 -0
- package/lib/typescript/commonjs/src/errors/mobily-purchase-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/errors/mobily-transfer-ownership-error.d.ts +16 -0
- package/lib/typescript/commonjs/src/errors/mobily-transfer-ownership-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +18 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/object-transformer.d.ts +37 -0
- package/lib/typescript/commonjs/src/utils/object-transformer.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/MobilyPurchaseSDK.d.ts +30 -0
- package/lib/typescript/module/src/MobilyPurchaseSDK.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeMobilyflowReactNativeSdk.d.ts +34 -0
- package/lib/typescript/module/src/NativeMobilyflowReactNativeSdk.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-customer-entitlement.d.ts +23 -0
- package/lib/typescript/module/src/entities/mobily-customer-entitlement.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-one-time-product.d.ts +11 -0
- package/lib/typescript/module/src/entities/mobily-one-time-product.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-product.d.ts +23 -0
- package/lib/typescript/module/src/entities/mobily-product.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-subscription-group.d.ts +12 -0
- package/lib/typescript/module/src/entities/mobily-subscription-group.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-subscription-offer.d.ts +16 -0
- package/lib/typescript/module/src/entities/mobily-subscription-offer.d.ts.map +1 -0
- package/lib/typescript/module/src/entities/mobily-subscription-product.d.ts +13 -0
- package/lib/typescript/module/src/entities/mobily-subscription-product.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/mobily-environment.d.ts +6 -0
- package/lib/typescript/module/src/enums/mobily-environment.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/period-unit.d.ts +6 -0
- package/lib/typescript/module/src/enums/period-unit.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/platform.d.ts +5 -0
- package/lib/typescript/module/src/enums/platform.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/product-status.d.ts +6 -0
- package/lib/typescript/module/src/enums/product-status.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/product-type.d.ts +5 -0
- package/lib/typescript/module/src/enums/product-type.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/webhook-status.d.ts +6 -0
- package/lib/typescript/module/src/enums/webhook-status.d.ts.map +1 -0
- package/lib/typescript/module/src/errors/mobily-error.d.ts +15 -0
- package/lib/typescript/module/src/errors/mobily-error.d.ts.map +1 -0
- package/lib/typescript/module/src/errors/mobily-purchase-error.d.ts +23 -0
- package/lib/typescript/module/src/errors/mobily-purchase-error.d.ts.map +1 -0
- package/lib/typescript/module/src/errors/mobily-transfer-ownership-error.d.ts +16 -0
- package/lib/typescript/module/src/errors/mobily-transfer-ownership-error.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +18 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/object-transformer.d.ts +37 -0
- package/lib/typescript/module/src/utils/object-transformer.d.ts.map +1 -0
- package/package.json +3 -2
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
export { MobilyPurchaseSDK } from "./MobilyPurchaseSDK.js";
|
4
|
+
export { MobilyProduct } from "./entities/mobily-product.js";
|
5
|
+
export { MobilyCustomerEntitlement, ItemEntitlement, SubscriptionEntitlement } from "./entities/mobily-customer-entitlement.js";
|
6
|
+
export { MobilyOneTimeProduct } from "./entities/mobily-one-time-product.js";
|
7
|
+
export { MobilySubscriptionProduct } from "./entities/mobily-subscription-product.js";
|
8
|
+
export { MobilySubscriptionGroup } from "./entities/mobily-subscription-group.js";
|
9
|
+
export { MobilySubscriptionOffer } from "./entities/mobily-subscription-offer.js";
|
10
|
+
export { MobilyEnvironment } from "./enums/mobily-environment.js";
|
11
|
+
export { PeriodUnit } from "./enums/period-unit.js";
|
12
|
+
export { Platform } from "./enums/platform.js";
|
13
|
+
export { ProductStatus } from "./enums/product-status.js";
|
14
|
+
export { ProductType } from "./enums/product-type.js";
|
15
|
+
export { WebhookStatus } from "./enums/webhook-status.js";
|
16
|
+
export { MobilyError } from "./errors/mobily-error.js";
|
17
|
+
export { MobilyPurchaseError } from "./errors/mobily-purchase-error.js";
|
18
|
+
export { MobilyTransferOwnershipError } from "./errors/mobily-transfer-ownership-error.js";
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["MobilyPurchaseSDK","MobilyProduct","MobilyCustomerEntitlement","ItemEntitlement","SubscriptionEntitlement","MobilyOneTimeProduct","MobilySubscriptionProduct","MobilySubscriptionGroup","MobilySubscriptionOffer","MobilyEnvironment","PeriodUnit","Platform","ProductStatus","ProductType","WebhookStatus","MobilyError","MobilyPurchaseError","MobilyTransferOwnershipError"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,wBAAqB;AAEvD,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SACEC,yBAAyB,EACzBC,eAAe,EACfC,uBAAuB,QAClB,2CAAwC;AAC/C,SAASC,oBAAoB,QAAQ,uCAAoC;AACzE,SAASC,yBAAyB,QAAQ,2CAAwC;AAClF,SAASC,uBAAuB,QAAQ,yCAAsC;AAC9E,SAASC,uBAAuB,QAAQ,yCAAsC;AAE9E,SAASC,iBAAiB,QAAQ,+BAA4B;AAC9D,SAASC,UAAU,QAAQ,wBAAqB;AAChD,SAASC,QAAQ,QAAQ,qBAAkB;AAC3C,SAASC,aAAa,QAAQ,2BAAwB;AACtD,SAASC,WAAW,QAAQ,yBAAsB;AAClD,SAASC,aAAa,QAAQ,2BAAwB;AAEtD,SAASC,WAAW,QAAQ,0BAAuB;AACnD,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,4BAA4B,QAAQ,6CAA0C","ignoreList":[]}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Transform object following the transformer.
|
5
|
+
* Note: The function is safe, take care of the real type of each field and perform null checks.
|
6
|
+
*
|
7
|
+
* ```
|
8
|
+
* // Example:
|
9
|
+
* objectTransformer(
|
10
|
+
* {
|
11
|
+
* date_start: '2023-04-12',
|
12
|
+
* date_end: '2023-04-13',
|
13
|
+
* user_array: [
|
14
|
+
* { name: 'Greg', created_date: '2023-05-12' },
|
15
|
+
* { name: 'Antoine', created_date: '2023-06-12' },
|
16
|
+
* ],
|
17
|
+
* single_user: { name: 'Greg', created_date: '2023-05-12' },
|
18
|
+
* },
|
19
|
+
* {
|
20
|
+
* dates: ['date_start', 'date_end'],
|
21
|
+
* mapping: {
|
22
|
+
* user_array: parseUser,
|
23
|
+
* single_user: parseUser,
|
24
|
+
* },
|
25
|
+
* },
|
26
|
+
* );
|
27
|
+
* // Return an object with parsed dates & mapped user.
|
28
|
+
* ```
|
29
|
+
* @param obj
|
30
|
+
* @param tranformer
|
31
|
+
*/
|
32
|
+
export const objectTransformer = (obj, tranformer) => {
|
33
|
+
const anyObj = obj;
|
34
|
+
if (tranformer.dates) {
|
35
|
+
for (const date of tranformer.dates) {
|
36
|
+
if (anyObj[date] && (typeof anyObj[date] === 'string' || typeof anyObj[date] === 'number')) {
|
37
|
+
anyObj[date] = new Date(anyObj[date]);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
if (tranformer.mapping) {
|
42
|
+
for (const mapKey of Object.keys(tranformer.mapping)) {
|
43
|
+
if (anyObj[mapKey]) {
|
44
|
+
if (Array.isArray(anyObj[mapKey])) {
|
45
|
+
anyObj[mapKey] = anyObj[mapKey].map(tranformer.mapping[mapKey]);
|
46
|
+
} else {
|
47
|
+
anyObj[mapKey] = tranformer.mapping[mapKey](anyObj[mapKey]);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
return anyObj;
|
53
|
+
};
|
54
|
+
//# sourceMappingURL=object-transformer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["objectTransformer","obj","tranformer","anyObj","dates","date","Date","mapping","mapKey","Object","keys","Array","isArray","map"],"sourceRoot":"../../../src","sources":["utils/object-transformer.ts"],"mappings":";;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAGA,CAAgBC,GAAM,EAAEC,UAA6B,KAAK;EACzF,MAAMC,MAAM,GAAGF,GAAU;EAEzB,IAAIC,UAAU,CAACE,KAAK,EAAE;IACpB,KAAK,MAAMC,IAAI,IAAIH,UAAU,CAACE,KAAK,EAAE;MACnC,IAAID,MAAM,CAACE,IAAI,CAAC,KAAK,OAAOF,MAAM,CAACE,IAAI,CAAC,KAAK,QAAQ,IAAI,OAAOF,MAAM,CAACE,IAAI,CAAC,KAAK,QAAQ,CAAC,EAAE;QAC1FF,MAAM,CAACE,IAAI,CAAC,GAAG,IAAIC,IAAI,CAACH,MAAM,CAACE,IAAI,CAAC,CAAC;MACvC;IACF;EACF;EAEA,IAAIH,UAAU,CAACK,OAAO,EAAE;IACtB,KAAK,MAAMC,MAAM,IAAIC,MAAM,CAACC,IAAI,CAACR,UAAU,CAACK,OAAO,CAAC,EAAE;MACpD,IAAIJ,MAAM,CAACK,MAAM,CAAC,EAAE;QAClB,IAAIG,KAAK,CAACC,OAAO,CAACT,MAAM,CAACK,MAAM,CAAC,CAAC,EAAE;UACjCL,MAAM,CAACK,MAAM,CAAC,GAAGL,MAAM,CAACK,MAAM,CAAC,CAACK,GAAG,CAACX,UAAU,CAACK,OAAO,CAACC,MAAM,CAAC,CAAC;QACjE,CAAC,MAAM;UACLL,MAAM,CAACK,MAAM,CAAC,GAAGN,UAAU,CAACK,OAAO,CAACC,MAAM,CAAC,CAACL,MAAM,CAACK,MAAM,CAAC,CAAC;QAC7D;MACF;IACF;EACF;EACA,OAAOL,MAAM;AACf,CAAC","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type":"commonjs"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { type MobilyPurchaseSDKOptions } from './NativeMobilyflowReactNativeSdk';
|
2
|
+
import { MobilyProduct } from './entities/mobily-product';
|
3
|
+
import type { WebhookStatus } from './enums/webhook-status';
|
4
|
+
import type { MobilySubscriptionOffer } from './entities/mobily-subscription-offer';
|
5
|
+
import { MobilySubscriptionGroup } from './entities/mobily-subscription-group';
|
6
|
+
import { MobilyCustomerEntitlement } from './entities/mobily-customer-entitlement';
|
7
|
+
export type PurchaseOptions = {
|
8
|
+
offer?: MobilySubscriptionOffer;
|
9
|
+
quantity?: number;
|
10
|
+
};
|
11
|
+
export declare class MobilyPurchaseSDK {
|
12
|
+
private _uuid;
|
13
|
+
constructor(appId: string, apiKey: string, environment: number, options?: MobilyPurchaseSDKOptions);
|
14
|
+
private throwError;
|
15
|
+
close(): void;
|
16
|
+
login(externalId: string): Promise<void>;
|
17
|
+
getProducts(identifiers?: string[], onlyAvailable?: boolean): Promise<MobilyProduct[]>;
|
18
|
+
getSubscriptionGroups(identifiers?: string[], onlyAvailable?: boolean): Promise<MobilySubscriptionGroup[]>;
|
19
|
+
getEntitlementForSubscription(subscriptionGroupId: string): Promise<MobilyCustomerEntitlement>;
|
20
|
+
getEntitlement(productId: string): Promise<MobilyCustomerEntitlement>;
|
21
|
+
getEntitlements(productIds: string[]): Promise<MobilyCustomerEntitlement[]>;
|
22
|
+
requestTransferOwnership(): Promise<void>;
|
23
|
+
openManageSubscription(): Promise<void>;
|
24
|
+
openRefundDialog(transactionId: string): Promise<boolean>;
|
25
|
+
purchaseProduct(product: MobilyProduct, options?: PurchaseOptions): Promise<WebhookStatus>;
|
26
|
+
sendDiagnotic(): void;
|
27
|
+
getStoreCountry(): Promise<string>;
|
28
|
+
isForwardingEnable(): Promise<boolean>;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=MobilyPurchaseSDK.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["../../../../src/MobilyPurchaseSDK.tsx"],"names":[],"mappings":"AAAA,OAAiC,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAMnF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAAS;gBAEV,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB;IAIlG,OAAO,CAAC,UAAU;IAwBlB,KAAK;IAQC,KAAK,CAAC,UAAU,EAAE,MAAM;IAQxB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,UAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IASpF,qBAAqB,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,UAAQ;IASnE,6BAA6B,CAAC,mBAAmB,EAAE,MAAM;IASzD,cAAc,CAAC,SAAS,EAAE,MAAM;IAShC,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE;IASpC,wBAAwB;IAQxB,sBAAsB;IAQtB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAYzD,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;IAWhG,aAAa;IAQP,eAAe;IAYf,kBAAkB;CAOzB"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
2
|
+
import { MobilyProduct } from './entities/mobily-product';
|
3
|
+
import { MobilySubscriptionGroup } from './entities/mobily-subscription-group';
|
4
|
+
import { MobilyCustomerEntitlement } from './entities/mobily-customer-entitlement';
|
5
|
+
import { WebhookStatus } from './enums/webhook-status';
|
6
|
+
export type MobilyPurchaseSDKOptions = {
|
7
|
+
languages?: string[];
|
8
|
+
debug?: boolean;
|
9
|
+
apiURL?: string;
|
10
|
+
};
|
11
|
+
type PurchaseOptions = {
|
12
|
+
offerId: string;
|
13
|
+
quantity: number;
|
14
|
+
};
|
15
|
+
export interface Spec extends TurboModule {
|
16
|
+
instantiate(appId: string, apiKey: string, environment: number, options?: MobilyPurchaseSDKOptions): string;
|
17
|
+
close(uuid: string): void;
|
18
|
+
login(uuid: string, externalId: string): Promise<void>;
|
19
|
+
getProducts(uuid: string, identifiers: string[], onlyAvailable: boolean): Promise<MobilyProduct[]>;
|
20
|
+
getSubscriptionGroups(uuid: string, identifiers: string[], onlyAvailable: boolean): Promise<MobilySubscriptionGroup[]>;
|
21
|
+
getEntitlementForSubscription(uuid: string, subscriptionGroupId: string): Promise<MobilyCustomerEntitlement | null>;
|
22
|
+
getEntitlement(uuid: string, productId: string): Promise<MobilyCustomerEntitlement | null>;
|
23
|
+
getEntitlements(uuid: string, productIds: string[]): Promise<MobilyCustomerEntitlement[]>;
|
24
|
+
requestTransferOwnership(uuid: string): Promise<void>;
|
25
|
+
openManageSubscription(uuid: string): Promise<void>;
|
26
|
+
openRefundDialog(uuid: string, transactionId: string): Promise<boolean>;
|
27
|
+
purchaseProduct(uuid: string, productId: string, options?: PurchaseOptions): Promise<WebhookStatus>;
|
28
|
+
sendDiagnotic(uuid: string): void;
|
29
|
+
getStoreCountry(uuid: string): Promise<string>;
|
30
|
+
isForwardingEnable(uuid: string): Promise<boolean>;
|
31
|
+
}
|
32
|
+
declare const _default: Spec;
|
33
|
+
export default _default;
|
34
|
+
//# sourceMappingURL=NativeMobilyflowReactNativeSdk.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NativeMobilyflowReactNativeSdk.d.ts","sourceRoot":"","sources":["../../../../src/NativeMobilyflowReactNativeSdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAAC;IAC5G,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACnG,qBAAqB,CACnB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EAAE,EACrB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAEtC,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IACpH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IAC3F,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAE1F,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAExE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEpG,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpD;;AAED,wBAAkF"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ProductType } from '../enums/product-type';
|
2
|
+
import { MobilyProduct } from './mobily-product';
|
3
|
+
import { Platform } from '../enums/platform';
|
4
|
+
export declare class ItemEntitlement {
|
5
|
+
quantity: number;
|
6
|
+
}
|
7
|
+
export declare class SubscriptionEntitlement {
|
8
|
+
startDate: Date;
|
9
|
+
expirationDate: Date;
|
10
|
+
autoRenewEnable: boolean;
|
11
|
+
platform: Platform;
|
12
|
+
isManagedByThisStoreAccount: boolean;
|
13
|
+
static parseFromAPI(obj: SubscriptionEntitlement): SubscriptionEntitlement;
|
14
|
+
}
|
15
|
+
export declare class MobilyCustomerEntitlement {
|
16
|
+
type: ProductType;
|
17
|
+
product: MobilyProduct;
|
18
|
+
platformOriginalTransactionId: string;
|
19
|
+
item?: ItemEntitlement;
|
20
|
+
subscription?: SubscriptionEntitlement;
|
21
|
+
static parseFromAPI(obj: MobilyCustomerEntitlement): MobilyCustomerEntitlement;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=mobily-customer-entitlement.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-customer-entitlement.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-customer-entitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBAAa,eAAe;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,uBAAuB;IAClC,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,IAAI,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,2BAA2B,EAAE,OAAO,CAAC;IAErC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,uBAAuB;CAGjD;AAED,qBAAa,yBAAyB;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,6BAA6B,EAAE,MAAM,CAAC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IAEvC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,yBAAyB;CAQnD"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ProductStatus } from '../enums/product-status';
|
2
|
+
export declare class MobilyOneTimeProduct {
|
3
|
+
price: number;
|
4
|
+
currencyCode: string;
|
5
|
+
priceFormatted: string;
|
6
|
+
isConsumable: boolean;
|
7
|
+
isNonRenewableSub: boolean;
|
8
|
+
isMultiQuantity: boolean;
|
9
|
+
status: ProductStatus;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=mobily-one-time-product.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-one-time-product.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-one-time-product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,qBAAa,oBAAoB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,aAAa,CAAC;CACvB"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ProductType } from '../enums/product-type';
|
2
|
+
import type { ProductStatus } from '../enums/product-status';
|
3
|
+
import type { MobilyOneTimeProduct } from './mobily-one-time-product';
|
4
|
+
import type { MobilySubscriptionProduct } from './mobily-subscription-product';
|
5
|
+
export declare class MobilyProduct {
|
6
|
+
id: string;
|
7
|
+
createdAt: Date;
|
8
|
+
updatedAt: Date;
|
9
|
+
deletedAt?: Date;
|
10
|
+
identifier: string;
|
11
|
+
appId: string;
|
12
|
+
name: string;
|
13
|
+
description: string;
|
14
|
+
ios_sku: string;
|
15
|
+
android_sku: string;
|
16
|
+
type: ProductType;
|
17
|
+
extras: any;
|
18
|
+
status: ProductStatus;
|
19
|
+
oneTimeProduct?: MobilyOneTimeProduct;
|
20
|
+
subscriptionProduct?: MobilySubscriptionProduct;
|
21
|
+
static parseFromAPI(obj: MobilyProduct): MobilyProduct;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=mobily-product.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-product.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,qBAAa,aAAa;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;IAEZ,MAAM,EAAE,aAAa,CAAC;IAEtB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,mBAAmB,CAAC,EAAE,yBAAyB,CAAC;IAEhD,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,aAAa;CAKvC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { MobilyProduct } from './mobily-product';
|
2
|
+
export declare class MobilySubscriptionGroup {
|
3
|
+
id: string;
|
4
|
+
identifier: string;
|
5
|
+
name: string;
|
6
|
+
description: string;
|
7
|
+
ios_groupId: string;
|
8
|
+
extras: any;
|
9
|
+
products: MobilyProduct[];
|
10
|
+
static parseFromAPI(obj: MobilySubscriptionGroup): MobilySubscriptionGroup;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=mobily-subscription-group.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-subscription-group.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-subscription-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,qBAAa,uBAAuB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE1B,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,uBAAuB;CAOjD"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { ProductStatus } from '../enums/product-status';
|
2
|
+
import type { PeriodUnit } from '../enums/period-unit';
|
3
|
+
export declare class MobilySubscriptionOffer {
|
4
|
+
id: string;
|
5
|
+
name: string;
|
6
|
+
price: number;
|
7
|
+
currencyCode: string;
|
8
|
+
priceFormatted: string;
|
9
|
+
isFreeTrial: boolean;
|
10
|
+
periodCount: number;
|
11
|
+
periodUnit: PeriodUnit;
|
12
|
+
ios_offerId: string;
|
13
|
+
extras: any;
|
14
|
+
status: ProductStatus;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=mobily-subscription-offer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-subscription-offer.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-subscription-offer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,uBAAuB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,aAAa,CAAC;CACvB"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { ProductStatus } from '../enums/product-status';
|
2
|
+
import { MobilySubscriptionOffer } from './mobily-subscription-offer';
|
3
|
+
import { MobilySubscriptionGroup } from './mobily-subscription-group';
|
4
|
+
export declare class MobilySubscriptionProduct {
|
5
|
+
baseOffer: MobilySubscriptionOffer;
|
6
|
+
freeTrial: MobilySubscriptionOffer;
|
7
|
+
promotionalOffers: MobilySubscriptionOffer[];
|
8
|
+
status: ProductStatus;
|
9
|
+
groupLevel: number;
|
10
|
+
subscriptionGroupId: string;
|
11
|
+
subscriptionGroup: MobilySubscriptionGroup;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=mobily-subscription-product.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-subscription-product.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-subscription-product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,qBAAa,yBAAyB;IACpC,SAAS,EAAE,uBAAuB,CAAC;IACnC,SAAS,EAAE,uBAAuB,CAAC;IACnC,iBAAiB,EAAE,uBAAuB,EAAE,CAAC;IAC7C,MAAM,EAAE,aAAa,CAAC;IAEtB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-environment.d.ts","sourceRoot":"","sources":["../../../../../src/enums/mobily-environment.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,WAAW,IAAI;IACf,OAAO,IAAI;IACX,UAAU,IAAI;CACf"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"period-unit.d.ts","sourceRoot":"","sources":["../../../../../src/enums/period-unit.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;CACT"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../../src/enums/platform.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,GAAG,IAAI;IACP,OAAO,IAAI;CACZ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-status.d.ts","sourceRoot":"","sources":["../../../../../src/enums/product-status.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,IAAI;IACX,WAAW,IAAI;IACf,SAAS,IAAI;CACd"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-type.d.ts","sourceRoot":"","sources":["../../../../../src/enums/product-type.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhook-status.d.ts","sourceRoot":"","sources":["../../../../../src/enums/webhook-status.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,IAAI;IACX,KAAK,IAAI;IACT,OAAO,IAAI;CACZ"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class MobilyError extends Error {
|
2
|
+
readonly type: MobilyError.Type;
|
3
|
+
readonly message: string;
|
4
|
+
readonly nativeStack?: any;
|
5
|
+
constructor(type: MobilyError.Type, message: string, nativeStack?: any);
|
6
|
+
}
|
7
|
+
export declare namespace MobilyError {
|
8
|
+
enum Type {
|
9
|
+
STORE_UNAVAILABLE = 0,
|
10
|
+
SERVER_UNAVAILABLE = 1,
|
11
|
+
NO_CUSTOMER_LOGGED = 2,
|
12
|
+
UNKNOWN_ERROR = 3
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=mobily-error.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-error.d.ts","sourceRoot":"","sources":["../../../../../src/errors/mobily-error.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAY,SAAQ,KAAK;aAElB,IAAI,EAAE,WAAW,CAAC,IAAI;aACtB,OAAO,EAAE,MAAM;aACf,WAAW,CAAC,EAAE,GAAG;gBAFjB,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,GAAG;CAIpC;AAED,yBAAiB,WAAW,CAAC;IAC3B,KAAY,IAAI;QACd,iBAAiB,IAAA;QACjB,kBAAkB,IAAA;QAClB,kBAAkB,IAAA;QAClB,aAAa,IAAA;KACd;CACF"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export declare class MobilyPurchaseError extends Error {
|
2
|
+
readonly type: MobilyPurchaseError.Type;
|
3
|
+
readonly message: string;
|
4
|
+
readonly nativeStack?: any;
|
5
|
+
constructor(type: MobilyPurchaseError.Type, message: string, nativeStack?: any);
|
6
|
+
}
|
7
|
+
export declare namespace MobilyPurchaseError {
|
8
|
+
enum Type {
|
9
|
+
PURCHASE_ALREADY_PENDING = 0,
|
10
|
+
PRODUCT_UNAVAILABLE = 1,
|
11
|
+
NETWORK_UNAVAILABLE = 2,
|
12
|
+
WEBHOOK_NOT_PRECESSED = 3,
|
13
|
+
WEBHOOK_FAILED = 4,
|
14
|
+
ALREADY_PURCHASED = 5,
|
15
|
+
NOT_MANAGED_BY_THIS_STORE_ACCOUNT = 6,
|
16
|
+
STORE_ACCOUNT_ALREADY_HAVE_PURCHASE = 7,
|
17
|
+
RENEW_ALREADY_ON_THIS_PLAN = 8,
|
18
|
+
USER_CANCELED = 9,
|
19
|
+
FAILED = 10,
|
20
|
+
PENDING = 11
|
21
|
+
}
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=mobily-purchase-error.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-purchase-error.d.ts","sourceRoot":"","sources":["../../../../../src/errors/mobily-purchase-error.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAoB,SAAQ,KAAK;aAE1B,IAAI,EAAE,mBAAmB,CAAC,IAAI;aAC9B,OAAO,EAAE,MAAM;aACf,WAAW,CAAC,EAAE,GAAG;gBAFjB,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAC9B,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,GAAG;CAIpC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,KAAY,IAAI;QACd,wBAAwB,IAAA;QAExB,mBAAmB,IAAA;QACnB,mBAAmB,IAAA;QAEnB,qBAAqB,IAAA;QACrB,cAAc,IAAA;QAEd,iBAAiB,IAAA;QACjB,iCAAiC,IAAA;QACjC,mCAAmC,IAAA;QACnC,0BAA0B,IAAA;QAE1B,aAAa,IAAA;QACb,MAAM,KAAA;QACN,OAAO,KAAA;KACR;CACF"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare class MobilyTransferOwnershipError extends Error {
|
2
|
+
readonly type: MobilyTransferOwnershipError.Type;
|
3
|
+
readonly message: string;
|
4
|
+
readonly nativeStack?: any;
|
5
|
+
constructor(type: MobilyTransferOwnershipError.Type, message: string, nativeStack?: any);
|
6
|
+
}
|
7
|
+
export declare namespace MobilyTransferOwnershipError {
|
8
|
+
enum Type {
|
9
|
+
NOTHING_TO_TRANSFER = 0,
|
10
|
+
TRANSFER_TO_SAME_CUSTOMER = 1,
|
11
|
+
ALREADY_PENDING = 2,
|
12
|
+
WEBHOOK_NOT_PROCESSED = 3,
|
13
|
+
WEBHOOK_FAILED = 4
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=mobily-transfer-ownership-error.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-transfer-ownership-error.d.ts","sourceRoot":"","sources":["../../../../../src/errors/mobily-transfer-ownership-error.ts"],"names":[],"mappings":"AAAA,qBAAa,4BAA6B,SAAQ,KAAK;aAEnC,IAAI,EAAE,4BAA4B,CAAC,IAAI;aACvC,OAAO,EAAE,MAAM;aACf,WAAW,CAAC,EAAE,GAAG;gBAFjB,IAAI,EAAE,4BAA4B,CAAC,IAAI,EACvC,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,GAAG;CAIpC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,KAAY,IAAI;QACd,mBAAmB,IAAA;QACnB,yBAAyB,IAAA;QACzB,eAAe,IAAA;QAEf,qBAAqB,IAAA;QACrB,cAAc,IAAA;KACf;CACF"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export type { PurchaseOptions } from './MobilyPurchaseSDK';
|
2
|
+
export { MobilyPurchaseSDK } from './MobilyPurchaseSDK';
|
3
|
+
export { MobilyProduct } from './entities/mobily-product';
|
4
|
+
export { MobilyCustomerEntitlement, ItemEntitlement, SubscriptionEntitlement, } from './entities/mobily-customer-entitlement';
|
5
|
+
export { MobilyOneTimeProduct } from './entities/mobily-one-time-product';
|
6
|
+
export { MobilySubscriptionProduct } from './entities/mobily-subscription-product';
|
7
|
+
export { MobilySubscriptionGroup } from './entities/mobily-subscription-group';
|
8
|
+
export { MobilySubscriptionOffer } from './entities/mobily-subscription-offer';
|
9
|
+
export { MobilyEnvironment } from './enums/mobily-environment';
|
10
|
+
export { PeriodUnit } from './enums/period-unit';
|
11
|
+
export { Platform } from './enums/platform';
|
12
|
+
export { ProductStatus } from './enums/product-status';
|
13
|
+
export { ProductType } from './enums/product-type';
|
14
|
+
export { WebhookStatus } from './enums/webhook-status';
|
15
|
+
export { MobilyError } from './errors/mobily-error';
|
16
|
+
export { MobilyPurchaseError } from './errors/mobily-purchase-error';
|
17
|
+
export { MobilyTransferOwnershipError } from './errors/mobily-transfer-ownership-error';
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,uBAAuB,GACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export type ObjectTransformer = {
|
2
|
+
dates?: string[];
|
3
|
+
mapping?: {
|
4
|
+
[key in string]: (obj: any) => any;
|
5
|
+
};
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* Transform object following the transformer.
|
9
|
+
* Note: The function is safe, take care of the real type of each field and perform null checks.
|
10
|
+
*
|
11
|
+
* ```
|
12
|
+
* // Example:
|
13
|
+
* objectTransformer(
|
14
|
+
* {
|
15
|
+
* date_start: '2023-04-12',
|
16
|
+
* date_end: '2023-04-13',
|
17
|
+
* user_array: [
|
18
|
+
* { name: 'Greg', created_date: '2023-05-12' },
|
19
|
+
* { name: 'Antoine', created_date: '2023-06-12' },
|
20
|
+
* ],
|
21
|
+
* single_user: { name: 'Greg', created_date: '2023-05-12' },
|
22
|
+
* },
|
23
|
+
* {
|
24
|
+
* dates: ['date_start', 'date_end'],
|
25
|
+
* mapping: {
|
26
|
+
* user_array: parseUser,
|
27
|
+
* single_user: parseUser,
|
28
|
+
* },
|
29
|
+
* },
|
30
|
+
* );
|
31
|
+
* // Return an object with parsed dates & mapped user.
|
32
|
+
* ```
|
33
|
+
* @param obj
|
34
|
+
* @param tranformer
|
35
|
+
*/
|
36
|
+
export declare const objectTransformer: <T extends unknown>(obj: T, tranformer: ObjectTransformer) => T;
|
37
|
+
//# sourceMappingURL=object-transformer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"object-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/utils/object-transformer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;SACP,GAAG,IAAI,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;KACnC,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,uBAAmB,CAAC,cAAc,iBAAiB,KAsBnE,CAClB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type":"module"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { type MobilyPurchaseSDKOptions } from './NativeMobilyflowReactNativeSdk';
|
2
|
+
import { MobilyProduct } from './entities/mobily-product';
|
3
|
+
import type { WebhookStatus } from './enums/webhook-status';
|
4
|
+
import type { MobilySubscriptionOffer } from './entities/mobily-subscription-offer';
|
5
|
+
import { MobilySubscriptionGroup } from './entities/mobily-subscription-group';
|
6
|
+
import { MobilyCustomerEntitlement } from './entities/mobily-customer-entitlement';
|
7
|
+
export type PurchaseOptions = {
|
8
|
+
offer?: MobilySubscriptionOffer;
|
9
|
+
quantity?: number;
|
10
|
+
};
|
11
|
+
export declare class MobilyPurchaseSDK {
|
12
|
+
private _uuid;
|
13
|
+
constructor(appId: string, apiKey: string, environment: number, options?: MobilyPurchaseSDKOptions);
|
14
|
+
private throwError;
|
15
|
+
close(): void;
|
16
|
+
login(externalId: string): Promise<void>;
|
17
|
+
getProducts(identifiers?: string[], onlyAvailable?: boolean): Promise<MobilyProduct[]>;
|
18
|
+
getSubscriptionGroups(identifiers?: string[], onlyAvailable?: boolean): Promise<MobilySubscriptionGroup[]>;
|
19
|
+
getEntitlementForSubscription(subscriptionGroupId: string): Promise<MobilyCustomerEntitlement>;
|
20
|
+
getEntitlement(productId: string): Promise<MobilyCustomerEntitlement>;
|
21
|
+
getEntitlements(productIds: string[]): Promise<MobilyCustomerEntitlement[]>;
|
22
|
+
requestTransferOwnership(): Promise<void>;
|
23
|
+
openManageSubscription(): Promise<void>;
|
24
|
+
openRefundDialog(transactionId: string): Promise<boolean>;
|
25
|
+
purchaseProduct(product: MobilyProduct, options?: PurchaseOptions): Promise<WebhookStatus>;
|
26
|
+
sendDiagnotic(): void;
|
27
|
+
getStoreCountry(): Promise<string>;
|
28
|
+
isForwardingEnable(): Promise<boolean>;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=MobilyPurchaseSDK.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MobilyPurchaseSDK.d.ts","sourceRoot":"","sources":["../../../../src/MobilyPurchaseSDK.tsx"],"names":[],"mappings":"AAAA,OAAiC,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAMnF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAAS;gBAEV,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB;IAIlG,OAAO,CAAC,UAAU;IAwBlB,KAAK;IAQC,KAAK,CAAC,UAAU,EAAE,MAAM;IAQxB,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,UAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IASpF,qBAAqB,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,UAAQ;IASnE,6BAA6B,CAAC,mBAAmB,EAAE,MAAM;IASzD,cAAc,CAAC,SAAS,EAAE,MAAM;IAShC,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE;IASpC,wBAAwB;IAQxB,sBAAsB;IAQtB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAYzD,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;IAWhG,aAAa;IAQP,eAAe;IAYf,kBAAkB;CAOzB"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
2
|
+
import { MobilyProduct } from './entities/mobily-product';
|
3
|
+
import { MobilySubscriptionGroup } from './entities/mobily-subscription-group';
|
4
|
+
import { MobilyCustomerEntitlement } from './entities/mobily-customer-entitlement';
|
5
|
+
import { WebhookStatus } from './enums/webhook-status';
|
6
|
+
export type MobilyPurchaseSDKOptions = {
|
7
|
+
languages?: string[];
|
8
|
+
debug?: boolean;
|
9
|
+
apiURL?: string;
|
10
|
+
};
|
11
|
+
type PurchaseOptions = {
|
12
|
+
offerId: string;
|
13
|
+
quantity: number;
|
14
|
+
};
|
15
|
+
export interface Spec extends TurboModule {
|
16
|
+
instantiate(appId: string, apiKey: string, environment: number, options?: MobilyPurchaseSDKOptions): string;
|
17
|
+
close(uuid: string): void;
|
18
|
+
login(uuid: string, externalId: string): Promise<void>;
|
19
|
+
getProducts(uuid: string, identifiers: string[], onlyAvailable: boolean): Promise<MobilyProduct[]>;
|
20
|
+
getSubscriptionGroups(uuid: string, identifiers: string[], onlyAvailable: boolean): Promise<MobilySubscriptionGroup[]>;
|
21
|
+
getEntitlementForSubscription(uuid: string, subscriptionGroupId: string): Promise<MobilyCustomerEntitlement | null>;
|
22
|
+
getEntitlement(uuid: string, productId: string): Promise<MobilyCustomerEntitlement | null>;
|
23
|
+
getEntitlements(uuid: string, productIds: string[]): Promise<MobilyCustomerEntitlement[]>;
|
24
|
+
requestTransferOwnership(uuid: string): Promise<void>;
|
25
|
+
openManageSubscription(uuid: string): Promise<void>;
|
26
|
+
openRefundDialog(uuid: string, transactionId: string): Promise<boolean>;
|
27
|
+
purchaseProduct(uuid: string, productId: string, options?: PurchaseOptions): Promise<WebhookStatus>;
|
28
|
+
sendDiagnotic(uuid: string): void;
|
29
|
+
getStoreCountry(uuid: string): Promise<string>;
|
30
|
+
isForwardingEnable(uuid: string): Promise<boolean>;
|
31
|
+
}
|
32
|
+
declare const _default: Spec;
|
33
|
+
export default _default;
|
34
|
+
//# sourceMappingURL=NativeMobilyflowReactNativeSdk.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NativeMobilyflowReactNativeSdk.d.ts","sourceRoot":"","sources":["../../../../src/NativeMobilyflowReactNativeSdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAAC;IAC5G,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACnG,qBAAqB,CACnB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EAAE,EACrB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAEtC,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IACpH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IAC3F,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAE1F,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAExE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEpG,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpD;;AAED,wBAAkF"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ProductType } from '../enums/product-type';
|
2
|
+
import { MobilyProduct } from './mobily-product';
|
3
|
+
import { Platform } from '../enums/platform';
|
4
|
+
export declare class ItemEntitlement {
|
5
|
+
quantity: number;
|
6
|
+
}
|
7
|
+
export declare class SubscriptionEntitlement {
|
8
|
+
startDate: Date;
|
9
|
+
expirationDate: Date;
|
10
|
+
autoRenewEnable: boolean;
|
11
|
+
platform: Platform;
|
12
|
+
isManagedByThisStoreAccount: boolean;
|
13
|
+
static parseFromAPI(obj: SubscriptionEntitlement): SubscriptionEntitlement;
|
14
|
+
}
|
15
|
+
export declare class MobilyCustomerEntitlement {
|
16
|
+
type: ProductType;
|
17
|
+
product: MobilyProduct;
|
18
|
+
platformOriginalTransactionId: string;
|
19
|
+
item?: ItemEntitlement;
|
20
|
+
subscription?: SubscriptionEntitlement;
|
21
|
+
static parseFromAPI(obj: MobilyCustomerEntitlement): MobilyCustomerEntitlement;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=mobily-customer-entitlement.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mobily-customer-entitlement.d.ts","sourceRoot":"","sources":["../../../../../src/entities/mobily-customer-entitlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBAAa,eAAe;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,uBAAuB;IAClC,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,IAAI,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,2BAA2B,EAAE,OAAO,CAAC;IAErC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,uBAAuB;CAGjD;AAED,qBAAa,yBAAyB;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,6BAA6B,EAAE,MAAM,CAAC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IAEvC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,yBAAyB;CAQnD"}
|