Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* 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. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface UpdateSelfServeSettingsArgs */ export interface UpdateSelfServeSettingsArgs { /** * True if the vendor has enabled customization for their customer portal. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ enabled?: boolean; /** * True if credits should be voided if the payment fails. Defaults to False. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ creditsVoidOnPaymentFailure?: boolean; /** * True if credits should be charged immediately upon purchase. Defaults to False. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ creditsChargeImmediately?: boolean; /** * True if payment form should have fields for shipping address info. Defaults to False. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ enableAddressFields?: boolean; /** * True if credits should be granted immediately upon purchase. Defaults to True. No impact if `credits_charge_immediately` is True. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ creditsGrantImmediately?: boolean; /** * Time length of the default expiration for credits bought in the customer portal. * @type {number} * @memberof UpdateSelfServeSettingsArgs */ creditsExpirationLength?: number | null; /** * DEPRECATED: Please use 'customization_settings' as needed. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ customization?: boolean; /** * True if the customer can purchase credits via self serve. Defaults to False. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ purchaseCredits?: boolean; /** * Time length unit for the default expiration for credits bought in the customer portal. * @type {string} * @memberof UpdateSelfServeSettingsArgs */ creditsExpirationUnit?: string | null; /** * Price per credit, in cents, that the customer is charged for buying credits through the customer portal * @type {number} * @memberof UpdateSelfServeSettingsArgs */ pricePerCreditCents?: number; /** * True if the customer can switch their current price plan via self serve. Defaults to False. * @type {boolean} * @memberof UpdateSelfServeSettingsArgs */ switchPricePlans?: boolean; } export function UpdateSelfServeSettingsArgsFromJSON(json: any): UpdateSelfServeSettingsArgs { return UpdateSelfServeSettingsArgsFromJSONTyped(json, false); } export function UpdateSelfServeSettingsArgsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSelfServeSettingsArgs { if ((json === undefined) || (json === null)) { return json; } return { 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], 'creditsVoidOnPaymentFailure': !exists(json, 'credits_void_on_payment_failure') ? undefined : json['credits_void_on_payment_failure'], 'creditsChargeImmediately': !exists(json, 'credits_charge_immediately') ? undefined : json['credits_charge_immediately'], 'enableAddressFields': !exists(json, 'enable_address_fields') ? undefined : json['enable_address_fields'], 'creditsGrantImmediately': !exists(json, 'credits_grant_immediately') ? undefined : json['credits_grant_immediately'], 'creditsExpirationLength': !exists(json, 'credits_expiration_length') ? undefined : json['credits_expiration_length'], 'customization': !exists(json, 'customization') ? undefined : json['customization'], 'purchaseCredits': !exists(json, 'purchase_credits') ? undefined : json['purchase_credits'], 'creditsExpirationUnit': !exists(json, 'credits_expiration_unit') ? undefined : json['credits_expiration_unit'], 'pricePerCreditCents': !exists(json, 'price_per_credit_cents') ? undefined : json['price_per_credit_cents'], 'switchPricePlans': !exists(json, 'switch_price_plans') ? undefined : json['switch_price_plans'], }; } export function UpdateSelfServeSettingsArgsToJSON(value?: UpdateSelfServeSettingsArgs | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'enabled': value.enabled, 'credits_void_on_payment_failure': value.creditsVoidOnPaymentFailure, 'credits_charge_immediately': value.creditsChargeImmediately, 'enable_address_fields': value.enableAddressFields, 'credits_grant_immediately': value.creditsGrantImmediately, 'credits_expiration_length': value.creditsExpirationLength, 'customization': value.customization, 'purchase_credits': value.purchaseCredits, 'credits_expiration_unit': value.creditsExpirationUnit, 'price_per_credit_cents': value.pricePerCreditCents, 'switch_price_plans': value.switchPricePlans, }; } |