debian-mirror-gitlab/lib/gitlab/subscription_portal.rb

33 lines
1.2 KiB
Ruby
Raw Permalink Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module Gitlab
module SubscriptionPortal
2022-07-16 23:28:13 +05:30
def self.payment_validation_form_id
"payment_method_validation"
end
2022-10-11 01:57:18 +05:30
def self.registration_validation_form_id
"cc_registration_validation"
end
2021-11-11 11:23:49 +05:30
def self.subscription_portal_admin_email
ENV.fetch('SUBSCRIPTION_PORTAL_ADMIN_EMAIL', 'gl_com_api@gitlab.com')
end
def self.subscription_portal_admin_token
ENV.fetch('SUBSCRIPTION_PORTAL_ADMIN_TOKEN', 'customer_admin_token')
end
2022-01-26 12:08:38 +05:30
def self.renewal_service_email
2022-07-16 23:28:13 +05:30
'renewals-service@customers.gitlab.com'
2022-01-26 12:08:38 +05:30
end
2021-01-03 14:25:43 +05:30
end
end
2021-04-29 21:17:54 +05:30
2021-06-08 01:23:25 +05:30
Gitlab::SubscriptionPortal.prepend_mod
2022-07-16 23:28:13 +05:30
Gitlab::SubscriptionPortal::PAYMENT_VALIDATION_FORM_ID = Gitlab::SubscriptionPortal.payment_validation_form_id.freeze
2022-01-26 12:08:38 +05:30
Gitlab::SubscriptionPortal::RENEWAL_SERVICE_EMAIL = Gitlab::SubscriptionPortal.renewal_service_email.freeze
2022-10-11 01:57:18 +05:30
Gitlab::SubscriptionPortal::REGISTRATION_VALIDATION_FORM_ID = Gitlab::SubscriptionPortal.registration_validation_form_id.freeze
2023-07-09 08:55:56 +05:30
Gitlab::SubscriptionPortal::SUBSCRIPTION_PORTAL_ADMIN_EMAIL = Gitlab::SubscriptionPortal.subscription_portal_admin_email.freeze
Gitlab::SubscriptionPortal::SUBSCRIPTION_PORTAL_ADMIN_TOKEN = Gitlab::SubscriptionPortal.subscription_portal_admin_token.freeze