remove new model in favor of making self hosted confirm payment method request more generic.
Этот коммит содержится в:
@@ -30,12 +30,8 @@ type SelfHostedCustomerForm struct {
|
|||||||
|
|
||||||
type SelfHostedConfirmPaymentMethodRequest struct {
|
type SelfHostedConfirmPaymentMethodRequest struct {
|
||||||
StripeSetupIntentID string `json:"stripe_setup_intent_id"`
|
StripeSetupIntentID string `json:"stripe_setup_intent_id"`
|
||||||
Subscription CreateSubscriptionRequest `json:"subscription"`
|
Subscription *CreateSubscriptionRequest `json:"subscription"`
|
||||||
}
|
ExpandRequest *SelfHostedExpansionRequest `json:"expand_request"`
|
||||||
|
|
||||||
type SelfHostedExpansionConfirmPaymentMethodRequest struct {
|
|
||||||
StripeSetupIntentID string `json:"stripe_setup_intent_id"`
|
|
||||||
ExpandRequest SelfHostedExpansionRequest `json:"expand_request"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SelfHostedSignupPaymentResponse contains feels needed for self hosted signup to confirm payment and receive license.
|
// SelfHostedSignupPaymentResponse contains feels needed for self hosted signup to confirm payment and receive license.
|
||||||
|
|||||||
@@ -89,11 +89,11 @@ func (_m *CloudInterface) ConfirmCustomerPayment(userID string, confirmRequest *
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ConfirmSelfHostedExpansion provides a mock function with given fields: req, requesterEmail
|
// ConfirmSelfHostedExpansion provides a mock function with given fields: req, requesterEmail
|
||||||
func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedExpansionConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
|
func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
|
||||||
ret := _m.Called(req, requesterEmail)
|
ret := _m.Called(req, requesterEmail)
|
||||||
|
|
||||||
var r0 *model.SelfHostedSignupConfirmResponse
|
var r0 *model.SelfHostedSignupConfirmResponse
|
||||||
if rf, ok := ret.Get(0).(func(model.SelfHostedExpansionConfirmPaymentMethodRequest, string) *model.SelfHostedSignupConfirmResponse); ok {
|
if rf, ok := ret.Get(0).(func(model.SelfHostedConfirmPaymentMethodRequest, string) *model.SelfHostedSignupConfirmResponse); ok {
|
||||||
r0 = rf(req, requesterEmail)
|
r0 = rf(req, requesterEmail)
|
||||||
} else {
|
} else {
|
||||||
if ret.Get(0) != nil {
|
if ret.Get(0) != nil {
|
||||||
@@ -102,7 +102,7 @@ func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedExpansi
|
|||||||
}
|
}
|
||||||
|
|
||||||
var r1 error
|
var r1 error
|
||||||
if rf, ok := ret.Get(1).(func(model.SelfHostedExpansionConfirmPaymentMethodRequest, string) error); ok {
|
if rf, ok := ret.Get(1).(func(model.SelfHostedConfirmPaymentMethodRequest, string) error); ok {
|
||||||
r1 = rf(req, requesterEmail)
|
r1 = rf(req, requesterEmail)
|
||||||
} else {
|
} else {
|
||||||
r1 = ret.Error(1)
|
r1 = ret.Error(1)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user