/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.24.35 * User agent: apibuilder app.apibuilder.io/flow/billing-debug/0.24.35/play_2_6_mock_client */ package io.flow.billing.debug.v0.mock { trait Client extends io.flow.billing.debug.v0.interfaces.Client { val baseUrl: String = "http://mock.localhost" override def channelDebugTransactions: io.flow.billing.debug.v0.ChannelDebugTransactions = MockChannelDebugTransactionsImpl override def debugOrders: io.flow.billing.debug.v0.DebugOrders = MockDebugOrdersImpl override def debugOrderTransactions: io.flow.billing.debug.v0.DebugOrderTransactions = MockDebugOrderTransactionsImpl override def internalDebugTransactions: io.flow.billing.debug.v0.InternalDebugTransactions = MockInternalDebugTransactionsImpl override def organizationDebugTransactions: io.flow.billing.debug.v0.OrganizationDebugTransactions = MockOrganizationDebugTransactionsImpl override def tasks: io.flow.billing.debug.v0.Tasks = MockTasksImpl } object MockChannelDebugTransactionsImpl extends MockChannelDebugTransactions trait MockChannelDebugTransactions extends io.flow.billing.debug.v0.ChannelDebugTransactions { def post( channelId: String, debugOrderTransactionForm: io.flow.billing.debug.v0.models.DebugOrderTransactionForm, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[Seq[io.flow.billing.debug.v0.models.ChannelDebugTransaction]] = scala.concurrent.Future.successful { Nil } } object MockDebugOrdersImpl extends MockDebugOrders trait MockDebugOrders extends io.flow.billing.debug.v0.DebugOrders { def post( debugOrderTransactionForm: io.flow.billing.debug.v0.models.DebugOrderTransactionForm, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[io.flow.billing.debug.v0.models.DebugOrder] = scala.concurrent.Future.successful { io.flow.billing.debug.v0.mock.Factories.makeDebugOrder() } } object MockDebugOrderTransactionsImpl extends MockDebugOrderTransactions trait MockDebugOrderTransactions extends io.flow.billing.debug.v0.DebugOrderTransactions { def post( debugOrderTransactionForm: io.flow.billing.debug.v0.models.DebugOrderTransactionForm, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[io.flow.billing.debug.v0.models.DebugOrderTransaction] = scala.concurrent.Future.successful { io.flow.billing.debug.v0.mock.Factories.makeDebugOrderTransaction() } } object MockInternalDebugTransactionsImpl extends MockInternalDebugTransactions trait MockInternalDebugTransactions extends io.flow.billing.debug.v0.InternalDebugTransactions { def post( debugOrderTransactionForm: io.flow.billing.debug.v0.models.DebugOrderTransactionForm, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[Seq[io.flow.billing.debug.v0.models.InternalDebugTransaction]] = scala.concurrent.Future.successful { Nil } } object MockOrganizationDebugTransactionsImpl extends MockOrganizationDebugTransactions trait MockOrganizationDebugTransactions extends io.flow.billing.debug.v0.OrganizationDebugTransactions { def post( organization: String, debugOrderTransactionForm: io.flow.billing.debug.v0.models.DebugOrderTransactionForm, requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[Seq[io.flow.billing.debug.v0.models.OrganizationDebugTransaction]] = scala.concurrent.Future.successful { Nil } } object MockTasksImpl extends MockTasks trait MockTasks extends io.flow.billing.debug.v0.Tasks { def get( `type`: _root_.scala.Option[Seq[String]] = None, includeErrorsOnly: Boolean = false, limit: Long = 25L, offset: Long = 0L, sort: String = "-created_at", requestHeaders: Seq[(String, String)] = Nil )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[Seq[io.flow.billing.debug.v0.models.Task]] = scala.concurrent.Future.successful { Nil } } object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeDebugAccountingTransactionType(): io.flow.billing.debug.v0.models.DebugAccountingTransactionType = io.flow.billing.debug.v0.models.DebugAccountingTransactionType.Fulfillment def makeChannelDebugTransaction(): io.flow.billing.debug.v0.models.ChannelDebugTransaction = io.flow.billing.debug.v0.models.ChannelDebugTransaction( debug = None, queue = None ) def makeDebugAccountingTransaction(): io.flow.billing.debug.v0.models.DebugAccountingTransaction = io.flow.billing.debug.v0.models.DebugAccountingTransaction( `type` = io.flow.billing.debug.v0.mock.Factories.makeDebugAccountingTransactionType(), typeId = Factories.randomString(24), transactionId = Factories.randomString(24) ) def makeDebugDetails(): io.flow.billing.debug.v0.models.DebugDetails = io.flow.billing.debug.v0.models.DebugDetails( labels = Nil, captures = Nil, refunds = Nil, allocation = io.flow.experience.v0.mock.Factories.makeAllocationV2() ) def makeDebugFulfillmentDelta(): io.flow.billing.debug.v0.models.DebugFulfillmentDelta = io.flow.billing.debug.v0.models.DebugFulfillmentDelta( postedTransactionsNet = BigDecimal("1"), fulfillmentsNet = BigDecimal("1"), deltaAmount = BigDecimal("1"), deltaPercent = BigDecimal("1") ) def makeDebugLabel(): io.flow.billing.debug.v0.models.DebugLabel = io.flow.billing.debug.v0.models.DebugLabel( carrierId = Factories.randomString(24), carrierTrackingNumber = Factories.randomString(24), labelTrackingSummaryId = None, labelId = None, transactions = None ) def makeDebugLabelTransactionSummary(): io.flow.billing.debug.v0.models.DebugLabelTransactionSummary = io.flow.billing.debug.v0.models.DebugLabelTransactionSummary( id = Factories.randomString(24), `type` = Factories.randomString(24) ) def makeDebugOrder(): io.flow.billing.debug.v0.models.DebugOrder = io.flow.billing.debug.v0.models.DebugOrder( organizationId = Factories.randomString(24), number = Factories.randomString(24), prices = Nil, total = io.flow.common.v0.mock.Factories.makeMoneyWithBase(), identifiers = None, submittedAt = None ) def makeDebugOrderTransaction(): io.flow.billing.debug.v0.models.DebugOrderTransaction = io.flow.billing.debug.v0.models.DebugOrderTransaction( order = io.flow.billing.debug.v0.mock.Factories.makeDebugOrder(), debug = io.flow.billing.debug.v0.mock.Factories.makeDebugDetails(), transactions = Nil, reporting = io.flow.billing.debug.v0.mock.Factories.makeReportingDetails() ) def makeDebugOrderTransactionForm(): io.flow.billing.debug.v0.models.DebugOrderTransactionForm = io.flow.billing.debug.v0.models.DebugOrderTransactionForm( orderId = None, organizationId = None, orderNumber = None, transactionId = None, captureId = None, refundId = None, orderIdentifier = None, authorizationId = None, postingProofId = None, labelTrackingSummaryId = None, shippingNotificationId = None, externalFulfillmentProofId = None, orderCancellationId = None ) def makeDebugOrderTransactionFormOrderIdentifier(): io.flow.billing.debug.v0.models.DebugOrderTransactionFormOrderIdentifier = io.flow.billing.debug.v0.models.DebugOrderTransactionFormOrderIdentifier( key = None, value = None ) def makeDebugPaymentTransactionSummary(): io.flow.billing.debug.v0.models.DebugPaymentTransactionSummary = io.flow.billing.debug.v0.models.DebugPaymentTransactionSummary( id = Factories.randomString(24), `type` = Factories.randomString(24), processingTransactionId = None, queueErrors = None, ignoreReason = None ) def makeDebugTransactionDetails(): io.flow.billing.debug.v0.models.DebugTransactionDetails = io.flow.billing.debug.v0.models.DebugTransactionDetails( transaction = io.flow.billing.v0.mock.Factories.makeTransaction(), status = io.flow.billing.debug.v0.mock.Factories.makeDebugTransactionDetailsStatus(), payout = None, fx = None ) def makeDebugTransactionDetailsStatus(): io.flow.billing.debug.v0.models.DebugTransactionDetailsStatus = io.flow.billing.debug.v0.models.DebugTransactionDetailsStatus( status = io.flow.billing.internal.v0.mock.Factories.makeBillingTransactionStatus(), description = Factories.randomString(24) ) def makeDebugTransactionFx(): io.flow.billing.debug.v0.models.DebugTransactionFx = io.flow.billing.debug.v0.models.DebugTransactionFx( timestamp = None, market = Nil, orderEffectiveRate = None, transactionEffectiveRate = None ) def makeDebugTransactionFxRate(): io.flow.billing.debug.v0.models.DebugTransactionFxRate = io.flow.billing.debug.v0.models.DebugTransactionFxRate( base = Factories.randomString(24), target = Factories.randomString(24), value = BigDecimal("1") ) def makeDebugTransactionQueued(): io.flow.billing.debug.v0.models.DebugTransactionQueued = io.flow.billing.debug.v0.models.DebugTransactionQueued( id = Factories.randomString(24), reasons = Nil ) def makeInternalDebugTransaction(): io.flow.billing.debug.v0.models.InternalDebugTransaction = io.flow.billing.debug.v0.models.InternalDebugTransaction( debug = None, queue = None ) def makeOrganizationDebugTransaction(): io.flow.billing.debug.v0.models.OrganizationDebugTransaction = io.flow.billing.debug.v0.models.OrganizationDebugTransaction( debug = None, queue = None ) def makeReportingDetails(): io.flow.billing.debug.v0.models.ReportingDetails = io.flow.billing.debug.v0.models.ReportingDetails( accountingTransactions = None, fulfillments = None, fulfillmentDelta = None, salesRecords = None, refundRecords = None ) def makeTask(): io.flow.billing.debug.v0.models.Task = io.flow.billing.debug.v0.models.Task( `type` = Factories.randomString(24), typeId = Factories.randomString(24), sourceType = None, sourceId = None, environment = io.flow.common.v0.mock.Factories.makeEnvironment(), createdAt = _root_.org.joda.time.DateTime.now, numAttempts = 1, nextAttemptAt = _root_.org.joda.time.DateTime.now, errors = None, stacktrace = None, snoozeId = None ) } }