line-bot-api 2.0.0 → 2.1.0
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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +49 -1
- data/README.md +34 -16
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +269 -0
- data/lib/line/bot/v2/messaging_api/core.rb +39 -0
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_request.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_create_request.rb +139 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_create_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_response.rb +169 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/message.rb +1 -0
- data/lib/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rb +66 -0
- data/lib/line/bot/version.rb +1 -1
- data/line-bot-api.gemspec +1 -1
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +156 -0
- data/sig/line/bot/v2/messaging_api/model/acquisition_condition_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/acquisition_condition_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_price_info_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/cash_back_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_create_request.rbs +76 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_create_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_free_reward_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_free_reward_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_list_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_response.rbs +91 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_reward_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/coupon_reward_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/discount_price_info_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/discount_price_info_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rbs +37 -0
- data/sig/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rbs +37 -0
- metadata +81 -3
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackFixedPriceInfoRequest < CashBackPriceInfoRequest
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor fixed_amount: Integer?
|
17
|
+
|
18
|
+
|
19
|
+
# @param fixed_amount [Integer,nil]
|
20
|
+
def initialize: (
|
21
|
+
?fixed_amount: Integer?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackFixedPriceInfoRequest] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackFixedPriceInfoRequest
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackFixedPriceInfoResponse < CashBackPriceInfoResponse
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor currency: 'JPY'|'THB'|'TWD'?
|
17
|
+
attr_accessor fixed_amount: Integer?
|
18
|
+
|
19
|
+
|
20
|
+
# @param currency [String,nil] ('JPY'|'THB'|'TWD') Currency code (e.g., JPY, THB, TWD).
|
21
|
+
# @param fixed_amount [Integer,nil]
|
22
|
+
def initialize: (
|
23
|
+
?currency: 'JPY'|'THB'|'TWD'?,
|
24
|
+
?fixed_amount: Integer?,
|
25
|
+
**untyped dynamic_attributes
|
26
|
+
) -> void
|
27
|
+
|
28
|
+
# Create an instance of the class from a hash
|
29
|
+
# @param args [Hash] Hash containing all the required attributes
|
30
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackFixedPriceInfoResponse] Instance of the class
|
31
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackFixedPriceInfoResponse
|
32
|
+
|
33
|
+
# @param other [Object] Object to compare
|
34
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
35
|
+
def ==: (untyped other) -> bool
|
36
|
+
|
37
|
+
# @return [Integer] Hash code of the object
|
38
|
+
def hash: () -> Integer
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackPercentagePriceInfoRequest < CashBackPriceInfoRequest
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor percentage: Integer?
|
17
|
+
|
18
|
+
|
19
|
+
# @param percentage [Integer,nil] Specifies the cashback rate as a percentage. Must be an integer between 1 and 99.
|
20
|
+
def initialize: (
|
21
|
+
?percentage: Integer?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackPercentagePriceInfoRequest] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackPercentagePriceInfoRequest
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackPercentagePriceInfoResponse < CashBackPriceInfoResponse
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor percentage: Integer?
|
17
|
+
|
18
|
+
|
19
|
+
# @param percentage [Integer,nil]
|
20
|
+
def initialize: (
|
21
|
+
?percentage: Integer?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackPercentagePriceInfoResponse] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackPercentagePriceInfoResponse
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackPriceInfoRequest
|
15
|
+
attr_accessor type: String
|
16
|
+
|
17
|
+
|
18
|
+
# @param type [String]
|
19
|
+
def initialize: (
|
20
|
+
type: String,
|
21
|
+
**untyped dynamic_attributes
|
22
|
+
) -> void
|
23
|
+
|
24
|
+
# Create an instance of the class from a hash
|
25
|
+
# @param args [Hash] Hash containing all the required attributes
|
26
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackPriceInfoRequest] Instance of the class
|
27
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackPriceInfoRequest
|
28
|
+
|
29
|
+
# @param other [Object] Object to compare
|
30
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
31
|
+
def ==: (untyped other) -> bool
|
32
|
+
|
33
|
+
# @return [Integer] Hash code of the object
|
34
|
+
def hash: () -> Integer
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def self.detect_class: (type: String) -> Class?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CashBackPriceInfoResponse
|
15
|
+
attr_accessor type: String
|
16
|
+
|
17
|
+
|
18
|
+
# @param type [String]
|
19
|
+
def initialize: (
|
20
|
+
type: String,
|
21
|
+
**untyped dynamic_attributes
|
22
|
+
) -> void
|
23
|
+
|
24
|
+
# Create an instance of the class from a hash
|
25
|
+
# @param args [Hash] Hash containing all the required attributes
|
26
|
+
# @return [Line::Bot::V2::MessagingApi::CashBackPriceInfoResponse] Instance of the class
|
27
|
+
def self.create: (Hash[Symbol, untyped]) -> CashBackPriceInfoResponse
|
28
|
+
|
29
|
+
# @param other [Object] Object to compare
|
30
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
31
|
+
def ==: (untyped other) -> bool
|
32
|
+
|
33
|
+
# @return [Integer] Hash code of the object
|
34
|
+
def hash: () -> Integer
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def self.detect_class: (type: String) -> Class?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponCashBackRewardRequest < CouponRewardRequest
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor price_info: CashBackPriceInfoRequest?
|
17
|
+
|
18
|
+
|
19
|
+
# @param price_info [CashBackPriceInfoRequest, Hash[Symbol, untyped], nil]
|
20
|
+
def initialize: (
|
21
|
+
?price_info: CashBackPriceInfoRequest?| Hash[Symbol, untyped]?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CouponCashBackRewardRequest] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponCashBackRewardRequest
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponCashBackRewardResponse < CouponRewardResponse
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor price_info: CashBackPriceInfoResponse?
|
17
|
+
|
18
|
+
|
19
|
+
# @param price_info [CashBackPriceInfoResponse, Hash[Symbol, untyped], nil]
|
20
|
+
def initialize: (
|
21
|
+
?price_info: CashBackPriceInfoResponse?| Hash[Symbol, untyped]?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CouponCashBackRewardResponse] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponCashBackRewardResponse
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
# Request object for creating a coupon. Contains all configurable coupon properties.
|
15
|
+
class CouponCreateRequest
|
16
|
+
attr_accessor acquisition_condition: AcquisitionConditionRequest
|
17
|
+
attr_accessor barcode_image_url: String?
|
18
|
+
attr_accessor coupon_code: String?
|
19
|
+
attr_accessor description: String?
|
20
|
+
attr_accessor end_timestamp: Integer
|
21
|
+
attr_accessor image_url: String?
|
22
|
+
attr_accessor max_use_count_per_ticket: Integer
|
23
|
+
attr_accessor start_timestamp: Integer
|
24
|
+
attr_accessor title: String
|
25
|
+
attr_accessor usage_condition: String?
|
26
|
+
attr_accessor reward: CouponRewardRequest?
|
27
|
+
attr_accessor visibility: 'UNLISTED'|'PUBLIC'
|
28
|
+
attr_accessor timezone: 'ETC_GMT_MINUS_12'|'ETC_GMT_MINUS_11'|'PACIFIC_HONOLULU'|'AMERICA_ANCHORAGE'|'AMERICA_LOS_ANGELES'|'AMERICA_PHOENIX'|'AMERICA_CHICAGO'|'AMERICA_NEW_YORK'|'AMERICA_CARACAS'|'AMERICA_SANTIAGO'|'AMERICA_ST_JOHNS'|'AMERICA_SAO_PAULO'|'ETC_GMT_MINUS_2'|'ATLANTIC_CAPE_VERDE'|'EUROPE_LONDON'|'EUROPE_PARIS'|'EUROPE_ISTANBUL'|'EUROPE_MOSCOW'|'ASIA_TEHRAN'|'ASIA_TBILISI'|'ASIA_KABUL'|'ASIA_TASHKENT'|'ASIA_COLOMBO'|'ASIA_KATHMANDU'|'ASIA_ALMATY'|'ASIA_RANGOON'|'ASIA_BANGKOK'|'ASIA_TAIPEI'|'ASIA_TOKYO'|'AUSTRALIA_DARWIN'|'AUSTRALIA_SYDNEY'|'ASIA_VLADIVOSTOK'|'ETC_GMT_PLUS_12'|'PACIFIC_TONGATAPU'
|
29
|
+
|
30
|
+
|
31
|
+
# @param acquisition_condition [AcquisitionConditionRequest, Hash[Symbol, untyped]]
|
32
|
+
# @param barcode_image_url [String,nil] URL of the barcode image associated with the coupon. Used for in-store redemption.
|
33
|
+
# @param coupon_code [String,nil] Unique code to be presented by the user to redeem the coupon. Optional.
|
34
|
+
# @param description [String,nil] Detailed description of the coupon. Displayed to users.
|
35
|
+
# @param end_timestamp [Integer] Coupon expiration time (epoch seconds). Coupon cannot be used after this time.
|
36
|
+
# @param image_url [String,nil] URL of the main image representing the coupon. Displayed in the coupon list.
|
37
|
+
# @param max_use_count_per_ticket [Integer] Maximum number of times a single coupon ticket can be used. Use -1 to indicate no limit.
|
38
|
+
# @param start_timestamp [Integer] Coupon start time (epoch seconds). Coupon can be used from this time.
|
39
|
+
# @param title [String] Title of the coupon. Displayed in the coupon list.
|
40
|
+
# @param usage_condition [String,nil] Conditions for using the coupon. Shown to users.
|
41
|
+
# @param reward [CouponRewardRequest, Hash[Symbol, untyped], nil]
|
42
|
+
# @param visibility [String] ('UNLISTED'|'PUBLIC') Visibility of the coupon. Determines who can see or acquire the coupon.
|
43
|
+
# @param timezone [String] ('ETC_GMT_MINUS_12'|'ETC_GMT_MINUS_11'|'PACIFIC_HONOLULU'|'AMERICA_ANCHORAGE'|'AMERICA_LOS_ANGELES'|'AMERICA_PHOENIX'|'AMERICA_CHICAGO'|'AMERICA_NEW_YORK'|'AMERICA_CARACAS'|'AMERICA_SANTIAGO'|'AMERICA_ST_JOHNS'|'AMERICA_SAO_PAULO'|'ETC_GMT_MINUS_2'|'ATLANTIC_CAPE_VERDE'|'EUROPE_LONDON'|'EUROPE_PARIS'|'EUROPE_ISTANBUL'|'EUROPE_MOSCOW'|'ASIA_TEHRAN'|'ASIA_TBILISI'|'ASIA_KABUL'|'ASIA_TASHKENT'|'ASIA_COLOMBO'|'ASIA_KATHMANDU'|'ASIA_ALMATY'|'ASIA_RANGOON'|'ASIA_BANGKOK'|'ASIA_TAIPEI'|'ASIA_TOKYO'|'AUSTRALIA_DARWIN'|'AUSTRALIA_SYDNEY'|'ASIA_VLADIVOSTOK'|'ETC_GMT_PLUS_12'|'PACIFIC_TONGATAPU') Timezone for interpreting start and end timestamps.
|
44
|
+
def initialize: (
|
45
|
+
acquisition_condition: AcquisitionConditionRequest| Hash[Symbol, untyped],
|
46
|
+
?barcode_image_url: String?,
|
47
|
+
?coupon_code: String?,
|
48
|
+
?description: String?,
|
49
|
+
end_timestamp: Integer,
|
50
|
+
?image_url: String?,
|
51
|
+
max_use_count_per_ticket: Integer,
|
52
|
+
start_timestamp: Integer,
|
53
|
+
title: String,
|
54
|
+
?usage_condition: String?,
|
55
|
+
?reward: CouponRewardRequest?| Hash[Symbol, untyped]?,
|
56
|
+
visibility: 'UNLISTED'|'PUBLIC',
|
57
|
+
timezone: 'ETC_GMT_MINUS_12'|'ETC_GMT_MINUS_11'|'PACIFIC_HONOLULU'|'AMERICA_ANCHORAGE'|'AMERICA_LOS_ANGELES'|'AMERICA_PHOENIX'|'AMERICA_CHICAGO'|'AMERICA_NEW_YORK'|'AMERICA_CARACAS'|'AMERICA_SANTIAGO'|'AMERICA_ST_JOHNS'|'AMERICA_SAO_PAULO'|'ETC_GMT_MINUS_2'|'ATLANTIC_CAPE_VERDE'|'EUROPE_LONDON'|'EUROPE_PARIS'|'EUROPE_ISTANBUL'|'EUROPE_MOSCOW'|'ASIA_TEHRAN'|'ASIA_TBILISI'|'ASIA_KABUL'|'ASIA_TASHKENT'|'ASIA_COLOMBO'|'ASIA_KATHMANDU'|'ASIA_ALMATY'|'ASIA_RANGOON'|'ASIA_BANGKOK'|'ASIA_TAIPEI'|'ASIA_TOKYO'|'AUSTRALIA_DARWIN'|'AUSTRALIA_SYDNEY'|'ASIA_VLADIVOSTOK'|'ETC_GMT_PLUS_12'|'PACIFIC_TONGATAPU',
|
58
|
+
**untyped dynamic_attributes
|
59
|
+
) -> void
|
60
|
+
|
61
|
+
# Create an instance of the class from a hash
|
62
|
+
# @param args [Hash] Hash containing all the required attributes
|
63
|
+
# @return [Line::Bot::V2::MessagingApi::CouponCreateRequest] Instance of the class
|
64
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponCreateRequest
|
65
|
+
|
66
|
+
# @param other [Object] Object to compare
|
67
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
68
|
+
def ==: (untyped other) -> bool
|
69
|
+
|
70
|
+
# @return [Integer] Hash code of the object
|
71
|
+
def hash: () -> Integer
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
# Response object returned after creating a coupon. Contains the coupon ID.
|
15
|
+
class CouponCreateResponse
|
16
|
+
attr_accessor coupon_id: String
|
17
|
+
|
18
|
+
|
19
|
+
# @param coupon_id [String] Unique identifier of the coupon.
|
20
|
+
def initialize: (
|
21
|
+
coupon_id: String,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CouponCreateResponse] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponCreateResponse
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponDiscountRewardRequest < CouponRewardRequest
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor price_info: DiscountPriceInfoRequest?
|
17
|
+
|
18
|
+
|
19
|
+
# @param price_info [DiscountPriceInfoRequest, Hash[Symbol, untyped], nil]
|
20
|
+
def initialize: (
|
21
|
+
?price_info: DiscountPriceInfoRequest?| Hash[Symbol, untyped]?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CouponDiscountRewardRequest] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponDiscountRewardRequest
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponDiscountRewardResponse < CouponRewardResponse
|
15
|
+
attr_reader type: String
|
16
|
+
attr_accessor price_info: DiscountPriceInfoResponse?
|
17
|
+
|
18
|
+
|
19
|
+
# @param price_info [DiscountPriceInfoResponse, Hash[Symbol, untyped], nil]
|
20
|
+
def initialize: (
|
21
|
+
?price_info: DiscountPriceInfoResponse?| Hash[Symbol, untyped]?,
|
22
|
+
**untyped dynamic_attributes
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
# Create an instance of the class from a hash
|
26
|
+
# @param args [Hash] Hash containing all the required attributes
|
27
|
+
# @return [Line::Bot::V2::MessagingApi::CouponDiscountRewardResponse] Instance of the class
|
28
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponDiscountRewardResponse
|
29
|
+
|
30
|
+
# @param other [Object] Object to compare
|
31
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
32
|
+
def ==: (untyped other) -> bool
|
33
|
+
|
34
|
+
# @return [Integer] Hash code of the object
|
35
|
+
def hash: () -> Integer
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponFreeRewardRequest < CouponRewardRequest
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::CouponFreeRewardRequest] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponFreeRewardRequest
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponFreeRewardResponse < CouponRewardResponse
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::CouponFreeRewardResponse] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponFreeRewardResponse
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class CouponGiftRewardRequest < CouponRewardRequest
|
15
|
+
attr_reader type: String
|
16
|
+
|
17
|
+
|
18
|
+
def initialize: (
|
19
|
+
**untyped dynamic_attributes
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
# Create an instance of the class from a hash
|
23
|
+
# @param args [Hash] Hash containing all the required attributes
|
24
|
+
# @return [Line::Bot::V2::MessagingApi::CouponGiftRewardRequest] Instance of the class
|
25
|
+
def self.create: (Hash[Symbol, untyped]) -> CouponGiftRewardRequest
|
26
|
+
|
27
|
+
# @param other [Object] Object to compare
|
28
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
29
|
+
def ==: (untyped other) -> bool
|
30
|
+
|
31
|
+
# @return [Integer] Hash code of the object
|
32
|
+
def hash: () -> Integer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|