|
@@ -22,8 +22,8 @@
|
|
* language (member.identity.language)
|
|
* language (member.identity.language)
|
|
* iap_service
|
|
* iap_service
|
|
* app\_series (receipt.product.app.app_series)
|
|
* app\_series (receipt.product.app.app_series)
|
|
- * pack (receipt.product.pack)
|
|
|
|
- * platform (receipt.product.app.device)
|
|
|
|
|
|
+ * subscription (receipt.product.subscription)
|
|
|
|
+ * receipt_type (receipt.class)
|
|
* subscription\_status (kdan.subscriptions)
|
|
* subscription\_status (kdan.subscriptions)
|
|
* A/B Testing
|
|
* A/B Testing
|
|
* Main version %, default 100%
|
|
* Main version %, default 100%
|
|
@@ -46,13 +46,13 @@ add_column :members, :sendy_sub_status, enum: [:active, :unsubscribed, :bounced,
|
|
## IAP Service
|
|
## IAP Service
|
|
### Kdan
|
|
### Kdan
|
|
~~~ruby
|
|
~~~ruby
|
|
-has_many :subscriptions, class: 'KdanPackSubscription'
|
|
|
|
|
|
+has_many :subscription_status, class: 'KdanSubscriptionStatus'
|
|
~~~
|
|
~~~
|
|
-### KdanProduct
|
|
|
|
|
|
+### Subscription
|
|
~~~ruby
|
|
~~~ruby
|
|
-has_many :subscriptions, class: 'KdanPackSubscription'
|
|
|
|
|
|
+has_many :status, class: 'KdanSubscriptionStatus'
|
|
~~~
|
|
~~~
|
|
-### KdanPackSubscription
|
|
|
|
|
|
+### KdanSubscriptionStatus
|
|
* only apply to following packs
|
|
* only apply to following packs
|
|
* Creativity 365
|
|
* Creativity 365
|
|
* ~~Creativity 365 Teacher & Student~~
|
|
* ~~Creativity 365 Teacher & Student~~
|
|
@@ -63,13 +63,13 @@ has_many :subscriptions, class: 'KdanPackSubscription'
|
|
|
|
|
|
~~~ruby
|
|
~~~ruby
|
|
belongs_to :kdan
|
|
belongs_to :kdan
|
|
-belongs_to :kdan_product
|
|
|
|
|
|
+belongs_to :subscription
|
|
~~~
|
|
~~~
|
|
~~~ruby
|
|
~~~ruby
|
|
{
|
|
{
|
|
kdan_id:integer,
|
|
kdan_id:integer,
|
|
- kdan_product_id:integer,
|
|
|
|
- stauts:[free_trial, subscribed, expired, refund, cancel]
|
|
|
|
|
|
+ subscription_id:integer,
|
|
|
|
+ stauts:[outsider, free_trial, subscribed, expired, refund, cancel]
|
|
}
|
|
}
|
|
~~~
|
|
~~~
|
|
* outsider: Not subscribed yet on pack
|
|
* outsider: Not subscribed yet on pack
|