BokaMera.API.Host

<back to all web services

UpdateVossInvoiceConfigurations

Requires Authentication
Requires the role:superadmin
The following routes are available for this service:
GET/voss/invoiceConfigurationsinit voss invoice

export enum IntermediaryPlacementEnum
{
    None = 1,
    IncludeIn21StColumn = 2,
    IncludeIn7ThColumn = 3,
}

export enum AccrualCodeFormatEnum
{
    Default = 1,
    Dutch = 2,
}

export enum UnitEnum
{
    Day = 1,
    Month = 2,
    Year = 3,
}

// @DataContract(Name="TimeLengthRequestDto")
export class TimeLengthRequestDto
{
    // @DataMember(Name="unit", IsRequired=true)
    public unit: UnitEnum;

    // @DataMember(Name="value", IsRequired=true)
    public value: number;

    public constructor(init?: Partial<TimeLengthRequestDto>) { (Object as any).assign(this, init); }
}

// @DataContract(Name="UpdateInvoiceConfigurationsRequest")
export class UpdateInvoiceConfigurationsRequest
{
    // @DataMember(Name="intermediaryPlacement", IsRequired=true)
    public intermediaryPlacement: IntermediaryPlacementEnum;

    // @DataMember(Name="accrualCodeFormat", IsRequired=true)
    public accrualCodeFormat: AccrualCodeFormatEnum;

    // @DataMember(Name="dateFormat", IsRequired=true)
    public dateFormat: string;

    // @DataMember(Name="delimiter", IsRequired=true)
    public delimiter: string;

    // @DataMember(Name="decimalSeparator", IsRequired=true)
    public decimalSeparator: string;

    // @DataMember(Name="orderCreatorCode", IsRequired=true)
    public orderCreatorCode: string;

    // @DataMember(Name="salesPersonId", IsRequired=true)
    public salesPersonId: string;

    // @DataMember(Name="salesDepartmentId", IsRequired=true)
    public salesDepartmentId: string;

    // @DataMember(Name="includeBillingPeriodDates")
    public includeBillingPeriodDates: boolean;

    // @DataMember(Name="trackInvoicePayments")
    public trackInvoicePayments: boolean;

    // @DataMember(Name="includeInvoicedCustomerDetails")
    public includeInvoicedCustomerDetails: boolean;

    // @DataMember(Name="billingPeriodTextFormat", IsRequired=true)
    public billingPeriodTextFormat: string;

    // @DataMember(Name="customerFooterText")
    public customerFooterText: string;

    // @DataMember(Name="addEmptyLineBeforeCustomerFooter")
    public addEmptyLineBeforeCustomerFooter: boolean;

    // @DataMember(Name="includeOnlyDefaultSalesPersonAndDepartment")
    public includeOnlyDefaultSalesPersonAndDepartment: boolean;

    // @DataMember(Name="includeSubscriptionCustomerDetailsIfPayedByAnotherCustomer")
    public includeSubscriptionCustomerDetailsIfPayedByAnotherCustomer: boolean;

    // @DataMember(Name="transactionGroup", IsRequired=true)
    public transactionGroup: string;

    // @DataMember(Name="invoiceArbitraryNumber", IsRequired=true)
    public invoiceArbitraryNumber: string;

    // @DataMember(Name="deliveryMethod", IsRequired=true)
    public deliveryMethod: string;

    // @DataMember(Name="deliveryConditions", IsRequired=true)
    public deliveryConditions: string;

    // @DataMember(Name="orderType", IsRequired=true)
    public orderType: string;

    // @DataMember(Name="invoiceStatus", IsRequired=true)
    public invoiceStatus: string;

    // @DataMember(Name="useProductGroupRevenueRecognition")
    public useProductGroupRevenueRecognition: boolean;

    // @DataMember(Name="productGroupLineExcludePrint", IsRequired=true)
    public productGroupLineExcludePrint: string;

    // @DataMember(Name="productGroupLineEditPreferences", IsRequired=true)
    public productGroupLineEditPreferences: string;

    // @DataMember(Name="productLineExcludePrint", IsRequired=true)
    public productLineExcludePrint: string;

    // @DataMember(Name="useDiscountedPrices")
    public useDiscountedPrices: boolean;

    // @DataMember(Name="terminateUnpaidSubscriptions")
    public terminateUnpaidSubscriptions: boolean;

    // @DataMember(Name="allowedUnpaidAmountLimit", EmitDefaultValue=false)
    public allowedUnpaidAmountLimit: number;

    // @DataMember(Name="allowedPaymentOverdue")
    public allowedPaymentOverdue: TimeLengthRequestDto;

    // @DataMember(Name="unpaidSubscriptionTerminationReasonId")
    public unpaidSubscriptionTerminationReasonId?: string;

    // @DataMember(Name="unpaidSubscriptionTerminationComment")
    public unpaidSubscriptionTerminationComment: string;

    // @DataMember(Name="creditInvoiceNumberReferenceTextFormat")
    public creditInvoiceNumberReferenceTextFormat: string;

    public constructor(init?: Partial<UpdateInvoiceConfigurationsRequest>) { (Object as any).assign(this, init); }
}

// @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
export class UpdateVossInvoiceConfigurations extends UpdateInvoiceConfigurationsRequest
{

    public constructor(init?: Partial<UpdateVossInvoiceConfigurations>) { super(init); (Object as any).assign(this, init); }
}

TypeScript UpdateVossInvoiceConfigurations DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /voss/invoiceConfigurations HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}