UNPKG

@adapty/capacitor

Version:
47 lines 1.65 kB
import { SimpleCoder } from './coder'; import { AdaptyAccessLevelCoder } from './adapty-access-level'; import { AdaptyNonSubscriptionCoder } from './adapty-non-subscription'; import { AdaptySubscriptionCoder } from './adapty-subscription'; import { HashmapCoder } from './hashmap'; import { ArrayCoder } from './array'; export class AdaptyProfileCoder extends SimpleCoder { constructor() { super(...arguments); this.properties = { accessLevels: { key: 'paid_access_levels', required: false, type: 'object', converter: new HashmapCoder(new AdaptyAccessLevelCoder()), }, customAttributes: { key: 'custom_attributes', required: false, type: 'object', }, customerUserId: { key: 'customer_user_id', required: false, type: 'string', }, nonSubscriptions: { key: 'non_subscriptions', required: false, type: 'object', converter: new HashmapCoder(new ArrayCoder(AdaptyNonSubscriptionCoder)), }, profileId: { key: 'profile_id', required: true, type: 'string', }, subscriptions: { key: 'subscriptions', required: false, type: 'object', converter: new HashmapCoder(new AdaptySubscriptionCoder()), }, }; } } //# sourceMappingURL=adapty-profile.js.map