"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerBillingSettingsInputArgsToJSON = exports.CustomerBillingSettingsInputArgsFromJSONTyped = exports.CustomerBillingSettingsInputArgsFromJSON = exports.CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum = void 0;
const runtime_1 = require("../runtime");
/**
* @export
* @enum {string}
*/
var CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum;
(function (CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum) {
    CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum["Day"] = "day";
})(CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum = exports.CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum || (exports.CustomerBillingSettingsInputArgsInvoiceGracePeriodUnitEnum = {}));
function CustomerBillingSettingsInputArgsFromJSON(json) {
    return CustomerBillingSettingsInputArgsFromJSONTyped(json, false);
}
exports.CustomerBillingSettingsInputArgsFromJSON = CustomerBillingSettingsInputArgsFromJSON;
function CustomerBillingSettingsInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'invoiceLogoUrl': !(0, runtime_1.exists)(json, 'invoice_logo_url') ? undefined : json['invoice_logo_url'],
        'paymentGracePeriodLength': !(0, runtime_1.exists)(json, 'payment_grace_period_length') ? undefined : json['payment_grace_period_length'],
        'alignBillingCyclesToCalendar': !(0, runtime_1.exists)(json, 'align_billing_cycles_to_calendar') ? undefined : json['align_billing_cycles_to_calendar'],
        'sendReceipts': !(0, runtime_1.exists)(json, 'send_receipts') ? undefined : json['send_receipts'],
        'retryAttempts': !(0, runtime_1.exists)(json, 'retry_attempts') ? undefined : json['retry_attempts'],
        'stripeImmediateFinalization': !(0, runtime_1.exists)(json, 'stripe_immediate_finalization') ? undefined : json['stripe_immediate_finalization'],
        'retryFrequencyLength': !(0, runtime_1.exists)(json, 'retry_frequency_length') ? undefined : json['retry_frequency_length'],
        'invoiceViaOctane': !(0, runtime_1.exists)(json, 'invoice_via_octane') ? undefined : json['invoice_via_octane'],
        'achBankName': !(0, runtime_1.exists)(json, 'ach_bank_name') ? undefined : json['ach_bank_name'],
        'stripeAutoAdvance': !(0, runtime_1.exists)(json, 'stripe_auto_advance') ? undefined : json['stripe_auto_advance'],
        'autoApproveInvoices': !(0, runtime_1.exists)(json, 'auto_approve_invoices') ? undefined : json['auto_approve_invoices'],
        'achAccountNumber': !(0, runtime_1.exists)(json, 'ach_account_number') ? undefined : json['ach_account_number'],
        'pastDueReminderDaysArray': !(0, runtime_1.exists)(json, 'past_due_reminder_days_array') ? undefined : json['past_due_reminder_days_array'],
        'paymentGracePeriodUnit': !(0, runtime_1.exists)(json, 'payment_grace_period_unit') ? undefined : json['payment_grace_period_unit'],
        'invoiceMemo': !(0, runtime_1.exists)(json, 'invoice_memo') ? undefined : json['invoice_memo'],
        'autoUpdateStripeDefaultPaymentMethod': !(0, runtime_1.exists)(json, 'auto_update_stripe_default_payment_method') ? undefined : json['auto_update_stripe_default_payment_method'],
        'achSwiftCode': !(0, runtime_1.exists)(json, 'ach_swift_code') ? undefined : json['ach_swift_code'],
        'invoiceGracePeriodUnit': !(0, runtime_1.exists)(json, 'invoice_grace_period_unit') ? undefined : json['invoice_grace_period_unit'],
        'daysUntilDue': !(0, runtime_1.exists)(json, 'days_until_due') ? undefined : json['days_until_due'],
        'includeAchInstructions': !(0, runtime_1.exists)(json, 'include_ach_instructions') ? undefined : json['include_ach_instructions'],
        'retryFrequencyUnit': !(0, runtime_1.exists)(json, 'retry_frequency_unit') ? undefined : json['retry_frequency_unit'],
        'achRoutingNumber': !(0, runtime_1.exists)(json, 'ach_routing_number') ? undefined : json['ach_routing_number'],
        'communicatePaymentFailures': !(0, runtime_1.exists)(json, 'communicate_payment_failures') ? undefined : json['communicate_payment_failures'],
        'invoiceGracePeriodLength': !(0, runtime_1.exists)(json, 'invoice_grace_period_length') ? undefined : json['invoice_grace_period_length'],
        'achAccountName': !(0, runtime_1.exists)(json, 'ach_account_name') ? undefined : json['ach_account_name'],
        'customerInvoiceDetailLevel': !(0, runtime_1.exists)(json, 'customer_invoice_detail_level') ? undefined : json['customer_invoice_detail_level'],
        'shouldSendInvoiceToCustomers': !(0, runtime_1.exists)(json, 'should_send_invoice_to_customers') ? undefined : json['should_send_invoice_to_customers'],
        'syncCustomerDataToPaymentGateway': !(0, runtime_1.exists)(json, 'sync_customer_data_to_payment_gateway') ? undefined : json['sync_customer_data_to_payment_gateway'],
        'taxViaPaymentProvider': !(0, runtime_1.exists)(json, 'tax_via_payment_provider') ? undefined : json['tax_via_payment_provider'],
        'upcomingReminderDaysArray': !(0, runtime_1.exists)(json, 'upcoming_reminder_days_array') ? undefined : json['upcoming_reminder_days_array'],
        'invoiceMeteredComponentsAtStart': !(0, runtime_1.exists)(json, 'invoice_metered_components_at_start') ? undefined : json['invoice_metered_components_at_start'],
        'invoiceFixedComponentsAtStart': !(0, runtime_1.exists)(json, 'invoice_fixed_components_at_start') ? undefined : json['invoice_fixed_components_at_start'],
        'chargesEnabled': !(0, runtime_1.exists)(json, 'charges_enabled') ? undefined : json['charges_enabled'],
        'achBankAddress2': !(0, runtime_1.exists)(json, 'ach_bank_address_2') ? undefined : json['ach_bank_address_2'],
        'taxRate': !(0, runtime_1.exists)(json, 'tax_rate') ? undefined : json['tax_rate'],
        'shouldMinimumChargeOverrideLineItems': !(0, runtime_1.exists)(json, 'should_minimum_charge_override_line_items') ? undefined : json['should_minimum_charge_override_line_items'],
        'invoiceOverages': !(0, runtime_1.exists)(json, 'invoice_overages') ? undefined : json['invoice_overages'],
        'achBankAddress1': !(0, runtime_1.exists)(json, 'ach_bank_address_1') ? undefined : json['ach_bank_address_1'],
    };
}
exports.CustomerBillingSettingsInputArgsFromJSONTyped = CustomerBillingSettingsInputArgsFromJSONTyped;
function CustomerBillingSettingsInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'invoice_logo_url': value.invoiceLogoUrl,
        'payment_grace_period_length': value.paymentGracePeriodLength,
        'align_billing_cycles_to_calendar': value.alignBillingCyclesToCalendar,
        'send_receipts': value.sendReceipts,
        'retry_attempts': value.retryAttempts,
        'stripe_immediate_finalization': value.stripeImmediateFinalization,
        'retry_frequency_length': value.retryFrequencyLength,
        'invoice_via_octane': value.invoiceViaOctane,
        'ach_bank_name': value.achBankName,
        'stripe_auto_advance': value.stripeAutoAdvance,
        'auto_approve_invoices': value.autoApproveInvoices,
        'ach_account_number': value.achAccountNumber,
        'past_due_reminder_days_array': value.pastDueReminderDaysArray,
        'payment_grace_period_unit': value.paymentGracePeriodUnit,
        'invoice_memo': value.invoiceMemo,
        'auto_update_stripe_default_payment_method': value.autoUpdateStripeDefaultPaymentMethod,
        'ach_swift_code': value.achSwiftCode,
        'invoice_grace_period_unit': value.invoiceGracePeriodUnit,
        'days_until_due': value.daysUntilDue,
        'include_ach_instructions': value.includeAchInstructions,
        'retry_frequency_unit': value.retryFrequencyUnit,
        'ach_routing_number': value.achRoutingNumber,
        'communicate_payment_failures': value.communicatePaymentFailures,
        'invoice_grace_period_length': value.invoiceGracePeriodLength,
        'ach_account_name': value.achAccountName,
        'customer_invoice_detail_level': value.customerInvoiceDetailLevel,
        'should_send_invoice_to_customers': value.shouldSendInvoiceToCustomers,
        'sync_customer_data_to_payment_gateway': value.syncCustomerDataToPaymentGateway,
        'tax_via_payment_provider': value.taxViaPaymentProvider,
        'upcoming_reminder_days_array': value.upcomingReminderDaysArray,
        'invoice_metered_components_at_start': value.invoiceMeteredComponentsAtStart,
        'invoice_fixed_components_at_start': value.invoiceFixedComponentsAtStart,
        'charges_enabled': value.chargesEnabled,
        'ach_bank_address_2': value.achBankAddress2,
        'tax_rate': value.taxRate,
        'should_minimum_charge_override_line_items': value.shouldMinimumChargeOverrideLineItems,
        'invoice_overages': value.invoiceOverages,
        'ach_bank_address_1': value.achBankAddress1,
    };
}
exports.CustomerBillingSettingsInputArgsToJSON = CustomerBillingSettingsInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64, 