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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +49 -1
  3. data/README.md +34 -16
  4. data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +269 -0
  5. data/lib/line/bot/v2/messaging_api/core.rb +39 -0
  6. data/lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb +77 -0
  7. data/lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb +78 -0
  8. data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rb +72 -0
  9. data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rb +78 -0
  10. data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rb +72 -0
  11. data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rb +72 -0
  12. data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_request.rb +77 -0
  13. data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb +77 -0
  14. data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rb +72 -0
  15. data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rb +72 -0
  16. data/lib/line/bot/v2/messaging_api/model/coupon_create_request.rb +139 -0
  17. data/lib/line/bot/v2/messaging_api/model/coupon_create_response.rb +67 -0
  18. data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rb +72 -0
  19. data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rb +72 -0
  20. data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_request.rb +66 -0
  21. data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_response.rb +66 -0
  22. data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rb +66 -0
  23. data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rb +66 -0
  24. data/lib/line/bot/v2/messaging_api/model/coupon_list_response.rb +73 -0
  25. data/lib/line/bot/v2/messaging_api/model/coupon_message.rb +91 -0
  26. data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_request.rb +66 -0
  27. data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_response.rb +66 -0
  28. data/lib/line/bot/v2/messaging_api/model/coupon_response.rb +169 -0
  29. data/lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb +80 -0
  30. data/lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb +80 -0
  31. data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rb +78 -0
  32. data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rb +84 -0
  33. data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rb +72 -0
  34. data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rb +78 -0
  35. data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rb +72 -0
  36. data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rb +72 -0
  37. data/lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb +78 -0
  38. data/lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb +78 -0
  39. data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb +78 -0
  40. data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb +78 -0
  41. data/lib/line/bot/v2/messaging_api/model/message.rb +1 -0
  42. data/lib/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rb +79 -0
  43. data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rb +66 -0
  44. data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rb +66 -0
  45. data/lib/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rb +66 -0
  46. data/lib/line/bot/version.rb +1 -1
  47. data/line-bot-api.gemspec +1 -1
  48. data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +156 -0
  49. data/sig/line/bot/v2/messaging_api/model/acquisition_condition_request.rbs +43 -0
  50. data/sig/line/bot/v2/messaging_api/model/acquisition_condition_response.rbs +43 -0
  51. data/sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rbs +40 -0
  52. data/sig/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rbs +43 -0
  53. data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rbs +40 -0
  54. data/sig/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rbs +40 -0
  55. data/sig/line/bot/v2/messaging_api/model/cash_back_price_info_request.rbs +43 -0
  56. data/sig/line/bot/v2/messaging_api/model/cash_back_price_info_response.rbs +43 -0
  57. data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rbs +40 -0
  58. data/sig/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rbs +40 -0
  59. data/sig/line/bot/v2/messaging_api/model/coupon_create_request.rbs +76 -0
  60. data/sig/line/bot/v2/messaging_api/model/coupon_create_response.rbs +40 -0
  61. data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rbs +40 -0
  62. data/sig/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rbs +40 -0
  63. data/sig/line/bot/v2/messaging_api/model/coupon_free_reward_request.rbs +37 -0
  64. data/sig/line/bot/v2/messaging_api/model/coupon_free_reward_response.rbs +37 -0
  65. data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rbs +37 -0
  66. data/sig/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rbs +37 -0
  67. data/sig/line/bot/v2/messaging_api/model/coupon_list_response.rbs +43 -0
  68. data/sig/line/bot/v2/messaging_api/model/coupon_message.rbs +50 -0
  69. data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_request.rbs +37 -0
  70. data/sig/line/bot/v2/messaging_api/model/coupon_others_reward_response.rbs +37 -0
  71. data/sig/line/bot/v2/messaging_api/model/coupon_response.rbs +91 -0
  72. data/sig/line/bot/v2/messaging_api/model/coupon_reward_request.rbs +43 -0
  73. data/sig/line/bot/v2/messaging_api/model/coupon_reward_response.rbs +43 -0
  74. data/sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rbs +43 -0
  75. data/sig/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rbs +46 -0
  76. data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rbs +40 -0
  77. data/sig/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rbs +43 -0
  78. data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rbs +40 -0
  79. data/sig/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rbs +40 -0
  80. data/sig/line/bot/v2/messaging_api/model/discount_price_info_request.rbs +43 -0
  81. data/sig/line/bot/v2/messaging_api/model/discount_price_info_response.rbs +43 -0
  82. data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rbs +43 -0
  83. data/sig/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rbs +43 -0
  84. data/sig/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rbs +43 -0
  85. data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rbs +37 -0
  86. data/sig/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rbs +37 -0
  87. data/sig/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rbs +37 -0
  88. metadata +81 -3
@@ -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 CouponGiftRewardResponse < 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::CouponGiftRewardResponse] Instance of the class
25
+ def self.create: (Hash[Symbol, untyped]) -> CouponGiftRewardResponse
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,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
+ # Summary information about a coupon, used in coupon lists.
15
+ class CouponListResponse
16
+ attr_accessor coupon_id: String
17
+ attr_accessor title: String
18
+
19
+
20
+ # @param coupon_id [String] Unique identifier of the coupon.
21
+ # @param title [String] Title of the coupon. Displayed in the coupon list.
22
+ def initialize: (
23
+ coupon_id: String,
24
+ title: String,
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::CouponListResponse] Instance of the class
31
+ def self.create: (Hash[Symbol, untyped]) -> CouponListResponse
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,50 @@
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
+ # @see https://developers.line.biz/en/reference/messaging-api/#coupon-message
15
+ class CouponMessage < Message
16
+ attr_reader type: String
17
+ attr_accessor quick_reply: QuickReply?
18
+ attr_accessor sender: Sender?
19
+ attr_accessor coupon_id: String
20
+ attr_accessor delivery_tag: String?
21
+
22
+
23
+ # @param quick_reply [QuickReply, Hash[Symbol, untyped], nil]
24
+ # @param sender [Sender, Hash[Symbol, untyped], nil]
25
+ # @param coupon_id [String] Unique identifier of the coupon.
26
+ # @param delivery_tag [String,nil] Delivery route tag information. It can be used for analysis in LINE OA Manager.
27
+ def initialize: (
28
+ ?quick_reply: QuickReply?| Hash[Symbol, untyped]?,
29
+ ?sender: Sender?| Hash[Symbol, untyped]?,
30
+ coupon_id: String,
31
+ ?delivery_tag: String?,
32
+ **untyped dynamic_attributes
33
+ ) -> void
34
+
35
+ # Create an instance of the class from a hash
36
+ # @param args [Hash] Hash containing all the required attributes
37
+ # @return [Line::Bot::V2::MessagingApi::CouponMessage] Instance of the class
38
+ def self.create: (Hash[Symbol, untyped]) -> CouponMessage
39
+
40
+ # @param other [Object] Object to compare
41
+ # @return [Boolean] true if the objects are equal, false otherwise
42
+ def ==: (untyped other) -> bool
43
+
44
+ # @return [Integer] Hash code of the object
45
+ def hash: () -> Integer
46
+ end
47
+ end
48
+ end
49
+ end
50
+ 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 CouponOthersRewardRequest < 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::CouponOthersRewardRequest] Instance of the class
25
+ def self.create: (Hash[Symbol, untyped]) -> CouponOthersRewardRequest
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 CouponOthersRewardResponse < 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::CouponOthersRewardResponse] Instance of the class
25
+ def self.create: (Hash[Symbol, untyped]) -> CouponOthersRewardResponse
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,91 @@
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
+ # Detailed information about a coupon, including all properties and current status.
15
+ class CouponResponse
16
+ attr_accessor acquisition_condition: AcquisitionConditionResponse?
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_acquire_count: Integer?
23
+ attr_accessor max_use_count_per_ticket: Integer?
24
+ attr_accessor max_ticket_per_user: Integer?
25
+ attr_accessor start_timestamp: Integer?
26
+ attr_accessor title: String?
27
+ attr_accessor usage_condition: String?
28
+ attr_accessor reward: CouponRewardResponse?
29
+ attr_accessor visibility: 'UNLISTED'|'PUBLIC'|'PRIVATE'?
30
+ 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'?
31
+ attr_accessor coupon_id: String?
32
+ attr_accessor created_timestamp: Integer?
33
+ attr_accessor status: 'DRAFT'|'RUNNING'|'CLOSED'?
34
+
35
+
36
+ # @param acquisition_condition [AcquisitionConditionResponse, Hash[Symbol, untyped], nil]
37
+ # @param barcode_image_url [String,nil] URL of the barcode image associated with the coupon. Used for in-store redemption.
38
+ # @param coupon_code [String,nil] Unique code to be presented by the user to redeem the coupon.
39
+ # @param description [String,nil] Detailed description of the coupon. Displayed to users.
40
+ # @param end_timestamp [Integer,nil] Coupon expiration time (epoch seconds). Coupon cannot be used after this time.
41
+ # @param image_url [String,nil] URL of the main image representing the coupon. Displayed in the coupon list.
42
+ # @param max_acquire_count [Integer,nil] Maximum number of coupons that can be issued in total.
43
+ # @param max_use_count_per_ticket [Integer,nil] Maximum number of times a single coupon ticket can be used.
44
+ # @param max_ticket_per_user [Integer,nil] Maximum number of coupon tickets a single user can acquire.
45
+ # @param start_timestamp [Integer,nil] Coupon start time (epoch seconds). Coupon can be used from this time.
46
+ # @param title [String,nil] Title of the coupon. Displayed in the coupon list.
47
+ # @param usage_condition [String,nil] Conditions for using the coupon. Shown to users.
48
+ # @param reward [CouponRewardResponse, Hash[Symbol, untyped], nil]
49
+ # @param visibility [String,nil] ('UNLISTED'|'PUBLIC'|'PRIVATE') Visibility of the coupon. Determines who can see or acquire the coupon.
50
+ # @param timezone [String,nil] ('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.
51
+ # @param coupon_id [String,nil] Unique identifier of the coupon.
52
+ # @param created_timestamp [Integer,nil] Created timestamp (seconds) of the coupon.
53
+ # @param status [String,nil] ('DRAFT'|'RUNNING'|'CLOSED') Current status of the coupon.
54
+ def initialize: (
55
+ ?acquisition_condition: AcquisitionConditionResponse?| Hash[Symbol, untyped]?,
56
+ ?barcode_image_url: String?,
57
+ ?coupon_code: String?,
58
+ ?description: String?,
59
+ ?end_timestamp: Integer?,
60
+ ?image_url: String?,
61
+ ?max_acquire_count: Integer?,
62
+ ?max_use_count_per_ticket: Integer?,
63
+ ?max_ticket_per_user: Integer?,
64
+ ?start_timestamp: Integer?,
65
+ ?title: String?,
66
+ ?usage_condition: String?,
67
+ ?reward: CouponRewardResponse?| Hash[Symbol, untyped]?,
68
+ ?visibility: 'UNLISTED'|'PUBLIC'|'PRIVATE'?,
69
+ ?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'?,
70
+ ?coupon_id: String?,
71
+ ?created_timestamp: Integer?,
72
+ ?status: 'DRAFT'|'RUNNING'|'CLOSED'?,
73
+ **untyped dynamic_attributes
74
+ ) -> void
75
+
76
+ # Create an instance of the class from a hash
77
+ # @param args [Hash] Hash containing all the required attributes
78
+ # @return [Line::Bot::V2::MessagingApi::CouponResponse] Instance of the class
79
+ def self.create: (Hash[Symbol, untyped]) -> CouponResponse
80
+
81
+ # @param other [Object] Object to compare
82
+ # @return [Boolean] true if the objects are equal, false otherwise
83
+ def ==: (untyped other) -> bool
84
+
85
+ # @return [Integer] Hash code of the object
86
+ def hash: () -> Integer
87
+ end
88
+ end
89
+ end
90
+ end
91
+ 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 CouponRewardRequest
15
+ attr_accessor type: String
16
+
17
+
18
+ # @param type [String] Type of coupon. Determines the benefit provided.
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::CouponRewardRequest] Instance of the class
27
+ def self.create: (Hash[Symbol, untyped]) -> CouponRewardRequest
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 CouponRewardResponse
15
+ attr_accessor type: String
16
+
17
+
18
+ # @param type [String] Type of coupon. Determines the benefit provided.
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::CouponRewardResponse] Instance of the class
27
+ def self.create: (Hash[Symbol, untyped]) -> CouponRewardResponse
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 DiscountExplicitPriceInfoRequest < DiscountPriceInfoRequest
15
+ attr_reader type: String
16
+ attr_accessor price_after_discount: Integer?
17
+ attr_accessor original_price: Integer?
18
+
19
+
20
+ # @param price_after_discount [Integer,nil]
21
+ # @param original_price [Integer,nil]
22
+ def initialize: (
23
+ ?price_after_discount: Integer?,
24
+ ?original_price: 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::DiscountExplicitPriceInfoRequest] Instance of the class
31
+ def self.create: (Hash[Symbol, untyped]) -> DiscountExplicitPriceInfoRequest
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,46 @@
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 DiscountExplicitPriceInfoResponse < DiscountPriceInfoResponse
15
+ attr_reader type: String
16
+ attr_accessor currency: 'JPY'|'THB'|'TWD'?
17
+ attr_accessor price_after_discount: Integer?
18
+ attr_accessor original_price: Integer?
19
+
20
+
21
+ # @param currency [String,nil] ('JPY'|'THB'|'TWD') Currency code (e.g., JPY, THB, TWD).
22
+ # @param price_after_discount [Integer,nil]
23
+ # @param original_price [Integer,nil]
24
+ def initialize: (
25
+ ?currency: 'JPY'|'THB'|'TWD'?,
26
+ ?price_after_discount: Integer?,
27
+ ?original_price: Integer?,
28
+ **untyped dynamic_attributes
29
+ ) -> void
30
+
31
+ # Create an instance of the class from a hash
32
+ # @param args [Hash] Hash containing all the required attributes
33
+ # @return [Line::Bot::V2::MessagingApi::DiscountExplicitPriceInfoResponse] Instance of the class
34
+ def self.create: (Hash[Symbol, untyped]) -> DiscountExplicitPriceInfoResponse
35
+
36
+ # @param other [Object] Object to compare
37
+ # @return [Boolean] true if the objects are equal, false otherwise
38
+ def ==: (untyped other) -> bool
39
+
40
+ # @return [Integer] Hash code of the object
41
+ def hash: () -> Integer
42
+ end
43
+ end
44
+ end
45
+ end
46
+ 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 DiscountFixedPriceInfoRequest < DiscountPriceInfoRequest
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::DiscountFixedPriceInfoRequest] Instance of the class
28
+ def self.create: (Hash[Symbol, untyped]) -> DiscountFixedPriceInfoRequest
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 DiscountFixedPriceInfoResponse < DiscountPriceInfoResponse
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::DiscountFixedPriceInfoResponse] Instance of the class
31
+ def self.create: (Hash[Symbol, untyped]) -> DiscountFixedPriceInfoResponse
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 DiscountPercentagePriceInfoRequest < DiscountPriceInfoRequest
15
+ attr_reader type: String
16
+ attr_accessor percentage: Integer?
17
+
18
+
19
+ # @param percentage [Integer,nil] Specifies the discount 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::DiscountPercentagePriceInfoRequest] Instance of the class
28
+ def self.create: (Hash[Symbol, untyped]) -> DiscountPercentagePriceInfoRequest
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 DiscountPercentagePriceInfoResponse < DiscountPriceInfoResponse
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::DiscountPercentagePriceInfoResponse] Instance of the class
28
+ def self.create: (Hash[Symbol, untyped]) -> DiscountPercentagePriceInfoResponse
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