Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MinimalCreateProfileInputTemplate = billing.CreateProfileInput{ Name: "Awesome Profile", Default: true, WorkflowConfig: billing.WorkflowConfig{ Collection: billing.CollectionConfig{ Alignment: billing.AlignmentKindSubscription, Interval: lo.Must(datex.ISOString("PT2H").Parse()), }, Invoicing: billing.InvoicingConfig{ AutoAdvance: true, DraftPeriod: lo.Must(datex.ISOString("P1D").Parse()), DueAfter: lo.Must(datex.ISOString("P1W").Parse()), }, Payment: billing.PaymentConfig{ CollectionMethod: billing.CollectionMethodChargeAutomatically, }, }, Supplier: billing.SupplierContact{ Name: "Awesome Supplier", Address: models.Address{ Country: lo.ToPtr(models.CountryCode("US")), }, }, Apps: billing.CreateProfileAppsInput{ Invoicing: billing.AppReference{ Type: appentitybase.AppTypeSandbox, }, Payment: billing.AppReference{ Type: appentitybase.AppTypeSandbox, }, Tax: billing.AppReference{ Type: appentitybase.AppTypeSandbox, }, }, }
Functions ¶
This section is empty.
Types ¶
type BaseSuite ¶
type BaseSuite struct {
suite.Suite
*require.Assertions
TestDB *testutils.TestDB
DBClient *db.Client
BillingAdapter billing.Adapter
BillingService billing.Service
InvoiceCalculator *invoicecalc.MockableInvoiceCalculator
FeatureService feature.FeatureConnector
FeatureRepo feature.FeatureRepo
MeterRepo *meter.InMemoryRepository
MockStreamingConnector *streamingtestutils.MockStreamingConnector
CustomerService customer.Service
AppService app.Service
SandboxApp *appsandbox.MockableFactory
}
func (*BaseSuite) InstallSandboxApp ¶
func (*BaseSuite) SetupSuite ¶
func (s *BaseSuite) SetupSuite()
func (*BaseSuite) TearDownSuite ¶
func (s *BaseSuite) TearDownSuite()
Click to show internal directories.
Click to hide internal directories.