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,107 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Customers#update
|
|
7
|
+
class CustomerUpdateParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute coupon_id
|
|
12
|
+
# Customer level coupon
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :coupon_id, String, api_name: :couponId, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute email
|
|
18
|
+
# The email of the customer
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :email, String, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute integrations
|
|
24
|
+
# List of integrations
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<Stigg::Models::V1::CustomerUpdateParams::Integration>, nil]
|
|
27
|
+
optional :integrations,
|
|
28
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::CustomerUpdateParams::Integration] }
|
|
29
|
+
|
|
30
|
+
# @!attribute metadata
|
|
31
|
+
# Additional metadata
|
|
32
|
+
#
|
|
33
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
34
|
+
optional :metadata, Stigg::Internal::Type::HashOf[String]
|
|
35
|
+
|
|
36
|
+
# @!attribute name
|
|
37
|
+
# The name of the customer
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :name, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(coupon_id: nil, email: nil, integrations: nil, metadata: nil, name: nil, request_options: {})
|
|
43
|
+
# @param coupon_id [String, nil] Customer level coupon
|
|
44
|
+
#
|
|
45
|
+
# @param email [String, nil] The email of the customer
|
|
46
|
+
#
|
|
47
|
+
# @param integrations [Array<Stigg::Models::V1::CustomerUpdateParams::Integration>] List of integrations
|
|
48
|
+
#
|
|
49
|
+
# @param metadata [Hash{Symbol=>String}] Additional metadata
|
|
50
|
+
#
|
|
51
|
+
# @param name [String, nil] The name of the customer
|
|
52
|
+
#
|
|
53
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
54
|
+
|
|
55
|
+
class Integration < Stigg::Internal::Type::BaseModel
|
|
56
|
+
# @!attribute id
|
|
57
|
+
# Integration details
|
|
58
|
+
#
|
|
59
|
+
# @return [String]
|
|
60
|
+
required :id, String
|
|
61
|
+
|
|
62
|
+
# @!attribute synced_entity_id
|
|
63
|
+
# Synced entity id
|
|
64
|
+
#
|
|
65
|
+
# @return [String, nil]
|
|
66
|
+
required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
|
|
67
|
+
|
|
68
|
+
# @!attribute vendor_identifier
|
|
69
|
+
# The vendor identifier of integration
|
|
70
|
+
#
|
|
71
|
+
# @return [Symbol, Stigg::Models::V1::CustomerUpdateParams::Integration::VendorIdentifier]
|
|
72
|
+
required :vendor_identifier,
|
|
73
|
+
enum: -> { Stigg::V1::CustomerUpdateParams::Integration::VendorIdentifier },
|
|
74
|
+
api_name: :vendorIdentifier
|
|
75
|
+
|
|
76
|
+
# @!method initialize(id:, synced_entity_id:, vendor_identifier:)
|
|
77
|
+
# @param id [String] Integration details
|
|
78
|
+
#
|
|
79
|
+
# @param synced_entity_id [String, nil] Synced entity id
|
|
80
|
+
#
|
|
81
|
+
# @param vendor_identifier [Symbol, Stigg::Models::V1::CustomerUpdateParams::Integration::VendorIdentifier] The vendor identifier of integration
|
|
82
|
+
|
|
83
|
+
# The vendor identifier of integration
|
|
84
|
+
#
|
|
85
|
+
# @see Stigg::Models::V1::CustomerUpdateParams::Integration#vendor_identifier
|
|
86
|
+
module VendorIdentifier
|
|
87
|
+
extend Stigg::Internal::Type::Enum
|
|
88
|
+
|
|
89
|
+
AUTH0 = :AUTH0
|
|
90
|
+
ZUORA = :ZUORA
|
|
91
|
+
STRIPE = :STRIPE
|
|
92
|
+
HUBSPOT = :HUBSPOT
|
|
93
|
+
AWS_MARKETPLACE = :AWS_MARKETPLACE
|
|
94
|
+
SNOWFLAKE = :SNOWFLAKE
|
|
95
|
+
SALESFORCE = :SALESFORCE
|
|
96
|
+
BIG_QUERY = :BIG_QUERY
|
|
97
|
+
OPEN_FGA = :OPEN_FGA
|
|
98
|
+
APP_STORE = :APP_STORE
|
|
99
|
+
|
|
100
|
+
# @!method self.values
|
|
101
|
+
# @return [Array<Symbol>]
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PaymentMethod#attach
|
|
8
|
+
class PaymentMethodAttachParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute integration_id
|
|
13
|
+
# Integration details
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :integration_id, String, api_name: :integrationId
|
|
17
|
+
|
|
18
|
+
# @!attribute payment_method_id
|
|
19
|
+
# Billing provider payment method id
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :payment_method_id, String, api_name: :paymentMethodId
|
|
23
|
+
|
|
24
|
+
# @!attribute vendor_identifier
|
|
25
|
+
# The vendor identifier of integration
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::VendorIdentifier]
|
|
28
|
+
required :vendor_identifier,
|
|
29
|
+
enum: -> { Stigg::V1::Customers::PaymentMethodAttachParams::VendorIdentifier },
|
|
30
|
+
api_name: :vendorIdentifier
|
|
31
|
+
|
|
32
|
+
# @!attribute billing_currency
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::BillingCurrency, nil]
|
|
35
|
+
optional :billing_currency,
|
|
36
|
+
enum: -> { Stigg::V1::Customers::PaymentMethodAttachParams::BillingCurrency },
|
|
37
|
+
api_name: :billingCurrency,
|
|
38
|
+
nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(integration_id:, payment_method_id:, vendor_identifier:, billing_currency: nil, request_options: {})
|
|
41
|
+
# @param integration_id [String] Integration details
|
|
42
|
+
#
|
|
43
|
+
# @param payment_method_id [String] Billing provider payment method id
|
|
44
|
+
#
|
|
45
|
+
# @param vendor_identifier [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::VendorIdentifier] The vendor identifier of integration
|
|
46
|
+
#
|
|
47
|
+
# @param billing_currency [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::BillingCurrency, nil]
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
+
|
|
51
|
+
# The vendor identifier of integration
|
|
52
|
+
module VendorIdentifier
|
|
53
|
+
extend Stigg::Internal::Type::Enum
|
|
54
|
+
|
|
55
|
+
AUTH0 = :AUTH0
|
|
56
|
+
ZUORA = :ZUORA
|
|
57
|
+
STRIPE = :STRIPE
|
|
58
|
+
HUBSPOT = :HUBSPOT
|
|
59
|
+
AWS_MARKETPLACE = :AWS_MARKETPLACE
|
|
60
|
+
SNOWFLAKE = :SNOWFLAKE
|
|
61
|
+
SALESFORCE = :SALESFORCE
|
|
62
|
+
BIG_QUERY = :BIG_QUERY
|
|
63
|
+
OPEN_FGA = :OPEN_FGA
|
|
64
|
+
APP_STORE = :APP_STORE
|
|
65
|
+
|
|
66
|
+
# @!method self.values
|
|
67
|
+
# @return [Array<Symbol>]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
module BillingCurrency
|
|
71
|
+
extend Stigg::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
USD = :usd
|
|
74
|
+
AED = :aed
|
|
75
|
+
ALL = :all
|
|
76
|
+
AMD = :amd
|
|
77
|
+
ANG = :ang
|
|
78
|
+
AUD = :aud
|
|
79
|
+
AWG = :awg
|
|
80
|
+
AZN = :azn
|
|
81
|
+
BAM = :bam
|
|
82
|
+
BBD = :bbd
|
|
83
|
+
BDT = :bdt
|
|
84
|
+
BGN = :bgn
|
|
85
|
+
BIF = :bif
|
|
86
|
+
BMD = :bmd
|
|
87
|
+
BND = :bnd
|
|
88
|
+
BSD = :bsd
|
|
89
|
+
BWP = :bwp
|
|
90
|
+
BYN = :byn
|
|
91
|
+
BZD = :bzd
|
|
92
|
+
BRL = :brl
|
|
93
|
+
CAD = :cad
|
|
94
|
+
CDF = :cdf
|
|
95
|
+
CHF = :chf
|
|
96
|
+
CNY = :cny
|
|
97
|
+
CZK = :czk
|
|
98
|
+
DKK = :dkk
|
|
99
|
+
DOP = :dop
|
|
100
|
+
DZD = :dzd
|
|
101
|
+
EGP = :egp
|
|
102
|
+
ETB = :etb
|
|
103
|
+
EUR = :eur
|
|
104
|
+
FJD = :fjd
|
|
105
|
+
GBP = :gbp
|
|
106
|
+
GEL = :gel
|
|
107
|
+
GIP = :gip
|
|
108
|
+
GMD = :gmd
|
|
109
|
+
GYD = :gyd
|
|
110
|
+
HKD = :hkd
|
|
111
|
+
HRK = :hrk
|
|
112
|
+
HTG = :htg
|
|
113
|
+
IDR = :idr
|
|
114
|
+
ILS = :ils
|
|
115
|
+
INR = :inr
|
|
116
|
+
ISK = :isk
|
|
117
|
+
JMD = :jmd
|
|
118
|
+
JPY = :jpy
|
|
119
|
+
KES = :kes
|
|
120
|
+
KGS = :kgs
|
|
121
|
+
KHR = :khr
|
|
122
|
+
KMF = :kmf
|
|
123
|
+
KRW = :krw
|
|
124
|
+
KYD = :kyd
|
|
125
|
+
KZT = :kzt
|
|
126
|
+
LBP = :lbp
|
|
127
|
+
LKR = :lkr
|
|
128
|
+
LRD = :lrd
|
|
129
|
+
LSL = :lsl
|
|
130
|
+
MAD = :mad
|
|
131
|
+
MDL = :mdl
|
|
132
|
+
MGA = :mga
|
|
133
|
+
MKD = :mkd
|
|
134
|
+
MMK = :mmk
|
|
135
|
+
MNT = :mnt
|
|
136
|
+
MOP = :mop
|
|
137
|
+
MRO = :mro
|
|
138
|
+
MVR = :mvr
|
|
139
|
+
MWK = :mwk
|
|
140
|
+
MXN = :mxn
|
|
141
|
+
MYR = :myr
|
|
142
|
+
MZN = :mzn
|
|
143
|
+
NAD = :nad
|
|
144
|
+
NGN = :ngn
|
|
145
|
+
NOK = :nok
|
|
146
|
+
NPR = :npr
|
|
147
|
+
NZD = :nzd
|
|
148
|
+
PGK = :pgk
|
|
149
|
+
PHP = :php
|
|
150
|
+
PKR = :pkr
|
|
151
|
+
PLN = :pln
|
|
152
|
+
QAR = :qar
|
|
153
|
+
RON = :ron
|
|
154
|
+
RSD = :rsd
|
|
155
|
+
RUB = :rub
|
|
156
|
+
RWF = :rwf
|
|
157
|
+
SAR = :sar
|
|
158
|
+
SBD = :sbd
|
|
159
|
+
SCR = :scr
|
|
160
|
+
SEK = :sek
|
|
161
|
+
SGD = :sgd
|
|
162
|
+
SLE = :sle
|
|
163
|
+
SLL = :sll
|
|
164
|
+
SOS = :sos
|
|
165
|
+
SZL = :szl
|
|
166
|
+
THB = :thb
|
|
167
|
+
TJS = :tjs
|
|
168
|
+
TOP = :top
|
|
169
|
+
TRY = :try
|
|
170
|
+
TTD = :ttd
|
|
171
|
+
TZS = :tzs
|
|
172
|
+
UAH = :uah
|
|
173
|
+
UZS = :uzs
|
|
174
|
+
VND = :vnd
|
|
175
|
+
VUV = :vuv
|
|
176
|
+
WST = :wst
|
|
177
|
+
XAF = :xaf
|
|
178
|
+
XCD = :xcd
|
|
179
|
+
YER = :yer
|
|
180
|
+
ZAR = :zar
|
|
181
|
+
ZMW = :zmw
|
|
182
|
+
CLP = :clp
|
|
183
|
+
DJF = :djf
|
|
184
|
+
GNF = :gnf
|
|
185
|
+
UGX = :ugx
|
|
186
|
+
PYG = :pyg
|
|
187
|
+
XOF = :xof
|
|
188
|
+
XPF = :xpf
|
|
189
|
+
|
|
190
|
+
# @!method self.values
|
|
191
|
+
# @return [Array<Symbol>]
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::PaymentMethod#detach
|
|
8
|
+
class PaymentMethodDetachParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!method initialize(request_options: {})
|
|
13
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1::Customers::Promotional#create
|
|
8
|
+
class PromotionalCreateParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute promotional_entitlements
|
|
13
|
+
# Promotional entitlements to grant
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement>]
|
|
16
|
+
required :promotional_entitlements,
|
|
17
|
+
-> {
|
|
18
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement]
|
|
19
|
+
},
|
|
20
|
+
api_name: :promotionalEntitlements
|
|
21
|
+
|
|
22
|
+
# @!method initialize(promotional_entitlements:, request_options: {})
|
|
23
|
+
# @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement>] Promotional entitlements to grant
|
|
24
|
+
#
|
|
25
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
|
|
27
|
+
class PromotionalEntitlement < Stigg::Internal::Type::BaseModel
|
|
28
|
+
# @!attribute custom_end_date
|
|
29
|
+
# The custom end date of the promotional entitlement
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
required :custom_end_date, Time, api_name: :customEndDate, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute enum_values
|
|
35
|
+
# The enum values of the entitlement
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<String>, nil]
|
|
38
|
+
required :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute feature_id
|
|
41
|
+
# The unique identifier of the entitlement feature
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :feature_id, String, api_name: :featureId
|
|
45
|
+
|
|
46
|
+
# @!attribute has_soft_limit
|
|
47
|
+
# Whether the entitlement has a soft limit
|
|
48
|
+
#
|
|
49
|
+
# @return [Boolean, nil]
|
|
50
|
+
required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute has_unlimited_usage
|
|
53
|
+
# Whether the entitlement has an unlimited usage
|
|
54
|
+
#
|
|
55
|
+
# @return [Boolean, nil]
|
|
56
|
+
required :has_unlimited_usage,
|
|
57
|
+
Stigg::Internal::Type::Boolean,
|
|
58
|
+
api_name: :hasUnlimitedUsage,
|
|
59
|
+
nil?: true
|
|
60
|
+
|
|
61
|
+
# @!attribute is_visible
|
|
62
|
+
# Whether the entitlement is visible
|
|
63
|
+
#
|
|
64
|
+
# @return [Boolean, nil]
|
|
65
|
+
required :is_visible, Stigg::Internal::Type::Boolean, api_name: :isVisible, nil?: true
|
|
66
|
+
|
|
67
|
+
# @!attribute monthly_reset_period_configuration
|
|
68
|
+
# The monthly reset period configuration of the entitlement, defined when reset
|
|
69
|
+
# period is monthly
|
|
70
|
+
#
|
|
71
|
+
# @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
|
|
72
|
+
required :monthly_reset_period_configuration,
|
|
73
|
+
-> {
|
|
74
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
|
|
75
|
+
},
|
|
76
|
+
api_name: :monthlyResetPeriodConfiguration,
|
|
77
|
+
nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute period
|
|
80
|
+
# The grant period of the promotional entitlement
|
|
81
|
+
#
|
|
82
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period]
|
|
83
|
+
required :period,
|
|
84
|
+
enum: -> { Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period }
|
|
85
|
+
|
|
86
|
+
# @!attribute reset_period
|
|
87
|
+
# The reset period of the entitlement
|
|
88
|
+
#
|
|
89
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil]
|
|
90
|
+
required :reset_period,
|
|
91
|
+
enum: -> {
|
|
92
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod
|
|
93
|
+
},
|
|
94
|
+
api_name: :resetPeriod,
|
|
95
|
+
nil?: true
|
|
96
|
+
|
|
97
|
+
# @!attribute usage_limit
|
|
98
|
+
# The usage limit of the entitlement
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer, nil]
|
|
101
|
+
required :usage_limit, Integer, api_name: :usageLimit, nil?: true
|
|
102
|
+
|
|
103
|
+
# @!attribute weekly_reset_period_configuration
|
|
104
|
+
# The weekly reset period configuration of the entitlement, defined when reset
|
|
105
|
+
# period is weekly
|
|
106
|
+
#
|
|
107
|
+
# @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
|
|
108
|
+
required :weekly_reset_period_configuration,
|
|
109
|
+
-> {
|
|
110
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
|
|
111
|
+
},
|
|
112
|
+
api_name: :weeklyResetPeriodConfiguration,
|
|
113
|
+
nil?: true
|
|
114
|
+
|
|
115
|
+
# @!attribute yearly_reset_period_configuration
|
|
116
|
+
# The yearly reset period configuration of the entitlement, defined when reset
|
|
117
|
+
# period is yearly
|
|
118
|
+
#
|
|
119
|
+
# @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
|
|
120
|
+
required :yearly_reset_period_configuration,
|
|
121
|
+
-> {
|
|
122
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
|
|
123
|
+
},
|
|
124
|
+
api_name: :yearlyResetPeriodConfiguration,
|
|
125
|
+
nil?: true
|
|
126
|
+
|
|
127
|
+
# @!method initialize(custom_end_date:, enum_values:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, monthly_reset_period_configuration:, period:, reset_period:, usage_limit:, weekly_reset_period_configuration:, yearly_reset_period_configuration:)
|
|
128
|
+
# Some parameter documentations has been truncated, see
|
|
129
|
+
# {Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement}
|
|
130
|
+
# for more details.
|
|
131
|
+
#
|
|
132
|
+
# @param custom_end_date [Time, nil] The custom end date of the promotional entitlement
|
|
133
|
+
#
|
|
134
|
+
# @param enum_values [Array<String>, nil] The enum values of the entitlement
|
|
135
|
+
#
|
|
136
|
+
# @param feature_id [String] The unique identifier of the entitlement feature
|
|
137
|
+
#
|
|
138
|
+
# @param has_soft_limit [Boolean, nil] Whether the entitlement has a soft limit
|
|
139
|
+
#
|
|
140
|
+
# @param has_unlimited_usage [Boolean, nil] Whether the entitlement has an unlimited usage
|
|
141
|
+
#
|
|
142
|
+
# @param is_visible [Boolean, nil] Whether the entitlement is visible
|
|
143
|
+
#
|
|
144
|
+
# @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
|
|
145
|
+
#
|
|
146
|
+
# @param period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
|
|
147
|
+
#
|
|
148
|
+
# @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
|
|
149
|
+
#
|
|
150
|
+
# @param usage_limit [Integer, nil] The usage limit of the entitlement
|
|
151
|
+
#
|
|
152
|
+
# @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
|
|
153
|
+
#
|
|
154
|
+
# @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
|
|
155
|
+
|
|
156
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#monthly_reset_period_configuration
|
|
157
|
+
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
158
|
+
# @!attribute according_to
|
|
159
|
+
# Monthly reset period according to
|
|
160
|
+
#
|
|
161
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
162
|
+
required :according_to,
|
|
163
|
+
enum: -> {
|
|
164
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
165
|
+
},
|
|
166
|
+
api_name: :accordingTo
|
|
167
|
+
|
|
168
|
+
# @!method initialize(according_to:)
|
|
169
|
+
# The monthly reset period configuration of the entitlement, defined when reset
|
|
170
|
+
# period is monthly
|
|
171
|
+
#
|
|
172
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Monthly reset period according to
|
|
173
|
+
|
|
174
|
+
# Monthly reset period according to
|
|
175
|
+
#
|
|
176
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
|
|
177
|
+
module AccordingTo
|
|
178
|
+
extend Stigg::Internal::Type::Enum
|
|
179
|
+
|
|
180
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
181
|
+
START_OF_THE_MONTH = :StartOfTheMonth
|
|
182
|
+
|
|
183
|
+
# @!method self.values
|
|
184
|
+
# @return [Array<Symbol>]
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# The grant period of the promotional entitlement
|
|
189
|
+
#
|
|
190
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#period
|
|
191
|
+
module Period
|
|
192
|
+
extend Stigg::Internal::Type::Enum
|
|
193
|
+
|
|
194
|
+
PERIOD_1_WEEK = :"1 week"
|
|
195
|
+
PERIOD_1_MONTH = :"1 month"
|
|
196
|
+
PERIOD_6_MONTH = :"6 month"
|
|
197
|
+
PERIOD_1_YEAR = :"1 year"
|
|
198
|
+
LIFETIME = :lifetime
|
|
199
|
+
CUSTOM = :custom
|
|
200
|
+
|
|
201
|
+
# @!method self.values
|
|
202
|
+
# @return [Array<Symbol>]
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# The reset period of the entitlement
|
|
206
|
+
#
|
|
207
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#reset_period
|
|
208
|
+
module ResetPeriod
|
|
209
|
+
extend Stigg::Internal::Type::Enum
|
|
210
|
+
|
|
211
|
+
YEAR = :YEAR
|
|
212
|
+
MONTH = :MONTH
|
|
213
|
+
WEEK = :WEEK
|
|
214
|
+
DAY = :DAY
|
|
215
|
+
HOUR = :HOUR
|
|
216
|
+
|
|
217
|
+
# @!method self.values
|
|
218
|
+
# @return [Array<Symbol>]
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#weekly_reset_period_configuration
|
|
222
|
+
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
223
|
+
# @!attribute according_to
|
|
224
|
+
# Weekly reset period according to
|
|
225
|
+
#
|
|
226
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
227
|
+
required :according_to,
|
|
228
|
+
enum: -> {
|
|
229
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
230
|
+
},
|
|
231
|
+
api_name: :accordingTo
|
|
232
|
+
|
|
233
|
+
# @!method initialize(according_to:)
|
|
234
|
+
# The weekly reset period configuration of the entitlement, defined when reset
|
|
235
|
+
# period is weekly
|
|
236
|
+
#
|
|
237
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Weekly reset period according to
|
|
238
|
+
|
|
239
|
+
# Weekly reset period according to
|
|
240
|
+
#
|
|
241
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
|
|
242
|
+
module AccordingTo
|
|
243
|
+
extend Stigg::Internal::Type::Enum
|
|
244
|
+
|
|
245
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
246
|
+
EVERY_SUNDAY = :EverySunday
|
|
247
|
+
EVERY_MONDAY = :EveryMonday
|
|
248
|
+
EVERY_TUESDAY = :EveryTuesday
|
|
249
|
+
EVERY_WEDNESDAY = :EveryWednesday
|
|
250
|
+
EVERY_THURSDAY = :EveryThursday
|
|
251
|
+
EVERY_FRIDAY = :EveryFriday
|
|
252
|
+
EVERY_SATURDAY = :EverySaturday
|
|
253
|
+
|
|
254
|
+
# @!method self.values
|
|
255
|
+
# @return [Array<Symbol>]
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#yearly_reset_period_configuration
|
|
260
|
+
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
261
|
+
# @!attribute according_to
|
|
262
|
+
# Yearly reset period according to
|
|
263
|
+
#
|
|
264
|
+
# @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
265
|
+
required :according_to,
|
|
266
|
+
enum: -> {
|
|
267
|
+
Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
268
|
+
},
|
|
269
|
+
api_name: :accordingTo
|
|
270
|
+
|
|
271
|
+
# @!method initialize(according_to:)
|
|
272
|
+
# The yearly reset period configuration of the entitlement, defined when reset
|
|
273
|
+
# period is yearly
|
|
274
|
+
#
|
|
275
|
+
# @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Yearly reset period according to
|
|
276
|
+
|
|
277
|
+
# Yearly reset period according to
|
|
278
|
+
#
|
|
279
|
+
# @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
|
|
280
|
+
module AccordingTo
|
|
281
|
+
extend Stigg::Internal::Type::Enum
|
|
282
|
+
|
|
283
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
284
|
+
|
|
285
|
+
# @!method self.values
|
|
286
|
+
# @return [Array<Symbol>]
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|