-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: nanato12 <[email protected]>
- Loading branch information
1 parent
6081116
commit 779711a
Showing
18 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
core/line_messaging_api/docs/GetMembershipSubscriptionResponse.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# GetMembershipSubscriptionResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**subscriptions** | [**Vec<crate::models::Subscription>**](Subscription.md) | List of subscription information | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Membership | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**membership_id** | **i32** | Membership plan ID. | | ||
**title** | **String** | Membership plan name. | | ||
**description** | **String** | Membership plan description. | | ||
**benefits** | **Vec<String>** | List of membership plan perks. | | ||
**price** | **f64** | Monthly fee for membership plan. (e.g. 1500.00) | | ||
**currency** | **String** | The currency of membership.price. | | ||
**member_count** | **i32** | Number of members subscribed to the membership plan. | | ||
**member_limit** | Option<**i32**> | The upper limit of members who can subscribe. If no upper limit is set, it will be null. | | ||
**is_in_app_purchase** | **bool** | Payment method for users who subscribe to a membership plan. | | ||
**is_published** | **bool** | Membership plan status. | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# MembershipListResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**memberships** | [**Vec<crate::models::Membership>**](Membership.md) | List of membership information | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
core/line_messaging_api/docs/ShowLoadingAnimationRequest.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ShowLoadingAnimationRequest | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**chat_id** | **String** | User ID of the target user for whom the loading animation is to be displayed. | | ||
**loading_seconds** | Option<**i32**> | The number of seconds to display the loading indicator. It must be a multiple of 5. The maximum value is 60 seconds. | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SubscribedMembershipPlan | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**membership_id** | **i32** | Membership plan ID. | | ||
**title** | **String** | Membership plan name. | | ||
**description** | **String** | Membership plan description. | | ||
**benefits** | **Vec<String>** | List of membership plan perks. | | ||
**price** | **f64** | Monthly fee for membership plan. (e.g. 1500.00) | | ||
**currency** | **String** | The currency of membership.price. | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SubscribedMembershipUser | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**membership_no** | **i32** | The user's member number in the membership plan. | | ||
**joined_time** | **i32** | UNIX timestamp at which the user subscribed to the membership. | | ||
**next_billing_date** | **String** | Next payment date for membership plan. - Format: yyyy-MM-dd (e.g. 2024-02-08) - Timezone: UTC+9 | | ||
**total_subscription_months** | **i32** | The period of time in months that the user has been subscribed to a membership plan. If a user previously canceled and then re-subscribed to the same membership plan, only the period after the re-subscription will be counted. | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Subscription | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**membership** | [**crate::models::SubscribedMembershipPlan**](SubscribedMembershipPlan.md) | | | ||
**user** | [**crate::models::SubscribedMembershipUser**](SubscribedMembershipUser.md) | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
core/line_messaging_api/src/models/get_membership_subscription_response.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2016 LINE Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/* | ||
* LINE Messaging API | ||
* | ||
* This document describes LINE Messaging API. | ||
* | ||
* The version of the OpenAPI document: 0.0.2 | ||
* | ||
* Generated by: https://openapi-generator.tech | ||
*/ | ||
|
||
/// GetMembershipSubscriptionResponse : A user's membership subscription status | ||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] | ||
pub struct GetMembershipSubscriptionResponse { | ||
/// List of subscription information | ||
#[serde(rename = "subscriptions")] | ||
pub subscriptions: Vec<crate::models::Subscription>, | ||
} | ||
|
||
impl GetMembershipSubscriptionResponse { | ||
/// A user's membership subscription status | ||
pub fn new( | ||
subscriptions: Vec<crate::models::Subscription>, | ||
) -> GetMembershipSubscriptionResponse { | ||
GetMembershipSubscriptionResponse { subscriptions } | ||
} | ||
} |
Oops, something went wrong.