stigg 0.1.0.pre.alpha.1
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +45 -0
- data/README.md +233 -0
- data/SECURITY.md +23 -0
- data/lib/stigg/client.rb +72 -0
- data/lib/stigg/errors.rb +228 -0
- data/lib/stigg/file_part.rb +58 -0
- data/lib/stigg/internal/my_cursor_id_page.rb +82 -0
- data/lib/stigg/internal/transport/base_client.rb +570 -0
- data/lib/stigg/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/stigg/internal/type/array_of.rb +168 -0
- data/lib/stigg/internal/type/base_model.rb +529 -0
- data/lib/stigg/internal/type/base_page.rb +55 -0
- data/lib/stigg/internal/type/boolean.rb +77 -0
- data/lib/stigg/internal/type/converter.rb +327 -0
- data/lib/stigg/internal/type/enum.rb +131 -0
- data/lib/stigg/internal/type/file_input.rb +110 -0
- data/lib/stigg/internal/type/hash_of.rb +188 -0
- data/lib/stigg/internal/type/request_parameters.rb +42 -0
- data/lib/stigg/internal/type/union.rb +237 -0
- data/lib/stigg/internal/type/unknown.rb +81 -0
- data/lib/stigg/internal/util.rb +920 -0
- data/lib/stigg/internal.rb +20 -0
- data/lib/stigg/models/v1/coupon_create_params.rb +221 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +317 -0
- data/lib/stigg/models/v1/coupon_list_params.rb +40 -0
- data/lib/stigg/models/v1/coupon_list_response.rb +324 -0
- data/lib/stigg/models/v1/coupon_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +317 -0
- data/lib/stigg/models/v1/customer_archive_params.rb +16 -0
- data/lib/stigg/models/v1/customer_create_params.rb +185 -0
- data/lib/stigg/models/v1/customer_list_params.rb +40 -0
- data/lib/stigg/models/v1/customer_list_response.rb +223 -0
- data/lib/stigg/models/v1/customer_response.rb +216 -0
- data/lib/stigg/models/v1/customer_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/customer_unarchive_params.rb +16 -0
- data/lib/stigg/models/v1/customer_update_params.rb +107 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +197 -0
- data/lib/stigg/models/v1/customers/payment_method_detach_params.rb +18 -0
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +294 -0
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +268 -0
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +268 -0
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +56 -0
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +145 -0
- data/lib/stigg/models/v1/subscription_create_params.rb +214 -0
- data/lib/stigg/models/v1/subscription_create_response.rb +338 -0
- data/lib/stigg/models/v1/subscription_delegate_params.rb +24 -0
- data/lib/stigg/models/v1/subscription_delegate_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_list_params.rb +60 -0
- data/lib/stigg/models/v1/subscription_list_response.rb +281 -0
- data/lib/stigg/models/v1/subscription_migrate_params.rb +37 -0
- data/lib/stigg/models/v1/subscription_migrate_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_preview_params.rb +644 -0
- data/lib/stigg/models/v1/subscription_preview_response.rb +431 -0
- data/lib/stigg/models/v1/subscription_retrieve_params.rb +16 -0
- data/lib/stigg/models/v1/subscription_retrieve_response.rb +274 -0
- data/lib/stigg/models/v1/subscription_transfer_params.rb +28 -0
- data/lib/stigg/models/v1/subscription_transfer_response.rb +274 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +32 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rb +18 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +32 -0
- data/lib/stigg/models/v1_create_event_params.rb +87 -0
- data/lib/stigg/models/v1_create_event_response.rb +16 -0
- data/lib/stigg/models/v1_create_usage_params.rb +96 -0
- data/lib/stigg/models/v1_create_usage_response.rb +112 -0
- data/lib/stigg/models.rb +47 -0
- data/lib/stigg/request_options.rb +77 -0
- data/lib/stigg/resources/v1/coupons.rb +95 -0
- data/lib/stigg/resources/v1/customers/payment_method.rb +67 -0
- data/lib/stigg/resources/v1/customers/promotional.rb +69 -0
- data/lib/stigg/resources/v1/customers/usage.rb +59 -0
- data/lib/stigg/resources/v1/customers.rb +177 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +56 -0
- data/lib/stigg/resources/v1/subscriptions.rb +241 -0
- data/lib/stigg/resources/v1.rb +70 -0
- data/lib/stigg/version.rb +5 -0
- data/lib/stigg.rb +108 -0
- data/manifest.yaml +17 -0
- data/rbi/stigg/client.rbi +49 -0
- data/rbi/stigg/errors.rbi +205 -0
- data/rbi/stigg/file_part.rbi +37 -0
- data/rbi/stigg/internal/my_cursor_id_page.rbi +19 -0
- data/rbi/stigg/internal/transport/base_client.rbi +297 -0
- data/rbi/stigg/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/stigg/internal/type/array_of.rbi +104 -0
- data/rbi/stigg/internal/type/base_model.rbi +299 -0
- data/rbi/stigg/internal/type/base_page.rbi +42 -0
- data/rbi/stigg/internal/type/boolean.rbi +58 -0
- data/rbi/stigg/internal/type/converter.rbi +204 -0
- data/rbi/stigg/internal/type/enum.rbi +82 -0
- data/rbi/stigg/internal/type/file_input.rbi +58 -0
- data/rbi/stigg/internal/type/hash_of.rbi +104 -0
- data/rbi/stigg/internal/type/request_parameters.rbi +29 -0
- data/rbi/stigg/internal/type/union.rbi +126 -0
- data/rbi/stigg/internal/type/unknown.rbi +58 -0
- data/rbi/stigg/internal/util.rbi +478 -0
- data/rbi/stigg/internal.rbi +16 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +758 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +986 -0
- data/rbi/stigg/models/v1/coupon_list_params.rbi +70 -0
- data/rbi/stigg/models/v1/coupon_list_response.rbi +983 -0
- data/rbi/stigg/models/v1/coupon_retrieve_params.rbi +29 -0
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +986 -0
- data/rbi/stigg/models/v1/customer_archive_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_create_params.rbi +376 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +70 -0
- data/rbi/stigg/models/v1/customer_list_response.rbi +447 -0
- data/rbi/stigg/models/v1/customer_response.rbi +423 -0
- data/rbi/stigg/models/v1/customer_retrieve_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_unarchive_params.rbi +29 -0
- data/rbi/stigg/models/v1/customer_update_params.rbi +226 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +769 -0
- data/rbi/stigg/models/v1/customers/payment_method_detach_params.rbi +34 -0
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +639 -0
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +495 -0
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +42 -0
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +497 -0
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +84 -0
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +353 -0
- data/rbi/stigg/models/v1/subscription_create_params.rbi +394 -0
- data/rbi/stigg/models/v1/subscription_create_response.rbi +668 -0
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +48 -0
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_list_params.rbi +94 -0
- data/rbi/stigg/models/v1/subscription_list_response.rbi +543 -0
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +99 -0
- data/rbi/stigg/models/v1/subscription_migrate_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +1786 -0
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +929 -0
- data/rbi/stigg/models/v1/subscription_retrieve_params.rbi +32 -0
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +50 -0
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +535 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +79 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbi +34 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +79 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +160 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +23 -0
- data/rbi/stigg/models/v1_create_usage_params.rbi +177 -0
- data/rbi/stigg/models/v1_create_usage_response.rbi +150 -0
- data/rbi/stigg/models.rbi +9 -0
- data/rbi/stigg/request_options.rbi +55 -0
- data/rbi/stigg/resources/v1/coupons.rbi +79 -0
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +54 -0
- data/rbi/stigg/resources/v1/customers/promotional.rbi +53 -0
- data/rbi/stigg/resources/v1/customers/usage.rbi +45 -0
- data/rbi/stigg/resources/v1/customers.rbi +138 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +40 -0
- data/rbi/stigg/resources/v1/subscriptions.rbi +199 -0
- data/rbi/stigg/resources/v1.rbi +49 -0
- data/rbi/stigg/version.rbi +5 -0
- data/sig/stigg/client.rbs +26 -0
- data/sig/stigg/errors.rbs +117 -0
- data/sig/stigg/file_part.rbs +21 -0
- data/sig/stigg/internal/my_cursor_id_page.rbs +11 -0
- data/sig/stigg/internal/transport/base_client.rbs +133 -0
- data/sig/stigg/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/stigg/internal/type/array_of.rbs +48 -0
- data/sig/stigg/internal/type/base_model.rbs +102 -0
- data/sig/stigg/internal/type/base_page.rbs +24 -0
- data/sig/stigg/internal/type/boolean.rbs +26 -0
- data/sig/stigg/internal/type/converter.rbs +79 -0
- data/sig/stigg/internal/type/enum.rbs +32 -0
- data/sig/stigg/internal/type/file_input.rbs +25 -0
- data/sig/stigg/internal/type/hash_of.rbs +48 -0
- data/sig/stigg/internal/type/request_parameters.rbs +17 -0
- data/sig/stigg/internal/type/union.rbs +52 -0
- data/sig/stigg/internal/type/unknown.rbs +26 -0
- data/sig/stigg/internal/util.rbs +185 -0
- data/sig/stigg/internal.rbs +9 -0
- data/sig/stigg/models/v1/coupon_create_params.rbs +323 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +392 -0
- data/sig/stigg/models/v1/coupon_list_params.rbs +40 -0
- data/sig/stigg/models/v1/coupon_list_response.rbs +399 -0
- data/sig/stigg/models/v1/coupon_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +394 -0
- data/sig/stigg/models/v1/customer_archive_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_create_params.rbs +169 -0
- data/sig/stigg/models/v1/customer_list_params.rbs +40 -0
- data/sig/stigg/models/v1/customer_list_response.rbs +198 -0
- data/sig/stigg/models/v1/customer_response.rbs +188 -0
- data/sig/stigg/models/v1/customer_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_unarchive_params.rbs +17 -0
- data/sig/stigg/models/v1/customer_update_params.rbs +110 -0
- data/sig/stigg/models/v1/customers/payment_method_attach_params.rbs +315 -0
- data/sig/stigg/models/v1/customers/payment_method_detach_params.rbs +19 -0
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +209 -0
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +27 -0
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +209 -0
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +54 -0
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +134 -0
- data/sig/stigg/models/v1/subscription_create_params.rbs +199 -0
- data/sig/stigg/models/v1/subscription_create_response.rbs +283 -0
- data/sig/stigg/models/v1/subscription_delegate_params.rbs +26 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +58 -0
- data/sig/stigg/models/v1/subscription_list_response.rbs +229 -0
- data/sig/stigg/models/v1/subscription_migrate_params.rbs +43 -0
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +821 -0
- data/sig/stigg/models/v1/subscription_preview_response.rbs +466 -0
- data/sig/stigg/models/v1/subscription_retrieve_params.rbs +17 -0
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +224 -0
- data/sig/stigg/models/v1/subscription_transfer_params.rbs +26 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +224 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +34 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbs +19 -0
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +34 -0
- data/sig/stigg/models/v1_create_event_params.rbs +80 -0
- data/sig/stigg/models/v1_create_event_response.rbs +13 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +90 -0
- data/sig/stigg/models/v1_create_usage_response.rbs +85 -0
- data/sig/stigg/models.rbs +7 -0
- data/sig/stigg/request_options.rbs +34 -0
- data/sig/stigg/resources/v1/coupons.rbs +32 -0
- data/sig/stigg/resources/v1/customers/payment_method.rbs +25 -0
- data/sig/stigg/resources/v1/customers/promotional.rbs +23 -0
- data/sig/stigg/resources/v1/customers/usage.rbs +21 -0
- data/sig/stigg/resources/v1/customers.rbs +58 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +21 -0
- data/sig/stigg/resources/v1/subscriptions.rbs +76 -0
- data/sig/stigg/resources/v1.rbs +23 -0
- data/sig/stigg/version.rbs +3 -0
- metadata +301 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Coupons#list
|
|
7
|
+
class CouponListResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Stigg::Models::V1::CouponListResponse::Data>]
|
|
11
|
+
required :data, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CouponListResponse::Data] }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data:)
|
|
14
|
+
# @param data [Array<Stigg::Models::V1::CouponListResponse::Data>]
|
|
15
|
+
|
|
16
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
# The unique identifier for the entity
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :id, String
|
|
22
|
+
|
|
23
|
+
# @!attribute amounts_off
|
|
24
|
+
# Fixed amount discounts in different currencies
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<Stigg::Models::V1::CouponListResponse::Data::AmountsOff>, nil]
|
|
27
|
+
required :amounts_off,
|
|
28
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CouponListResponse::Data::AmountsOff] },
|
|
29
|
+
api_name: :amountsOff,
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute billing_id
|
|
33
|
+
# The unique identifier for the entity in the billing provider
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
required :billing_id, String, api_name: :billingId, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute billing_link_url
|
|
39
|
+
# The URL to the entity in the billing provider
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
required :billing_link_url, String, api_name: :billingLinkUrl, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute created_at
|
|
45
|
+
# Timestamp of when the record was created
|
|
46
|
+
#
|
|
47
|
+
# @return [Time]
|
|
48
|
+
required :created_at, Time, api_name: :createdAt
|
|
49
|
+
|
|
50
|
+
# @!attribute cursor_id
|
|
51
|
+
# Cursor ID for query pagination
|
|
52
|
+
#
|
|
53
|
+
# @return [String]
|
|
54
|
+
required :cursor_id, String, api_name: :cursorId
|
|
55
|
+
|
|
56
|
+
# @!attribute description
|
|
57
|
+
# Description of the coupon
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
required :description, String, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute duration_in_months
|
|
63
|
+
# Duration of the coupon validity in months
|
|
64
|
+
#
|
|
65
|
+
# @return [Float, nil]
|
|
66
|
+
required :duration_in_months, Float, api_name: :durationInMonths, nil?: true
|
|
67
|
+
|
|
68
|
+
# @!attribute name
|
|
69
|
+
# Name of the coupon
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :name, String
|
|
73
|
+
|
|
74
|
+
# @!attribute percent_off
|
|
75
|
+
# Percentage discount off the original price
|
|
76
|
+
#
|
|
77
|
+
# @return [Float, nil]
|
|
78
|
+
required :percent_off, Float, api_name: :percentOff, nil?: true
|
|
79
|
+
|
|
80
|
+
# @!attribute source
|
|
81
|
+
# The source of the coupon
|
|
82
|
+
#
|
|
83
|
+
# @return [Symbol, Stigg::Models::V1::CouponListResponse::Data::Source, nil]
|
|
84
|
+
required :source, enum: -> { Stigg::Models::V1::CouponListResponse::Data::Source }, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute status
|
|
87
|
+
# Current status of the coupon
|
|
88
|
+
#
|
|
89
|
+
# @return [Symbol, Stigg::Models::V1::CouponListResponse::Data::Status]
|
|
90
|
+
required :status, enum: -> { Stigg::Models::V1::CouponListResponse::Data::Status }
|
|
91
|
+
|
|
92
|
+
# @!attribute type
|
|
93
|
+
# Type of the coupon (percentage or fixed amount)
|
|
94
|
+
#
|
|
95
|
+
# @return [Symbol, Stigg::Models::V1::CouponListResponse::Data::Type]
|
|
96
|
+
required :type, enum: -> { Stigg::Models::V1::CouponListResponse::Data::Type }
|
|
97
|
+
|
|
98
|
+
# @!attribute updated_at
|
|
99
|
+
# Timestamp of when the record was last updated
|
|
100
|
+
#
|
|
101
|
+
# @return [Time]
|
|
102
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
103
|
+
|
|
104
|
+
# @!method initialize(id:, amounts_off:, billing_id:, billing_link_url:, created_at:, cursor_id:, description:, duration_in_months:, name:, percent_off:, source:, status:, type:, updated_at:)
|
|
105
|
+
# @param id [String] The unique identifier for the entity
|
|
106
|
+
#
|
|
107
|
+
# @param amounts_off [Array<Stigg::Models::V1::CouponListResponse::Data::AmountsOff>, nil] Fixed amount discounts in different currencies
|
|
108
|
+
#
|
|
109
|
+
# @param billing_id [String, nil] The unique identifier for the entity in the billing provider
|
|
110
|
+
#
|
|
111
|
+
# @param billing_link_url [String, nil] The URL to the entity in the billing provider
|
|
112
|
+
#
|
|
113
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
114
|
+
#
|
|
115
|
+
# @param cursor_id [String] Cursor ID for query pagination
|
|
116
|
+
#
|
|
117
|
+
# @param description [String, nil] Description of the coupon
|
|
118
|
+
#
|
|
119
|
+
# @param duration_in_months [Float, nil] Duration of the coupon validity in months
|
|
120
|
+
#
|
|
121
|
+
# @param name [String] Name of the coupon
|
|
122
|
+
#
|
|
123
|
+
# @param percent_off [Float, nil] Percentage discount off the original price
|
|
124
|
+
#
|
|
125
|
+
# @param source [Symbol, Stigg::Models::V1::CouponListResponse::Data::Source, nil] The source of the coupon
|
|
126
|
+
#
|
|
127
|
+
# @param status [Symbol, Stigg::Models::V1::CouponListResponse::Data::Status] Current status of the coupon
|
|
128
|
+
#
|
|
129
|
+
# @param type [Symbol, Stigg::Models::V1::CouponListResponse::Data::Type] Type of the coupon (percentage or fixed amount)
|
|
130
|
+
#
|
|
131
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
132
|
+
|
|
133
|
+
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
134
|
+
# @!attribute amount
|
|
135
|
+
# The price amount
|
|
136
|
+
#
|
|
137
|
+
# @return [Float]
|
|
138
|
+
required :amount, Float
|
|
139
|
+
|
|
140
|
+
# @!attribute currency
|
|
141
|
+
# The price currency
|
|
142
|
+
#
|
|
143
|
+
# @return [Symbol, Stigg::Models::V1::CouponListResponse::Data::AmountsOff::Currency, nil]
|
|
144
|
+
required :currency,
|
|
145
|
+
enum: -> { Stigg::Models::V1::CouponListResponse::Data::AmountsOff::Currency },
|
|
146
|
+
nil?: true
|
|
147
|
+
|
|
148
|
+
# @!method initialize(amount:, currency:)
|
|
149
|
+
# @param amount [Float] The price amount
|
|
150
|
+
#
|
|
151
|
+
# @param currency [Symbol, Stigg::Models::V1::CouponListResponse::Data::AmountsOff::Currency, nil] The price currency
|
|
152
|
+
|
|
153
|
+
# The price currency
|
|
154
|
+
#
|
|
155
|
+
# @see Stigg::Models::V1::CouponListResponse::Data::AmountsOff#currency
|
|
156
|
+
module Currency
|
|
157
|
+
extend Stigg::Internal::Type::Enum
|
|
158
|
+
|
|
159
|
+
USD = :usd
|
|
160
|
+
AED = :aed
|
|
161
|
+
ALL = :all
|
|
162
|
+
AMD = :amd
|
|
163
|
+
ANG = :ang
|
|
164
|
+
AUD = :aud
|
|
165
|
+
AWG = :awg
|
|
166
|
+
AZN = :azn
|
|
167
|
+
BAM = :bam
|
|
168
|
+
BBD = :bbd
|
|
169
|
+
BDT = :bdt
|
|
170
|
+
BGN = :bgn
|
|
171
|
+
BIF = :bif
|
|
172
|
+
BMD = :bmd
|
|
173
|
+
BND = :bnd
|
|
174
|
+
BSD = :bsd
|
|
175
|
+
BWP = :bwp
|
|
176
|
+
BYN = :byn
|
|
177
|
+
BZD = :bzd
|
|
178
|
+
BRL = :brl
|
|
179
|
+
CAD = :cad
|
|
180
|
+
CDF = :cdf
|
|
181
|
+
CHF = :chf
|
|
182
|
+
CNY = :cny
|
|
183
|
+
CZK = :czk
|
|
184
|
+
DKK = :dkk
|
|
185
|
+
DOP = :dop
|
|
186
|
+
DZD = :dzd
|
|
187
|
+
EGP = :egp
|
|
188
|
+
ETB = :etb
|
|
189
|
+
EUR = :eur
|
|
190
|
+
FJD = :fjd
|
|
191
|
+
GBP = :gbp
|
|
192
|
+
GEL = :gel
|
|
193
|
+
GIP = :gip
|
|
194
|
+
GMD = :gmd
|
|
195
|
+
GYD = :gyd
|
|
196
|
+
HKD = :hkd
|
|
197
|
+
HRK = :hrk
|
|
198
|
+
HTG = :htg
|
|
199
|
+
IDR = :idr
|
|
200
|
+
ILS = :ils
|
|
201
|
+
INR = :inr
|
|
202
|
+
ISK = :isk
|
|
203
|
+
JMD = :jmd
|
|
204
|
+
JPY = :jpy
|
|
205
|
+
KES = :kes
|
|
206
|
+
KGS = :kgs
|
|
207
|
+
KHR = :khr
|
|
208
|
+
KMF = :kmf
|
|
209
|
+
KRW = :krw
|
|
210
|
+
KYD = :kyd
|
|
211
|
+
KZT = :kzt
|
|
212
|
+
LBP = :lbp
|
|
213
|
+
LKR = :lkr
|
|
214
|
+
LRD = :lrd
|
|
215
|
+
LSL = :lsl
|
|
216
|
+
MAD = :mad
|
|
217
|
+
MDL = :mdl
|
|
218
|
+
MGA = :mga
|
|
219
|
+
MKD = :mkd
|
|
220
|
+
MMK = :mmk
|
|
221
|
+
MNT = :mnt
|
|
222
|
+
MOP = :mop
|
|
223
|
+
MRO = :mro
|
|
224
|
+
MVR = :mvr
|
|
225
|
+
MWK = :mwk
|
|
226
|
+
MXN = :mxn
|
|
227
|
+
MYR = :myr
|
|
228
|
+
MZN = :mzn
|
|
229
|
+
NAD = :nad
|
|
230
|
+
NGN = :ngn
|
|
231
|
+
NOK = :nok
|
|
232
|
+
NPR = :npr
|
|
233
|
+
NZD = :nzd
|
|
234
|
+
PGK = :pgk
|
|
235
|
+
PHP = :php
|
|
236
|
+
PKR = :pkr
|
|
237
|
+
PLN = :pln
|
|
238
|
+
QAR = :qar
|
|
239
|
+
RON = :ron
|
|
240
|
+
RSD = :rsd
|
|
241
|
+
RUB = :rub
|
|
242
|
+
RWF = :rwf
|
|
243
|
+
SAR = :sar
|
|
244
|
+
SBD = :sbd
|
|
245
|
+
SCR = :scr
|
|
246
|
+
SEK = :sek
|
|
247
|
+
SGD = :sgd
|
|
248
|
+
SLE = :sle
|
|
249
|
+
SLL = :sll
|
|
250
|
+
SOS = :sos
|
|
251
|
+
SZL = :szl
|
|
252
|
+
THB = :thb
|
|
253
|
+
TJS = :tjs
|
|
254
|
+
TOP = :top
|
|
255
|
+
TRY = :try
|
|
256
|
+
TTD = :ttd
|
|
257
|
+
TZS = :tzs
|
|
258
|
+
UAH = :uah
|
|
259
|
+
UZS = :uzs
|
|
260
|
+
VND = :vnd
|
|
261
|
+
VUV = :vuv
|
|
262
|
+
WST = :wst
|
|
263
|
+
XAF = :xaf
|
|
264
|
+
XCD = :xcd
|
|
265
|
+
YER = :yer
|
|
266
|
+
ZAR = :zar
|
|
267
|
+
ZMW = :zmw
|
|
268
|
+
CLP = :clp
|
|
269
|
+
DJF = :djf
|
|
270
|
+
GNF = :gnf
|
|
271
|
+
UGX = :ugx
|
|
272
|
+
PYG = :pyg
|
|
273
|
+
XOF = :xof
|
|
274
|
+
XPF = :xpf
|
|
275
|
+
|
|
276
|
+
# @!method self.values
|
|
277
|
+
# @return [Array<Symbol>]
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# The source of the coupon
|
|
282
|
+
#
|
|
283
|
+
# @see Stigg::Models::V1::CouponListResponse::Data#source
|
|
284
|
+
module Source
|
|
285
|
+
extend Stigg::Internal::Type::Enum
|
|
286
|
+
|
|
287
|
+
STIGG = :STIGG
|
|
288
|
+
STIGG_ADHOC = :STIGG_ADHOC
|
|
289
|
+
STRIPE = :STRIPE
|
|
290
|
+
|
|
291
|
+
# @!method self.values
|
|
292
|
+
# @return [Array<Symbol>]
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Current status of the coupon
|
|
296
|
+
#
|
|
297
|
+
# @see Stigg::Models::V1::CouponListResponse::Data#status
|
|
298
|
+
module Status
|
|
299
|
+
extend Stigg::Internal::Type::Enum
|
|
300
|
+
|
|
301
|
+
ACTIVE = :ACTIVE
|
|
302
|
+
ARCHIVED = :ARCHIVED
|
|
303
|
+
|
|
304
|
+
# @!method self.values
|
|
305
|
+
# @return [Array<Symbol>]
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Type of the coupon (percentage or fixed amount)
|
|
309
|
+
#
|
|
310
|
+
# @see Stigg::Models::V1::CouponListResponse::Data#type
|
|
311
|
+
module Type
|
|
312
|
+
extend Stigg::Internal::Type::Enum
|
|
313
|
+
|
|
314
|
+
FIXED = :FIXED
|
|
315
|
+
PERCENTAGE = :PERCENTAGE
|
|
316
|
+
|
|
317
|
+
# @!method self.values
|
|
318
|
+
# @return [Array<Symbol>]
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Coupons#retrieve
|
|
7
|
+
class CouponRetrieveParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Coupons#retrieve
|
|
7
|
+
class CouponRetrieveResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Stigg::Models::V1::CouponRetrieveResponse::Data]
|
|
11
|
+
required :data, -> { Stigg::Models::V1::CouponRetrieveResponse::Data }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data:)
|
|
14
|
+
# @param data [Stigg::Models::V1::CouponRetrieveResponse::Data]
|
|
15
|
+
|
|
16
|
+
# @see Stigg::Models::V1::CouponRetrieveResponse#data
|
|
17
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute id
|
|
19
|
+
# The unique identifier for the entity
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute amounts_off
|
|
25
|
+
# Fixed amount discounts in different currencies
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff>, nil]
|
|
28
|
+
required :amounts_off,
|
|
29
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff] },
|
|
30
|
+
api_name: :amountsOff,
|
|
31
|
+
nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute billing_id
|
|
34
|
+
# The unique identifier for the entity in the billing provider
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
required :billing_id, String, api_name: :billingId, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute billing_link_url
|
|
40
|
+
# The URL to the entity in the billing provider
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
required :billing_link_url, String, api_name: :billingLinkUrl, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute created_at
|
|
46
|
+
# Timestamp of when the record was created
|
|
47
|
+
#
|
|
48
|
+
# @return [Time]
|
|
49
|
+
required :created_at, Time, api_name: :createdAt
|
|
50
|
+
|
|
51
|
+
# @!attribute description
|
|
52
|
+
# Description of the coupon
|
|
53
|
+
#
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
required :description, String, nil?: true
|
|
56
|
+
|
|
57
|
+
# @!attribute duration_in_months
|
|
58
|
+
# Duration of the coupon validity in months
|
|
59
|
+
#
|
|
60
|
+
# @return [Float, nil]
|
|
61
|
+
required :duration_in_months, Float, api_name: :durationInMonths, nil?: true
|
|
62
|
+
|
|
63
|
+
# @!attribute name
|
|
64
|
+
# Name of the coupon
|
|
65
|
+
#
|
|
66
|
+
# @return [String]
|
|
67
|
+
required :name, String
|
|
68
|
+
|
|
69
|
+
# @!attribute percent_off
|
|
70
|
+
# Percentage discount off the original price
|
|
71
|
+
#
|
|
72
|
+
# @return [Float, nil]
|
|
73
|
+
required :percent_off, Float, api_name: :percentOff, nil?: true
|
|
74
|
+
|
|
75
|
+
# @!attribute source
|
|
76
|
+
# The source of the coupon
|
|
77
|
+
#
|
|
78
|
+
# @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Source, nil]
|
|
79
|
+
required :source, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Source }, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute status
|
|
82
|
+
# Current status of the coupon
|
|
83
|
+
#
|
|
84
|
+
# @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Status]
|
|
85
|
+
required :status, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Status }
|
|
86
|
+
|
|
87
|
+
# @!attribute type
|
|
88
|
+
# Type of the coupon (percentage or fixed amount)
|
|
89
|
+
#
|
|
90
|
+
# @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Type]
|
|
91
|
+
required :type, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Type }
|
|
92
|
+
|
|
93
|
+
# @!attribute updated_at
|
|
94
|
+
# Timestamp of when the record was last updated
|
|
95
|
+
#
|
|
96
|
+
# @return [Time]
|
|
97
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
98
|
+
|
|
99
|
+
# @!method initialize(id:, amounts_off:, billing_id:, billing_link_url:, created_at:, description:, duration_in_months:, name:, percent_off:, source:, status:, type:, updated_at:)
|
|
100
|
+
# @param id [String] The unique identifier for the entity
|
|
101
|
+
#
|
|
102
|
+
# @param amounts_off [Array<Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff>, nil] Fixed amount discounts in different currencies
|
|
103
|
+
#
|
|
104
|
+
# @param billing_id [String, nil] The unique identifier for the entity in the billing provider
|
|
105
|
+
#
|
|
106
|
+
# @param billing_link_url [String, nil] The URL to the entity in the billing provider
|
|
107
|
+
#
|
|
108
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
109
|
+
#
|
|
110
|
+
# @param description [String, nil] Description of the coupon
|
|
111
|
+
#
|
|
112
|
+
# @param duration_in_months [Float, nil] Duration of the coupon validity in months
|
|
113
|
+
#
|
|
114
|
+
# @param name [String] Name of the coupon
|
|
115
|
+
#
|
|
116
|
+
# @param percent_off [Float, nil] Percentage discount off the original price
|
|
117
|
+
#
|
|
118
|
+
# @param source [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Source, nil] The source of the coupon
|
|
119
|
+
#
|
|
120
|
+
# @param status [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Status] Current status of the coupon
|
|
121
|
+
#
|
|
122
|
+
# @param type [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Type] Type of the coupon (percentage or fixed amount)
|
|
123
|
+
#
|
|
124
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
125
|
+
|
|
126
|
+
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
127
|
+
# @!attribute amount
|
|
128
|
+
# The price amount
|
|
129
|
+
#
|
|
130
|
+
# @return [Float]
|
|
131
|
+
required :amount, Float
|
|
132
|
+
|
|
133
|
+
# @!attribute currency
|
|
134
|
+
# The price currency
|
|
135
|
+
#
|
|
136
|
+
# @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency, nil]
|
|
137
|
+
required :currency,
|
|
138
|
+
enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency },
|
|
139
|
+
nil?: true
|
|
140
|
+
|
|
141
|
+
# @!method initialize(amount:, currency:)
|
|
142
|
+
# @param amount [Float] The price amount
|
|
143
|
+
#
|
|
144
|
+
# @param currency [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency, nil] The price currency
|
|
145
|
+
|
|
146
|
+
# The price currency
|
|
147
|
+
#
|
|
148
|
+
# @see Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff#currency
|
|
149
|
+
module Currency
|
|
150
|
+
extend Stigg::Internal::Type::Enum
|
|
151
|
+
|
|
152
|
+
USD = :usd
|
|
153
|
+
AED = :aed
|
|
154
|
+
ALL = :all
|
|
155
|
+
AMD = :amd
|
|
156
|
+
ANG = :ang
|
|
157
|
+
AUD = :aud
|
|
158
|
+
AWG = :awg
|
|
159
|
+
AZN = :azn
|
|
160
|
+
BAM = :bam
|
|
161
|
+
BBD = :bbd
|
|
162
|
+
BDT = :bdt
|
|
163
|
+
BGN = :bgn
|
|
164
|
+
BIF = :bif
|
|
165
|
+
BMD = :bmd
|
|
166
|
+
BND = :bnd
|
|
167
|
+
BSD = :bsd
|
|
168
|
+
BWP = :bwp
|
|
169
|
+
BYN = :byn
|
|
170
|
+
BZD = :bzd
|
|
171
|
+
BRL = :brl
|
|
172
|
+
CAD = :cad
|
|
173
|
+
CDF = :cdf
|
|
174
|
+
CHF = :chf
|
|
175
|
+
CNY = :cny
|
|
176
|
+
CZK = :czk
|
|
177
|
+
DKK = :dkk
|
|
178
|
+
DOP = :dop
|
|
179
|
+
DZD = :dzd
|
|
180
|
+
EGP = :egp
|
|
181
|
+
ETB = :etb
|
|
182
|
+
EUR = :eur
|
|
183
|
+
FJD = :fjd
|
|
184
|
+
GBP = :gbp
|
|
185
|
+
GEL = :gel
|
|
186
|
+
GIP = :gip
|
|
187
|
+
GMD = :gmd
|
|
188
|
+
GYD = :gyd
|
|
189
|
+
HKD = :hkd
|
|
190
|
+
HRK = :hrk
|
|
191
|
+
HTG = :htg
|
|
192
|
+
IDR = :idr
|
|
193
|
+
ILS = :ils
|
|
194
|
+
INR = :inr
|
|
195
|
+
ISK = :isk
|
|
196
|
+
JMD = :jmd
|
|
197
|
+
JPY = :jpy
|
|
198
|
+
KES = :kes
|
|
199
|
+
KGS = :kgs
|
|
200
|
+
KHR = :khr
|
|
201
|
+
KMF = :kmf
|
|
202
|
+
KRW = :krw
|
|
203
|
+
KYD = :kyd
|
|
204
|
+
KZT = :kzt
|
|
205
|
+
LBP = :lbp
|
|
206
|
+
LKR = :lkr
|
|
207
|
+
LRD = :lrd
|
|
208
|
+
LSL = :lsl
|
|
209
|
+
MAD = :mad
|
|
210
|
+
MDL = :mdl
|
|
211
|
+
MGA = :mga
|
|
212
|
+
MKD = :mkd
|
|
213
|
+
MMK = :mmk
|
|
214
|
+
MNT = :mnt
|
|
215
|
+
MOP = :mop
|
|
216
|
+
MRO = :mro
|
|
217
|
+
MVR = :mvr
|
|
218
|
+
MWK = :mwk
|
|
219
|
+
MXN = :mxn
|
|
220
|
+
MYR = :myr
|
|
221
|
+
MZN = :mzn
|
|
222
|
+
NAD = :nad
|
|
223
|
+
NGN = :ngn
|
|
224
|
+
NOK = :nok
|
|
225
|
+
NPR = :npr
|
|
226
|
+
NZD = :nzd
|
|
227
|
+
PGK = :pgk
|
|
228
|
+
PHP = :php
|
|
229
|
+
PKR = :pkr
|
|
230
|
+
PLN = :pln
|
|
231
|
+
QAR = :qar
|
|
232
|
+
RON = :ron
|
|
233
|
+
RSD = :rsd
|
|
234
|
+
RUB = :rub
|
|
235
|
+
RWF = :rwf
|
|
236
|
+
SAR = :sar
|
|
237
|
+
SBD = :sbd
|
|
238
|
+
SCR = :scr
|
|
239
|
+
SEK = :sek
|
|
240
|
+
SGD = :sgd
|
|
241
|
+
SLE = :sle
|
|
242
|
+
SLL = :sll
|
|
243
|
+
SOS = :sos
|
|
244
|
+
SZL = :szl
|
|
245
|
+
THB = :thb
|
|
246
|
+
TJS = :tjs
|
|
247
|
+
TOP = :top
|
|
248
|
+
TRY = :try
|
|
249
|
+
TTD = :ttd
|
|
250
|
+
TZS = :tzs
|
|
251
|
+
UAH = :uah
|
|
252
|
+
UZS = :uzs
|
|
253
|
+
VND = :vnd
|
|
254
|
+
VUV = :vuv
|
|
255
|
+
WST = :wst
|
|
256
|
+
XAF = :xaf
|
|
257
|
+
XCD = :xcd
|
|
258
|
+
YER = :yer
|
|
259
|
+
ZAR = :zar
|
|
260
|
+
ZMW = :zmw
|
|
261
|
+
CLP = :clp
|
|
262
|
+
DJF = :djf
|
|
263
|
+
GNF = :gnf
|
|
264
|
+
UGX = :ugx
|
|
265
|
+
PYG = :pyg
|
|
266
|
+
XOF = :xof
|
|
267
|
+
XPF = :xpf
|
|
268
|
+
|
|
269
|
+
# @!method self.values
|
|
270
|
+
# @return [Array<Symbol>]
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# The source of the coupon
|
|
275
|
+
#
|
|
276
|
+
# @see Stigg::Models::V1::CouponRetrieveResponse::Data#source
|
|
277
|
+
module Source
|
|
278
|
+
extend Stigg::Internal::Type::Enum
|
|
279
|
+
|
|
280
|
+
STIGG = :STIGG
|
|
281
|
+
STIGG_ADHOC = :STIGG_ADHOC
|
|
282
|
+
STRIPE = :STRIPE
|
|
283
|
+
|
|
284
|
+
# @!method self.values
|
|
285
|
+
# @return [Array<Symbol>]
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Current status of the coupon
|
|
289
|
+
#
|
|
290
|
+
# @see Stigg::Models::V1::CouponRetrieveResponse::Data#status
|
|
291
|
+
module Status
|
|
292
|
+
extend Stigg::Internal::Type::Enum
|
|
293
|
+
|
|
294
|
+
ACTIVE = :ACTIVE
|
|
295
|
+
ARCHIVED = :ARCHIVED
|
|
296
|
+
|
|
297
|
+
# @!method self.values
|
|
298
|
+
# @return [Array<Symbol>]
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Type of the coupon (percentage or fixed amount)
|
|
302
|
+
#
|
|
303
|
+
# @see Stigg::Models::V1::CouponRetrieveResponse::Data#type
|
|
304
|
+
module Type
|
|
305
|
+
extend Stigg::Internal::Type::Enum
|
|
306
|
+
|
|
307
|
+
FIXED = :FIXED
|
|
308
|
+
PERCENTAGE = :PERCENTAGE
|
|
309
|
+
|
|
310
|
+
# @!method self.values
|
|
311
|
+
# @return [Array<Symbol>]
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Customers#archive
|
|
7
|
+
class CustomerArchiveParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|