{"version":3,"sources":["node_modules/@vendasta/order-fulfillment/fesm2020/vendasta-order-fulfillment.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nimport { map } from 'rxjs/operators';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar BlameSource = /*#__PURE__*/function (BlameSource) {\n BlameSource[BlameSource[\"BLAME_SOURCE_SYSTEM\"] = 0] = \"BLAME_SOURCE_SYSTEM\";\n BlameSource[BlameSource[\"BLAME_SOURCE_USER\"] = 1] = \"BLAME_SOURCE_USER\";\n return BlameSource;\n}(BlameSource || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar ValidationErrorCodes = /*#__PURE__*/function (ValidationErrorCodes) {\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_UNKNOWN\"] = 0] = \"VALIDATION_ERROR_CODES_UNKNOWN\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_APP_NOT_FOUND\"] = 1] = \"VALIDATION_ERROR_CODES_APP_NOT_FOUND\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_NO_ORDER_FORM_SUBMISSION_ID\"] = 2] = \"VALIDATION_ERROR_CODES_NO_ORDER_FORM_SUBMISSION_ID\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ORDER_FORM_NOT_FOUND\"] = 3] = \"VALIDATION_ERROR_CODES_ORDER_FORM_NOT_FOUND\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ORDER_FORM_ALREADY_USED\"] = 4] = \"VALIDATION_ERROR_CODES_ORDER_FORM_ALREADY_USED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ORDER_FORM_NOT_SUPPORTED\"] = 5] = \"VALIDATION_ERROR_CODES_ORDER_FORM_NOT_SUPPORTED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_INVALID_ENTRY_URL\"] = 6] = \"VALIDATION_ERROR_CODES_INVALID_ENTRY_URL\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ENTRY_URL_NOT_PROVIDED\"] = 7] = \"VALIDATION_ERROR_CODES_ENTRY_URL_NOT_PROVIDED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_INVALID_DEPENDENCY\"] = 8] = \"VALIDATION_ERROR_CODES_INVALID_DEPENDENCY\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ALREADY_ACTIVE\"] = 9] = \"VALIDATION_ERROR_CODES_ALREADY_ACTIVE\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_EDITION_NOT_PROVIDED\"] = 10] = \"VALIDATION_ERROR_CODES_EDITION_NOT_PROVIDED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_EDITIONS_NOT_SUPPORTED\"] = 11] = \"VALIDATION_ERROR_CODES_EDITIONS_NOT_SUPPORTED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_INVALID_EDITION\"] = 12] = \"VALIDATION_ERROR_CODES_INVALID_EDITION\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_TRIAL_NOT_SUPPORTED\"] = 13] = \"VALIDATION_ERROR_CODES_TRIAL_NOT_SUPPORTED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_ACCOUNT_GROUP_NOT_FOUND\"] = 14] = \"VALIDATION_ERROR_CODES_ACCOUNT_GROUP_NOT_FOUND\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_NO_COUNTRY_INFORMATION\"] = 15] = \"VALIDATION_ERROR_CODES_NO_COUNTRY_INFORMATION\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_UNSUPPORTED_COUNTRY\"] = 16] = \"VALIDATION_ERROR_CODES_UNSUPPORTED_COUNTRY\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_CANNOT_CHANGE_EDITION_OF_TRIAL\"] = 17] = \"VALIDATION_ERROR_CODES_CANNOT_CHANGE_EDITION_OF_TRIAL\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_APP_NOT_ACTIVE\"] = 18] = \"VALIDATION_ERROR_CODES_APP_NOT_ACTIVE\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_FEATURE_NOT_ENABLED\"] = 19] = \"VALIDATION_ERROR_CODES_FEATURE_NOT_ENABLED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_APP_IS_SUSPENDED\"] = 20] = \"VALIDATION_ERROR_CODES_APP_IS_SUSPENDED\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_PACKAGE_NOT_FOUND\"] = 21] = \"VALIDATION_ERROR_CODES_PACKAGE_NOT_FOUND\";\n ValidationErrorCodes[ValidationErrorCodes[\"VALIDATION_ERROR_CODES_PARTNER_NOT_OWNER_OF_PACKAGE\"] = 22] = \"VALIDATION_ERROR_CODES_PARTNER_NOT_OWNER_OF_PACKAGE\";\n return ValidationErrorCodes;\n}(ValidationErrorCodes || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Frequency = /*#__PURE__*/function (Frequency) {\n Frequency[Frequency[\"FREQUENCY_INVALID\"] = 0] = \"FREQUENCY_INVALID\";\n Frequency[Frequency[\"FREQUENCY_MONTHLY\"] = 1] = \"FREQUENCY_MONTHLY\";\n Frequency[Frequency[\"FREQUENCY_YEARLY\"] = 2] = \"FREQUENCY_YEARLY\";\n Frequency[Frequency[\"FREQUENCY_ONE_TIME\"] = 3] = \"FREQUENCY_ONE_TIME\";\n return Frequency;\n}(Frequency || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Consumer = /*#__PURE__*/function (Consumer) {\n Consumer[Consumer[\"CONSUMER_UNSET\"] = 0] = \"CONSUMER_UNSET\";\n Consumer[Consumer[\"CONSUMER_WHOLESALE\"] = 1] = \"CONSUMER_WHOLESALE\";\n Consumer[Consumer[\"CONSUMER_RETAIL\"] = 2] = \"CONSUMER_RETAIL\";\n return Consumer;\n}(Consumer || {});\nvar OrderItemStatus = /*#__PURE__*/function (OrderItemStatus) {\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_INVALID\"] = 0] = \"ORDER_ITEM_STATUS_INVALID\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_CREATED\"] = 1] = \"ORDER_ITEM_STATUS_CREATED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_VALIDATION_FAILED\"] = 2] = \"ORDER_ITEM_STATUS_VALIDATION_FAILED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_CHARGED\"] = 3] = \"ORDER_ITEM_STATUS_CHARGED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_CHARGE_SUCCESSFUL\"] = 4] = \"ORDER_ITEM_STATUS_CHARGE_SUCCESSFUL\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_CHARGE_FAILED\"] = 5] = \"ORDER_ITEM_STATUS_CHARGE_FAILED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_PENDING_ACTIVATION\"] = 6] = \"ORDER_ITEM_STATUS_PENDING_ACTIVATION\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_ACTIVATION_FAILED\"] = 7] = \"ORDER_ITEM_STATUS_ACTIVATION_FAILED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_ACTIVATION_SUCCESSFUL\"] = 8] = \"ORDER_ITEM_STATUS_ACTIVATION_SUCCESSFUL\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_CANCELED\"] = 9] = \"ORDER_ITEM_STATUS_CANCELED\";\n OrderItemStatus[OrderItemStatus[\"ORDER_ITEM_STATUS_WAITING_FOR_CONSUMER_INFORMATION\"] = 10] = \"ORDER_ITEM_STATUS_WAITING_FOR_CONSUMER_INFORMATION\";\n return OrderItemStatus;\n}(OrderItemStatus || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar OrderStatus = /*#__PURE__*/function (OrderStatus) {\n OrderStatus[OrderStatus[\"ORDER_STATUS_UNKNOWN\"] = 0] = \"ORDER_STATUS_UNKNOWN\";\n OrderStatus[OrderStatus[\"ORDER_STATUS_CREATED\"] = 1] = \"ORDER_STATUS_CREATED\";\n OrderStatus[OrderStatus[\"ORDER_STATUS_PROCESSING\"] = 2] = \"ORDER_STATUS_PROCESSING\";\n OrderStatus[OrderStatus[\"ORDER_STATUS_CHARGED\"] = 3] = \"ORDER_STATUS_CHARGED\";\n return OrderStatus;\n}(OrderStatus || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar BillingFrequency = /*#__PURE__*/function (BillingFrequency) {\n BillingFrequency[BillingFrequency[\"BILLING_FREQUENCY_INVALID\"] = 0] = \"BILLING_FREQUENCY_INVALID\";\n BillingFrequency[BillingFrequency[\"BILLING_FREQUENCY_MONTHLY\"] = 1] = \"BILLING_FREQUENCY_MONTHLY\";\n BillingFrequency[BillingFrequency[\"BILLING_FREQUENCY_YEARLY\"] = 2] = \"BILLING_FREQUENCY_YEARLY\";\n BillingFrequency[BillingFrequency[\"BILLING_FREQUENCY_ONE_TIME\"] = 3] = \"BILLING_FREQUENCY_ONE_TIME\";\n return BillingFrequency;\n}(BillingFrequency || {});\nvar ChangeSpendRequestStatus = /*#__PURE__*/function (ChangeSpendRequestStatus) {\n ChangeSpendRequestStatus[ChangeSpendRequestStatus[\"CHANGE_SPEND_REQUEST_STATUS_INVALID\"] = 0] = \"CHANGE_SPEND_REQUEST_STATUS_INVALID\";\n ChangeSpendRequestStatus[ChangeSpendRequestStatus[\"CHANGE_SPEND_REQUEST_STATUS_CREATED\"] = 1] = \"CHANGE_SPEND_REQUEST_STATUS_CREATED\";\n ChangeSpendRequestStatus[ChangeSpendRequestStatus[\"CHANGE_SPEND_REQUEST_STATUS_APPROVED\"] = 2] = \"CHANGE_SPEND_REQUEST_STATUS_APPROVED\";\n ChangeSpendRequestStatus[ChangeSpendRequestStatus[\"CHANGE_SPEND_REQUEST_STATUS_REJECTED\"] = 3] = \"CHANGE_SPEND_REQUEST_STATUS_REJECTED\";\n ChangeSpendRequestStatus[ChangeSpendRequestStatus[\"CHANGE_SPEND_REQUEST_STATUS_OVERRIDDEN\"] = 4] = \"CHANGE_SPEND_REQUEST_STATUS_OVERRIDDEN\";\n return ChangeSpendRequestStatus;\n}(ChangeSpendRequestStatus || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar FailureReason = /*#__PURE__*/function (FailureReason) {\n FailureReason[FailureReason[\"FAILURE_REASON_UNKNOWN_ERROR\"] = 0] = \"FAILURE_REASON_UNKNOWN_ERROR\";\n FailureReason[FailureReason[\"FAILURE_REASON_VALIDATION_ERROR\"] = 1] = \"FAILURE_REASON_VALIDATION_ERROR\";\n FailureReason[FailureReason[\"FAILURE_REASON_CHARGE_ERROR\"] = 2] = \"FAILURE_REASON_CHARGE_ERROR\";\n FailureReason[FailureReason[\"FAILURE_REASON_VENDOR_REJECTED_ERROR\"] = 3] = \"FAILURE_REASON_VENDOR_REJECTED_ERROR\";\n FailureReason[FailureReason[\"FAILURE_REASON_ACTIVATION_ERROR\"] = 4] = \"FAILURE_REASON_ACTIVATION_ERROR\";\n return FailureReason;\n}(FailureReason || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar FieldType = /*#__PURE__*/function (FieldType) {\n FieldType[FieldType[\"FIELD_TYPE_NOT_SPECIFIED\"] = 0] = \"FIELD_TYPE_NOT_SPECIFIED\";\n FieldType[FieldType[\"FIELD_TYPE_TEXT\"] = 1] = \"FIELD_TYPE_TEXT\";\n FieldType[FieldType[\"FIELD_TYPE_TEXT_AREA\"] = 2] = \"FIELD_TYPE_TEXT_AREA\";\n FieldType[FieldType[\"FIELD_TYPE_DROPDOWN\"] = 3] = \"FIELD_TYPE_DROPDOWN\";\n FieldType[FieldType[\"FIELD_TYPE_CHECKBOX\"] = 4] = \"FIELD_TYPE_CHECKBOX\";\n FieldType[FieldType[\"FIELD_TYPE_FILE\"] = 5] = \"FIELD_TYPE_FILE\";\n FieldType[FieldType[\"FIELD_TYPE_VBCUSER\"] = 6] = \"FIELD_TYPE_VBCUSER\";\n return FieldType;\n}(FieldType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar FulfillmentOrderStatus = /*#__PURE__*/function (FulfillmentOrderStatus) {\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_UNSET\"] = 0] = \"FULFILLMENT_ORDER_STATUS_UNSET\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_DETAILS_NEEDED\"] = 1] = \"FULFILLMENT_ORDER_STATUS_DETAILS_NEEDED\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_IN_REVIEW\"] = 2] = \"FULFILLMENT_ORDER_STATUS_IN_REVIEW\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_IN_PROGRESS\"] = 3] = \"FULFILLMENT_ORDER_STATUS_IN_PROGRESS\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_COMPLETED\"] = 4] = \"FULFILLMENT_ORDER_STATUS_COMPLETED\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_CANCELLED\"] = 5] = \"FULFILLMENT_ORDER_STATUS_CANCELLED\";\n FulfillmentOrderStatus[FulfillmentOrderStatus[\"FULFILLMENT_ORDER_STATUS_ON_HOLD\"] = 6] = \"FULFILLMENT_ORDER_STATUS_ON_HOLD\";\n return FulfillmentOrderStatus;\n}(FulfillmentOrderStatus || {});\nvar PendingActivationStatus = /*#__PURE__*/function (PendingActivationStatus) {\n PendingActivationStatus[PendingActivationStatus[\"PENDING_ACTIVATION_STATUS_NOT_SPECIFIED\"] = 0] = \"PENDING_ACTIVATION_STATUS_NOT_SPECIFIED\";\n PendingActivationStatus[PendingActivationStatus[\"PENDING_ACTIVATION_STATUS_PENDING\"] = 1] = \"PENDING_ACTIVATION_STATUS_PENDING\";\n PendingActivationStatus[PendingActivationStatus[\"PENDING_ACTIVATION_STATUS_APPROVED\"] = 2] = \"PENDING_ACTIVATION_STATUS_APPROVED\";\n PendingActivationStatus[PendingActivationStatus[\"PENDING_ACTIVATION_STATUS_REJECTED\"] = 3] = \"PENDING_ACTIVATION_STATUS_REJECTED\";\n return PendingActivationStatus;\n}(PendingActivationStatus || {});\nvar SortDirection = /*#__PURE__*/function (SortDirection) {\n SortDirection[SortDirection[\"SORT_DIRECTION_UNSET\"] = 0] = \"SORT_DIRECTION_UNSET\";\n SortDirection[SortDirection[\"SORT_DIRECTION_ASCENDING\"] = 1] = \"SORT_DIRECTION_ASCENDING\";\n SortDirection[SortDirection[\"SORT_DIRECTION_DESCENDING\"] = 2] = \"SORT_DIRECTION_DESCENDING\";\n return SortDirection;\n}(SortDirection || {});\nvar TimeField = /*#__PURE__*/function (TimeField) {\n TimeField[TimeField[\"TIME_FIELD_UNSET\"] = 0] = \"TIME_FIELD_UNSET\";\n TimeField[TimeField[\"TIME_FIELD_CREATED\"] = 1] = \"TIME_FIELD_CREATED\";\n TimeField[TimeField[\"TIME_FIELD_UPDATED\"] = 2] = \"TIME_FIELD_UPDATED\";\n TimeField[TimeField[\"TIME_FIELD_DELETED\"] = 3] = \"TIME_FIELD_DELETED\";\n return TimeField;\n}(TimeField || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$8(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Blame {\n static fromProto(proto) {\n let m = new Blame();\n m = Object.assign(m, proto);\n if (proto.source) {\n m.source = enumStringToValue$8(BlameSource, proto.source);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.source !== 'undefined') {\n toReturn['source'] = this.source;\n }\n if (typeof this.sourceIdentifier !== 'undefined') {\n toReturn['sourceIdentifier'] = this.sourceIdentifier;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$7(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass EditionChangeInformation {\n static fromProto(proto) {\n let m = new EditionChangeInformation();\n m = Object.assign(m, proto);\n if (proto.editionChangeReasons) {\n m.editionChangeReasons = Reasons.fromProto(proto.editionChangeReasons);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.currentActivationId !== 'undefined') {\n toReturn['currentActivationId'] = this.currentActivationId;\n }\n if (typeof this.editionChangeReasons !== 'undefined' && this.editionChangeReasons !== null) {\n toReturn['editionChangeReasons'] = 'toApiJson' in this.editionChangeReasons ? this.editionChangeReasons.toApiJson() : this.editionChangeReasons;\n }\n return toReturn;\n }\n}\nclass OrderItem {\n static fromProto(proto) {\n let m = new OrderItem();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$7(OrderItemStatus, proto.status);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.validationErrorCodes) {\n m.validationErrorCodes = proto.validationErrorCodes.map(v => enumStringToValue$7(ValidationErrorCodes, v));\n }\n if (proto.productActivationInformation) {\n m.productActivationInformation = ProductActivationInformation.fromProto(proto.productActivationInformation);\n }\n if (proto.editionChangeInformation) {\n m.editionChangeInformation = EditionChangeInformation.fromProto(proto.editionChangeInformation);\n }\n if (proto.customPrice) {\n m.customPrice = parseInt(proto.customPrice, 10);\n }\n if (proto.retailAmount) {\n m.retailAmount = parseInt(proto.retailAmount, 10);\n }\n if (proto.retailFrequency) {\n m.retailFrequency = enumStringToValue$7(Frequency, proto.retailFrequency);\n }\n if (proto.consumer) {\n m.consumer = enumStringToValue$7(Consumer, proto.consumer);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n if (typeof this.orderFormSubmissionId !== 'undefined') {\n toReturn['orderFormSubmissionId'] = this.orderFormSubmissionId;\n }\n if (typeof this.editionId !== 'undefined') {\n toReturn['editionId'] = this.editionId;\n }\n if (typeof this.isTrial !== 'undefined') {\n toReturn['isTrial'] = this.isTrial;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.validationErrorCodes !== 'undefined') {\n toReturn['validationErrorCodes'] = this.validationErrorCodes;\n }\n if (typeof this.productActivationInformation !== 'undefined' && this.productActivationInformation !== null) {\n toReturn['productActivationInformation'] = 'toApiJson' in this.productActivationInformation ? this.productActivationInformation.toApiJson() : this.productActivationInformation;\n }\n if (typeof this.editionChangeInformation !== 'undefined' && this.editionChangeInformation !== null) {\n toReturn['editionChangeInformation'] = 'toApiJson' in this.editionChangeInformation ? this.editionChangeInformation.toApiJson() : this.editionChangeInformation;\n }\n if (typeof this.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.chargeFailureCode !== 'undefined') {\n toReturn['chargeFailureCode'] = this.chargeFailureCode;\n }\n if (typeof this.packageInstanceId !== 'undefined') {\n toReturn['packageInstanceId'] = this.packageInstanceId;\n }\n if (typeof this.customPrice !== 'undefined') {\n toReturn['customPrice'] = this.customPrice;\n }\n if (typeof this.retailAmount !== 'undefined') {\n toReturn['retailAmount'] = this.retailAmount;\n }\n if (typeof this.retailFrequency !== 'undefined') {\n toReturn['retailFrequency'] = this.retailFrequency;\n }\n if (typeof this.subscriptionId !== 'undefined') {\n toReturn['subscriptionId'] = this.subscriptionId;\n }\n if (typeof this.consumer !== 'undefined') {\n toReturn['consumer'] = this.consumer;\n }\n return toReturn;\n }\n}\nclass ProductActivationInformation {\n static fromProto(proto) {\n let m = new ProductActivationInformation();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n return toReturn;\n }\n}\nclass Reasons {\n static fromProto(proto) {\n let m = new Reasons();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.choices !== 'undefined') {\n toReturn['choices'] = this.choices;\n }\n if (typeof this.comments !== 'undefined') {\n toReturn['comments'] = this.comments;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$6(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Order {\n static fromProto(proto) {\n let m = new Order();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.status) {\n m.status = enumStringToValue$6(OrderStatus, proto.status);\n }\n if (proto.orderSource) {\n m.orderSource = Blame.fromProto(proto.orderSource);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.orderSource !== 'undefined' && this.orderSource !== null) {\n toReturn['orderSource'] = 'toApiJson' in this.orderSource ? this.orderSource.toApiJson() : this.orderSource;\n }\n if (typeof this.idempotencyKey !== 'undefined') {\n toReturn['idempotencyKey'] = this.idempotencyKey;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$5(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ChangeRequestEventExternalData {\n static fromProto(proto) {\n let m = new ChangeRequestEventExternalData();\n m = Object.assign(m, proto);\n if (proto.requestedSpendAmount) {\n m.requestedSpendAmount = parseInt(proto.requestedSpendAmount, 10);\n }\n if (proto.renewalDate) {\n m.renewalDate = new Date(proto.renewalDate);\n }\n if (proto.currentSubscriptionCost) {\n m.currentSubscriptionCost = parseInt(proto.currentSubscriptionCost, 10);\n }\n if (proto.billingFrequency) {\n m.billingFrequency = enumStringToValue$5(BillingFrequency, proto.billingFrequency);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.note !== 'undefined') {\n toReturn['note'] = this.note;\n }\n if (typeof this.requestedSpendAmount !== 'undefined') {\n toReturn['requestedSpendAmount'] = this.requestedSpendAmount;\n }\n if (typeof this.businessName !== 'undefined') {\n toReturn['businessName'] = this.businessName;\n }\n if (typeof this.resellerName !== 'undefined') {\n toReturn['resellerName'] = this.resellerName;\n }\n if (typeof this.itemName !== 'undefined') {\n toReturn['itemName'] = this.itemName;\n }\n if (typeof this.renewalDate !== 'undefined' && this.renewalDate !== null) {\n toReturn['renewalDate'] = 'toApiJson' in this.renewalDate ? this.renewalDate.toApiJson() : this.renewalDate;\n }\n if (typeof this.currentSubscriptionCost !== 'undefined') {\n toReturn['currentSubscriptionCost'] = this.currentSubscriptionCost;\n }\n if (typeof this.billingFrequency !== 'undefined') {\n toReturn['billingFrequency'] = this.billingFrequency;\n }\n if (typeof this.resellerId !== 'undefined') {\n toReturn['resellerId'] = this.resellerId;\n }\n if (typeof this.resellerCurrency !== 'undefined') {\n toReturn['resellerCurrency'] = this.resellerCurrency;\n }\n return toReturn;\n }\n}\nclass ChangeSpendRequest {\n static fromProto(proto) {\n let m = new ChangeSpendRequest();\n m = Object.assign(m, proto);\n if (proto.requestedSpendAmount) {\n m.requestedSpendAmount = parseInt(proto.requestedSpendAmount, 10);\n }\n if (proto.status) {\n m.status = enumStringToValue$5(ChangeSpendRequestStatus, proto.status);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.externalData) {\n m.externalData = ChangeSpendRequestExternalData.fromProto(proto.externalData);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.changeRequestId !== 'undefined') {\n toReturn['changeRequestId'] = this.changeRequestId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n if (typeof this.requestedSpendAmount !== 'undefined') {\n toReturn['requestedSpendAmount'] = this.requestedSpendAmount;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.requesterNote !== 'undefined') {\n toReturn['requesterNote'] = this.requesterNote;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.requestingUser !== 'undefined') {\n toReturn['requestingUser'] = this.requestingUser;\n }\n if (typeof this.billingOrderId !== 'undefined') {\n toReturn['billingOrderId'] = this.billingOrderId;\n }\n if (typeof this.externalData !== 'undefined' && this.externalData !== null) {\n toReturn['externalData'] = 'toApiJson' in this.externalData ? this.externalData.toApiJson() : this.externalData;\n }\n return toReturn;\n }\n}\nclass ChangeSpendRequestExternalData {\n static fromProto(proto) {\n let m = new ChangeSpendRequestExternalData();\n m = Object.assign(m, proto);\n if (proto.renewalDate) {\n m.renewalDate = new Date(proto.renewalDate);\n }\n if (proto.currentSubscriptionCost) {\n m.currentSubscriptionCost = parseInt(proto.currentSubscriptionCost, 10);\n }\n if (proto.billingFrequency) {\n m.billingFrequency = enumStringToValue$5(BillingFrequency, proto.billingFrequency);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessName !== 'undefined') {\n toReturn['businessName'] = this.businessName;\n }\n if (typeof this.resellerName !== 'undefined') {\n toReturn['resellerName'] = this.resellerName;\n }\n if (typeof this.itemName !== 'undefined') {\n toReturn['itemName'] = this.itemName;\n }\n if (typeof this.renewalDate !== 'undefined' && this.renewalDate !== null) {\n toReturn['renewalDate'] = 'toApiJson' in this.renewalDate ? this.renewalDate.toApiJson() : this.renewalDate;\n }\n if (typeof this.currentSubscriptionCost !== 'undefined') {\n toReturn['currentSubscriptionCost'] = this.currentSubscriptionCost;\n }\n if (typeof this.billingFrequency !== 'undefined') {\n toReturn['billingFrequency'] = this.billingFrequency;\n }\n if (typeof this.resellerId !== 'undefined') {\n toReturn['resellerId'] = this.resellerId;\n }\n if (typeof this.resellerCurrency !== 'undefined') {\n toReturn['resellerCurrency'] = this.resellerCurrency;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$4(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass FieldMask {\n static fromProto(proto) {\n let m = new FieldMask();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.paths !== 'undefined') {\n toReturn['paths'] = this.paths;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ActivationFailureDetails {\n static fromProto(proto) {\n let m = new ActivationFailureDetails();\n m = Object.assign(m, proto);\n if (proto.failureReason) {\n m.failureReason = enumStringToValue$3(FailureReason, proto.failureReason);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n if (typeof this.failureReason !== 'undefined') {\n toReturn['failureReason'] = this.failureReason;\n }\n if (typeof this.details !== 'undefined') {\n toReturn['details'] = this.details;\n }\n return toReturn;\n }\n}\nclass CancelEditionChangeRequest {\n static fromProto(proto) {\n let m = new CancelEditionChangeRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n return toReturn;\n }\n}\nclass CancelOrderItemWaitingForConsumerInformationRequest {\n static fromProto(proto) {\n let m = new CancelOrderItemWaitingForConsumerInformationRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents();\n m = Object.assign(m, proto);\n if (proto.eventTime) {\n m.eventTime = new Date(proto.eventTime);\n }\n if (proto.status) {\n m.status = enumStringToValue$3(ChangeSpendRequestStatus, proto.status);\n }\n if (proto.externalData) {\n m.externalData = ChangeRequestEventExternalData.fromProto(proto.externalData);\n }\n if (proto.effectiveDate) {\n m.effectiveDate = new Date(proto.effectiveDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.changeRequestId !== 'undefined') {\n toReturn['changeRequestId'] = this.changeRequestId;\n }\n if (typeof this.eventTime !== 'undefined' && this.eventTime !== null) {\n toReturn['eventTime'] = 'toApiJson' in this.eventTime ? this.eventTime.toApiJson() : this.eventTime;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.externalData !== 'undefined' && this.externalData !== null) {\n toReturn['externalData'] = 'toApiJson' in this.externalData ? this.externalData.toApiJson() : this.externalData;\n }\n if (typeof this.requestingUser !== 'undefined') {\n toReturn['requestingUser'] = this.requestingUser;\n }\n if (typeof this.resolvedBy !== 'undefined') {\n toReturn['resolvedBy'] = this.resolvedBy;\n }\n if (typeof this.effectiveDate !== 'undefined' && this.effectiveDate !== null) {\n toReturn['effectiveDate'] = 'toApiJson' in this.effectiveDate ? this.effectiveDate.toApiJson() : this.effectiveDate;\n }\n return toReturn;\n }\n}\nclass ChangeSpendRequestRequest {\n static fromProto(proto) {\n let m = new ChangeSpendRequestRequest();\n m = Object.assign(m, proto);\n if (proto.requestedSpendAmount) {\n m.requestedSpendAmount = parseInt(proto.requestedSpendAmount, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n if (typeof this.requestedSpendAmount !== 'undefined') {\n toReturn['requestedSpendAmount'] = this.requestedSpendAmount;\n }\n if (typeof this.requesterNote !== 'undefined') {\n toReturn['requesterNote'] = this.requesterNote;\n }\n return toReturn;\n }\n}\nclass CreateOrderRequest {\n static fromProto(proto) {\n let m = new CreateOrderRequest();\n m = Object.assign(m, proto);\n if (proto.orderItems) {\n m.orderItems = proto.orderItems.map(OrderItemParameters.fromProto);\n }\n if (proto.orderSource) {\n m.orderSource = Blame.fromProto(proto.orderSource);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.orderItems !== 'undefined' && this.orderItems !== null) {\n toReturn['orderItems'] = 'toApiJson' in this.orderItems ? this.orderItems.toApiJson() : this.orderItems;\n }\n if (typeof this.orderSource !== 'undefined' && this.orderSource !== null) {\n toReturn['orderSource'] = 'toApiJson' in this.orderSource ? this.orderSource.toApiJson() : this.orderSource;\n }\n if (typeof this.idempotencyKey !== 'undefined') {\n toReturn['idempotencyKey'] = this.idempotencyKey;\n }\n return toReturn;\n }\n}\nclass CreateOrderResponse {\n static fromProto(proto) {\n let m = new CreateOrderResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n return toReturn;\n }\n}\nclass DismissFailedOrderItemRequest {\n static fromProto(proto) {\n let m = new DismissFailedOrderItemRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n return toReturn;\n }\n}\nclass GetCurrentSpendRequest {\n static fromProto(proto) {\n let m = new GetCurrentSpendRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n return toReturn;\n }\n}\nclass GetCurrentSpendResponse {\n static fromProto(proto) {\n let m = new GetCurrentSpendResponse();\n m = Object.assign(m, proto);\n if (proto.spendAmount) {\n m.spendAmount = parseInt(proto.spendAmount, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.spendAmount !== 'undefined') {\n toReturn['spendAmount'] = this.spendAmount;\n }\n return toReturn;\n }\n}\nclass GetMultiActivationErrorsForOrderItemsRequest {\n static fromProto(proto) {\n let m = new GetMultiActivationErrorsForOrderItemsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItemIds !== 'undefined') {\n toReturn['orderItemIds'] = this.orderItemIds;\n }\n return toReturn;\n }\n}\nclass GetMultiActivationErrorsForOrderItemsResponse {\n static fromProto(proto) {\n let m = new GetMultiActivationErrorsForOrderItemsResponse();\n m = Object.assign(m, proto);\n if (proto.failureDetails) {\n m.failureDetails = proto.failureDetails.map(ActivationFailureDetails.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.failureDetails !== 'undefined' && this.failureDetails !== null) {\n toReturn['failureDetails'] = 'toApiJson' in this.failureDetails ? this.failureDetails.toApiJson() : this.failureDetails;\n }\n return toReturn;\n }\n}\nclass GetOrderByIdempotencyKeyRequest {\n static fromProto(proto) {\n let m = new GetOrderByIdempotencyKeyRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.idempotencyKey !== 'undefined') {\n toReturn['idempotencyKey'] = this.idempotencyKey;\n }\n return toReturn;\n }\n}\nclass GetOrderByIdempotencyKeyResponse {\n static fromProto(proto) {\n let m = new GetOrderByIdempotencyKeyResponse();\n m = Object.assign(m, proto);\n if (proto.order) {\n m.order = Order.fromProto(proto.order);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.order !== 'undefined' && this.order !== null) {\n toReturn['order'] = 'toApiJson' in this.order ? this.order.toApiJson() : this.order;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestHistoryRequest {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestHistoryRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n if (proto.filterOptions) {\n m.filterOptions = ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions.fromProto(proto.filterOptions);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.filterOptions !== 'undefined' && this.filterOptions !== null) {\n toReturn['filterOptions'] = 'toApiJson' in this.filterOptions ? this.filterOptions.toApiJson() : this.filterOptions;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestHistoryResponse {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestHistoryResponse();\n m = Object.assign(m, proto);\n if (proto.changeSpendRequestEvents) {\n m.changeSpendRequestEvents = proto.changeSpendRequestEvents.map(ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.changeSpendRequestEvents !== 'undefined' && this.changeSpendRequestEvents !== null) {\n toReturn['changeSpendRequestEvents'] = 'toApiJson' in this.changeSpendRequestEvents ? this.changeSpendRequestEvents.toApiJson() : this.changeSpendRequestEvents;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions();\n m = Object.assign(m, proto);\n if (proto.statuses) {\n m.statuses = proto.statuses.map(v => enumStringToValue$3(ChangeSpendRequestStatus, v));\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n if (typeof this.businessIds !== 'undefined') {\n toReturn['businessIds'] = this.businessIds;\n }\n if (typeof this.statuses !== 'undefined') {\n toReturn['statuses'] = this.statuses;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions();\n m = Object.assign(m, proto);\n if (proto.statuses) {\n m.statuses = proto.statuses.map(v => enumStringToValue$3(ChangeSpendRequestStatus, v));\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.itemIds !== 'undefined') {\n toReturn['itemIds'] = this.itemIds;\n }\n if (typeof this.businessIds !== 'undefined') {\n toReturn['businessIds'] = this.businessIds;\n }\n if (typeof this.changeRequestIds !== 'undefined') {\n toReturn['changeRequestIds'] = this.changeRequestIds;\n }\n if (typeof this.statuses !== 'undefined') {\n toReturn['statuses'] = this.statuses;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestsRequest {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestsRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n if (proto.filterOptions) {\n m.filterOptions = ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions.fromProto(proto.filterOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.filterOptions !== 'undefined' && this.filterOptions !== null) {\n toReturn['filterOptions'] = 'toApiJson' in this.filterOptions ? this.filterOptions.toApiJson() : this.filterOptions;\n }\n return toReturn;\n }\n}\nclass ListChangeSpendRequestsResponse {\n static fromProto(proto) {\n let m = new ListChangeSpendRequestsResponse();\n m = Object.assign(m, proto);\n if (proto.changeSpendRequests) {\n m.changeSpendRequests = proto.changeSpendRequests.map(ChangeSpendRequest.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.changeSpendRequests !== 'undefined' && this.changeSpendRequests !== null) {\n toReturn['changeSpendRequests'] = 'toApiJson' in this.changeSpendRequests ? this.changeSpendRequests.toApiJson() : this.changeSpendRequests;\n }\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass ListOrderItemsForBusinessRequest {\n static fromProto(proto) {\n let m = new ListOrderItemsForBusinessRequest();\n m = Object.assign(m, proto);\n if (proto.filterByStatuses) {\n m.filterByStatuses = proto.filterByStatuses.map(v => enumStringToValue$3(OrderItemStatus, v));\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\n }\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.filterByStatuses !== 'undefined') {\n toReturn['filterByStatuses'] = this.filterByStatuses;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass ListOrderItemsForOrderRequest {\n static fromProto(proto) {\n let m = new ListOrderItemsForOrderRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass ListOrderItemsResponse {\n static fromProto(proto) {\n let m = new ListOrderItemsResponse();\n m = Object.assign(m, proto);\n if (proto.orderItems) {\n m.orderItems = proto.orderItems.map(OrderItem.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItems !== 'undefined' && this.orderItems !== null) {\n toReturn['orderItems'] = 'toApiJson' in this.orderItems ? this.orderItems.toApiJson() : this.orderItems;\n }\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass OrderItemParameters {\n static fromProto(proto) {\n let m = new OrderItemParameters();\n m = Object.assign(m, proto);\n if (proto.productActivationInformation) {\n m.productActivationInformation = ProductActivationInformation.fromProto(proto.productActivationInformation);\n }\n if (proto.editionChangeInformation) {\n m.editionChangeInformation = EditionChangeInformation.fromProto(proto.editionChangeInformation);\n }\n if (proto.customPrice) {\n m.customPrice = parseInt(proto.customPrice, 10);\n }\n if (proto.retailAmount) {\n m.retailAmount = parseInt(proto.retailAmount, 10);\n }\n if (proto.retailFrequency) {\n m.retailFrequency = enumStringToValue$3(Frequency, proto.retailFrequency);\n }\n if (proto.consumer) {\n m.consumer = enumStringToValue$3(Consumer, proto.consumer);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.orderFormSubmissionId !== 'undefined') {\n toReturn['orderFormSubmissionId'] = this.orderFormSubmissionId;\n }\n if (typeof this.editionId !== 'undefined') {\n toReturn['editionId'] = this.editionId;\n }\n if (typeof this.isTrial !== 'undefined') {\n toReturn['isTrial'] = this.isTrial;\n }\n if (typeof this.productActivationInformation !== 'undefined' && this.productActivationInformation !== null) {\n toReturn['productActivationInformation'] = 'toApiJson' in this.productActivationInformation ? this.productActivationInformation.toApiJson() : this.productActivationInformation;\n }\n if (typeof this.editionChangeInformation !== 'undefined' && this.editionChangeInformation !== null) {\n toReturn['editionChangeInformation'] = 'toApiJson' in this.editionChangeInformation ? this.editionChangeInformation.toApiJson() : this.editionChangeInformation;\n }\n if (typeof this.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.customPrice !== 'undefined') {\n toReturn['customPrice'] = this.customPrice;\n }\n if (typeof this.packageInstanceId !== 'undefined') {\n toReturn['packageInstanceId'] = this.packageInstanceId;\n }\n if (typeof this.retailAmount !== 'undefined') {\n toReturn['retailAmount'] = this.retailAmount;\n }\n if (typeof this.retailFrequency !== 'undefined') {\n toReturn['retailFrequency'] = this.retailFrequency;\n }\n if (typeof this.subscriptionId !== 'undefined') {\n toReturn['subscriptionId'] = this.subscriptionId;\n }\n if (typeof this.consumer !== 'undefined') {\n toReturn['consumer'] = this.consumer;\n }\n return toReturn;\n }\n}\nclass RecordOrderFormSubmissionAndActivateOrderItemRequest {\n static fromProto(proto) {\n let m = new RecordOrderFormSubmissionAndActivateOrderItemRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderItemId !== 'undefined') {\n toReturn['orderItemId'] = this.orderItemId;\n }\n if (typeof this.orderFormSubmissionId !== 'undefined') {\n toReturn['orderFormSubmissionId'] = this.orderFormSubmissionId;\n }\n return toReturn;\n }\n}\nclass ResolveChangeSpendRequestRequest {\n static fromProto(proto) {\n let m = new ResolveChangeSpendRequestRequest();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$3(ChangeSpendRequestStatus, proto.status);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.changeRequestId !== 'undefined') {\n toReturn['changeRequestId'] = this.changeRequestId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.itemId !== 'undefined') {\n toReturn['itemId'] = this.itemId;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.statusUpdateNote !== 'undefined') {\n toReturn['statusUpdateNote'] = this.statusUpdateNote;\n }\n return toReturn;\n }\n}\nclass ResolvePendingActivationRequest {\n static fromProto(proto) {\n let m = new ResolvePendingActivationRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.productId !== 'undefined') {\n toReturn['productId'] = this.productId;\n }\n if (typeof this.activationId !== 'undefined') {\n toReturn['activationId'] = this.activationId;\n }\n if (typeof this.approved !== 'undefined') {\n toReturn['approved'] = this.approved;\n }\n if (typeof this.rejectedReason !== 'undefined') {\n toReturn['rejectedReason'] = this.rejectedReason;\n }\n if (typeof this.accountId !== 'undefined') {\n toReturn['accountId'] = this.accountId;\n }\n if (typeof this.activationDescriptor !== 'undefined') {\n toReturn['activationDescriptor'] = this.activationDescriptor;\n }\n if (typeof this.force !== 'undefined') {\n toReturn['force'] = this.force;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass FulfillmentFormConfig {\n static fromProto(proto) {\n let m = new FulfillmentFormConfig();\n m = Object.assign(m, proto);\n if (proto.orderForm) {\n m.orderForm = proto.orderForm.map(FulfillmentFormField.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.orderForm !== 'undefined' && this.orderForm !== null) {\n toReturn['orderForm'] = 'toApiJson' in this.orderForm ? this.orderForm.toApiJson() : this.orderForm;\n }\n if (typeof this.activationMessage !== 'undefined') {\n toReturn['activationMessage'] = this.activationMessage;\n }\n if (typeof this.separateOrderForms !== 'undefined') {\n toReturn['separateOrderForms'] = this.separateOrderForms;\n }\n if (typeof this.usesPostBillingOrderForm !== 'undefined') {\n toReturn['usesPostBillingOrderForm'] = this.usesPostBillingOrderForm;\n }\n if (typeof this.footerText !== 'undefined') {\n toReturn['footerText'] = this.footerText;\n }\n return toReturn;\n }\n}\nclass FulfillmentFormField {\n static fromProto(proto) {\n let m = new FulfillmentFormField();\n m = Object.assign(m, proto);\n if (proto.maxChoices) {\n m.maxChoices = parseInt(proto.maxChoices, 10);\n }\n if (proto.optionsWithLabels) {\n m.optionsWithLabels = proto.optionsWithLabels.map(FulfillmentFormFieldOption.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.required !== 'undefined') {\n toReturn['required'] = this.required;\n }\n if (typeof this.prefix !== 'undefined') {\n toReturn['prefix'] = this.prefix;\n }\n if (typeof this.suffix !== 'undefined') {\n toReturn['suffix'] = this.suffix;\n }\n if (typeof this.regexValidator !== 'undefined') {\n toReturn['regexValidator'] = this.regexValidator;\n }\n if (typeof this.regexErrorMessage !== 'undefined') {\n toReturn['regexErrorMessage'] = this.regexErrorMessage;\n }\n if (typeof this.useWebhookValidator !== 'undefined') {\n toReturn['useWebhookValidator'] = this.useWebhookValidator;\n }\n if (typeof this.allowMultiples !== 'undefined') {\n toReturn['allowMultiples'] = this.allowMultiples;\n }\n if (typeof this.allowDuplicates !== 'undefined') {\n toReturn['allowDuplicates'] = this.allowDuplicates;\n }\n if (typeof this.maxChoices !== 'undefined') {\n toReturn['maxChoices'] = this.maxChoices;\n }\n if (typeof this.forOfficeUseOnly !== 'undefined') {\n toReturn['forOfficeUseOnly'] = this.forOfficeUseOnly;\n }\n if (typeof this.optionsWithLabels !== 'undefined' && this.optionsWithLabels !== null) {\n toReturn['optionsWithLabels'] = 'toApiJson' in this.optionsWithLabels ? this.optionsWithLabels.toApiJson() : this.optionsWithLabels;\n }\n if (typeof this.officeEditableOnly !== 'undefined') {\n toReturn['officeEditableOnly'] = this.officeEditableOnly;\n }\n return toReturn;\n }\n}\nclass FulfillmentFormFieldOption {\n static fromProto(proto) {\n let m = new FulfillmentFormFieldOption();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass CustomFields {\n static fromProto(proto) {\n let m = new CustomFields();\n m = Object.assign(m, proto);\n if (proto.fields) {\n m.fields = proto.fields.map(Field.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fields !== 'undefined' && this.fields !== null) {\n toReturn['fields'] = 'toApiJson' in this.fields ? this.fields.toApiJson() : this.fields;\n }\n return toReturn;\n }\n}\nclass Field {\n static fromProto(proto) {\n let m = new Field();\n m = Object.assign(m, proto);\n if (proto.fieldType) {\n m.fieldType = enumStringToValue$1(FieldType, proto.fieldType);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fieldId !== 'undefined') {\n toReturn['fieldId'] = this.fieldId;\n }\n if (typeof this.answer !== 'undefined') {\n toReturn['answer'] = this.answer;\n }\n if (typeof this.fieldType !== 'undefined') {\n toReturn['fieldType'] = this.fieldType;\n }\n if (typeof this.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.prefix !== 'undefined') {\n toReturn['prefix'] = this.prefix;\n }\n if (typeof this.suffix !== 'undefined') {\n toReturn['suffix'] = this.suffix;\n }\n if (typeof this.regexValidator !== 'undefined') {\n toReturn['regexValidator'] = this.regexValidator;\n }\n if (typeof this.regexErrorMessage !== 'undefined') {\n toReturn['regexErrorMessage'] = this.regexErrorMessage;\n }\n return toReturn;\n }\n}\nclass FormAnswers {\n static fromProto(proto) {\n let m = new FormAnswers();\n m = Object.assign(m, proto);\n if (proto.customFields) {\n m.customFields = proto.customFields.map(CustomFields.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.formId !== 'undefined') {\n toReturn['formId'] = this.formId;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n return toReturn;\n }\n}\nclass FulfillmentFormSubmission {\n static fromProto(proto) {\n let m = new FulfillmentFormSubmission();\n m = Object.assign(m, proto);\n if (proto.quantity) {\n m.quantity = parseInt(proto.quantity, 10);\n }\n if (proto.formAnswers) {\n m.formAnswers = proto.formAnswers.map(FormAnswers.fromProto);\n }\n if (proto.formConfig) {\n m.formConfig = FulfillmentFormConfig.fromProto(proto.formConfig);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrderId !== 'undefined') {\n toReturn['fulfillmentOrderId'] = this.fulfillmentOrderId;\n }\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.version !== 'undefined') {\n toReturn['version'] = this.version;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.quantity !== 'undefined') {\n toReturn['quantity'] = this.quantity;\n }\n if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {\n toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;\n }\n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {\n toReturn['formConfig'] = 'toApiJson' in this.formConfig ? this.formConfig.toApiJson() : this.formConfig;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n return toReturn;\n }\n}\nclass GetLatestFulfillmentFormSubmissionRequest {\n static fromProto(proto) {\n let m = new GetLatestFulfillmentFormSubmissionRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass GetLatestFulfillmentFormSubmissionResponse {\n static fromProto(proto) {\n let m = new GetLatestFulfillmentFormSubmissionResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentFormSubmission) {\n m.fulfillmentFormSubmission = FulfillmentFormSubmission.fromProto(proto.fulfillmentFormSubmission);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentFormSubmission !== 'undefined' && this.fulfillmentFormSubmission !== null) {\n toReturn['fulfillmentFormSubmission'] = 'toApiJson' in this.fulfillmentFormSubmission ? this.fulfillmentFormSubmission.toApiJson() : this.fulfillmentFormSubmission;\n }\n return toReturn;\n }\n}\nclass UpsertFulfillmentFormSubmissionRequest {\n static fromProto(proto) {\n let m = new UpsertFulfillmentFormSubmissionRequest();\n m = Object.assign(m, proto);\n if (proto.formAnswers) {\n m.formAnswers = proto.formAnswers.map(FormAnswers.fromProto);\n }\n if (proto.quantity) {\n m.quantity = parseInt(proto.quantity, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.formAnswers !== 'undefined' && this.formAnswers !== null) {\n toReturn['formAnswers'] = 'toApiJson' in this.formAnswers ? this.formAnswers.toApiJson() : this.formAnswers;\n }\n if (typeof this.lastViewedTimestamp !== 'undefined') {\n toReturn['lastViewedTimestamp'] = this.lastViewedTimestamp;\n }\n if (typeof this.quantity !== 'undefined') {\n toReturn['quantity'] = this.quantity;\n }\n return toReturn;\n }\n}\nclass UpsertFulfillmentFormSubmissionResponse {\n static fromProto(proto) {\n let m = new UpsertFulfillmentFormSubmissionResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.version !== 'undefined') {\n toReturn['version'] = this.version;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass PendingActivationInfoActivationStatusesEntry {\n static fromProto(proto) {\n let m = new PendingActivationInfoActivationStatusesEntry();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = enumStringToValue(PendingActivationStatus, proto.value);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass AppInfo {\n static fromProto(proto) {\n let m = new AppInfo();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.appName !== 'undefined') {\n toReturn['appName'] = this.appName;\n }\n return toReturn;\n }\n}\nclass BusinessInfo {\n static fromProto(proto) {\n let m = new BusinessInfo();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.address !== 'undefined') {\n toReturn['address'] = this.address;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.partnerLogoUrl !== 'undefined') {\n toReturn['partnerLogoUrl'] = this.partnerLogoUrl;\n }\n return toReturn;\n }\n}\nclass SalesInfoCost {\n static fromProto(proto) {\n let m = new SalesInfoCost();\n m = Object.assign(m, proto);\n if (proto.price) {\n m.price = parseInt(proto.price, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.billingFrequency !== 'undefined') {\n toReturn['billingFrequency'] = this.billingFrequency;\n }\n if (typeof this.currency !== 'undefined') {\n toReturn['currency'] = this.currency;\n }\n if (typeof this.price !== 'undefined') {\n toReturn['price'] = this.price;\n }\n return toReturn;\n }\n}\nclass CreateFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new CreateFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.resellerPartnerId !== 'undefined') {\n toReturn['resellerPartnerId'] = this.resellerPartnerId;\n }\n if (typeof this.vendorPartnerId !== 'undefined') {\n toReturn['vendorPartnerId'] = this.vendorPartnerId;\n }\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n return toReturn;\n }\n}\nclass CreateFulfillmentOrderResponse {\n static fromProto(proto) {\n let m = new CreateFulfillmentOrderResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrder) {\n m.fulfillmentOrder = FulfillmentOrder.fromProto(proto.fulfillmentOrder);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrder !== 'undefined' && this.fulfillmentOrder !== null) {\n toReturn['fulfillmentOrder'] = 'toApiJson' in this.fulfillmentOrder ? this.fulfillmentOrder.toApiJson() : this.fulfillmentOrder;\n }\n return toReturn;\n }\n}\nclass DeleteFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new DeleteFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrderId !== 'undefined') {\n toReturn['fulfillmentOrderId'] = this.fulfillmentOrderId;\n }\n return toReturn;\n }\n}\nclass FulfillmentFormInfo {\n static fromProto(proto) {\n let m = new FulfillmentFormInfo();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.hasForm !== 'undefined') {\n toReturn['hasForm'] = this.hasForm;\n }\n return toReturn;\n }\n}\nclass FulfillmentOrder {\n static fromProto(proto) {\n let m = new FulfillmentOrder();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue(FulfillmentOrderStatus, proto.status);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n if (proto.businessInfo) {\n m.businessInfo = BusinessInfo.fromProto(proto.businessInfo);\n }\n if (proto.resellerPartnerInfo) {\n m.resellerPartnerInfo = ResellerPartnerInfo.fromProto(proto.resellerPartnerInfo);\n }\n if (proto.appInfo) {\n m.appInfo = AppInfo.fromProto(proto.appInfo);\n }\n if (proto.salesInfo) {\n m.salesInfo = SalesInfo.fromProto(proto.salesInfo);\n }\n if (proto.pendingActivationInfo) {\n m.pendingActivationInfo = PendingActivationInfo.fromProto(proto.pendingActivationInfo);\n }\n if (proto.fulfillmentFormInfo) {\n m.fulfillmentFormInfo = FulfillmentFormInfo.fromProto(proto.fulfillmentFormInfo);\n }\n if (proto.associatedProjects) {\n m.associatedProjects = proto.associatedProjects.map(FulfillmentOrderProjects.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrderId !== 'undefined') {\n toReturn['fulfillmentOrderId'] = this.fulfillmentOrderId;\n }\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.resellerPartnerId !== 'undefined') {\n toReturn['resellerPartnerId'] = this.resellerPartnerId;\n }\n if (typeof this.vendorPartnerId !== 'undefined') {\n toReturn['vendorPartnerId'] = this.vendorPartnerId;\n }\n if (typeof this.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.businessInfo !== 'undefined' && this.businessInfo !== null) {\n toReturn['businessInfo'] = 'toApiJson' in this.businessInfo ? this.businessInfo.toApiJson() : this.businessInfo;\n }\n if (typeof this.resellerPartnerInfo !== 'undefined' && this.resellerPartnerInfo !== null) {\n toReturn['resellerPartnerInfo'] = 'toApiJson' in this.resellerPartnerInfo ? this.resellerPartnerInfo.toApiJson() : this.resellerPartnerInfo;\n }\n if (typeof this.appInfo !== 'undefined' && this.appInfo !== null) {\n toReturn['appInfo'] = 'toApiJson' in this.appInfo ? this.appInfo.toApiJson() : this.appInfo;\n }\n if (typeof this.salesInfo !== 'undefined' && this.salesInfo !== null) {\n toReturn['salesInfo'] = 'toApiJson' in this.salesInfo ? this.salesInfo.toApiJson() : this.salesInfo;\n }\n if (typeof this.pendingActivationInfo !== 'undefined' && this.pendingActivationInfo !== null) {\n toReturn['pendingActivationInfo'] = 'toApiJson' in this.pendingActivationInfo ? this.pendingActivationInfo.toApiJson() : this.pendingActivationInfo;\n }\n if (typeof this.pendingActivationIds !== 'undefined') {\n toReturn['pendingActivationIds'] = this.pendingActivationIds;\n }\n if (typeof this.fulfillmentFormInfo !== 'undefined' && this.fulfillmentFormInfo !== null) {\n toReturn['fulfillmentFormInfo'] = 'toApiJson' in this.fulfillmentFormInfo ? this.fulfillmentFormInfo.toApiJson() : this.fulfillmentFormInfo;\n }\n if (typeof this.associatedProjects !== 'undefined' && this.associatedProjects !== null) {\n toReturn['associatedProjects'] = 'toApiJson' in this.associatedProjects ? this.associatedProjects.toApiJson() : this.associatedProjects;\n }\n return toReturn;\n }\n}\nclass FulfillmentOrderProjectionFilter {\n static fromProto(proto) {\n let m = new FulfillmentOrderProjectionFilter();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.includeBusinessInfo !== 'undefined') {\n toReturn['includeBusinessInfo'] = this.includeBusinessInfo;\n }\n if (typeof this.includeResellerPartnerInfo !== 'undefined') {\n toReturn['includeResellerPartnerInfo'] = this.includeResellerPartnerInfo;\n }\n if (typeof this.includeAppInfo !== 'undefined') {\n toReturn['includeAppInfo'] = this.includeAppInfo;\n }\n if (typeof this.includeSalesInfo !== 'undefined') {\n toReturn['includeSalesInfo'] = this.includeSalesInfo;\n }\n if (typeof this.includePendingActivationInfo !== 'undefined') {\n toReturn['includePendingActivationInfo'] = this.includePendingActivationInfo;\n }\n if (typeof this.includeFulfillmentFormInfo !== 'undefined') {\n toReturn['includeFulfillmentFormInfo'] = this.includeFulfillmentFormInfo;\n }\n if (typeof this.includeProjects !== 'undefined') {\n toReturn['includeProjects'] = this.includeProjects;\n }\n return toReturn;\n }\n}\nclass FulfillmentOrderProjects {\n static fromProto(proto) {\n let m = new FulfillmentOrderProjects();\n m = Object.assign(m, proto);\n if (proto.projectDueDate) {\n m.projectDueDate = new Date(proto.projectDueDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.projectId !== 'undefined') {\n toReturn['projectId'] = this.projectId;\n }\n if (typeof this.projectName !== 'undefined') {\n toReturn['projectName'] = this.projectName;\n }\n if (typeof this.projectStatus !== 'undefined') {\n toReturn['projectStatus'] = this.projectStatus;\n }\n if (typeof this.projectAssigneeName !== 'undefined') {\n toReturn['projectAssigneeName'] = this.projectAssigneeName;\n }\n if (typeof this.projectDueDate !== 'undefined' && this.projectDueDate !== null) {\n toReturn['projectDueDate'] = 'toApiJson' in this.projectDueDate ? this.projectDueDate.toApiJson() : this.projectDueDate;\n }\n return toReturn;\n }\n}\nclass FulfillmentOrders {\n static fromProto(proto) {\n let m = new FulfillmentOrders();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrders) {\n m.fulfillmentOrders = proto.fulfillmentOrders.map(FulfillmentOrder.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrders !== 'undefined' && this.fulfillmentOrders !== null) {\n toReturn['fulfillmentOrders'] = 'toApiJson' in this.fulfillmentOrders ? this.fulfillmentOrders.toApiJson() : this.fulfillmentOrders;\n }\n return toReturn;\n }\n}\nclass GetMultiBySalesOrderIdsResponseFulfillmentOrdersMapEntry {\n static fromProto(proto) {\n let m = new GetMultiBySalesOrderIdsResponseFulfillmentOrdersMapEntry();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = FulfillmentOrders.fromProto(proto.value);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined' && this.value !== null) {\n toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;\n }\n return toReturn;\n }\n}\nclass GetFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new GetFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n if (proto.projectionFilter) {\n m.projectionFilter = FulfillmentOrderProjectionFilter.fromProto(proto.projectionFilter);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrderId !== 'undefined') {\n toReturn['fulfillmentOrderId'] = this.fulfillmentOrderId;\n }\n if (typeof this.projectionFilter !== 'undefined' && this.projectionFilter !== null) {\n toReturn['projectionFilter'] = 'toApiJson' in this.projectionFilter ? this.projectionFilter.toApiJson() : this.projectionFilter;\n }\n return toReturn;\n }\n}\nclass GetFulfillmentOrderResponse {\n static fromProto(proto) {\n let m = new GetFulfillmentOrderResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrder) {\n m.fulfillmentOrder = FulfillmentOrder.fromProto(proto.fulfillmentOrder);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrder !== 'undefined' && this.fulfillmentOrder !== null) {\n toReturn['fulfillmentOrder'] = 'toApiJson' in this.fulfillmentOrder ? this.fulfillmentOrder.toApiJson() : this.fulfillmentOrder;\n }\n return toReturn;\n }\n}\nclass GetFulfillmentOrdersForSalesOrderRequest {\n static fromProto(proto) {\n let m = new GetFulfillmentOrdersForSalesOrderRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n if (proto.projectionFilter) {\n m.projectionFilter = FulfillmentOrderProjectionFilter.fromProto(proto.projectionFilter);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.projectionFilter !== 'undefined' && this.projectionFilter !== null) {\n toReturn['projectionFilter'] = 'toApiJson' in this.projectionFilter ? this.projectionFilter.toApiJson() : this.projectionFilter;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass GetFulfillmentOrdersForSalesOrderResponse {\n static fromProto(proto) {\n let m = new GetFulfillmentOrdersForSalesOrderResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrders) {\n m.fulfillmentOrders = proto.fulfillmentOrders.map(FulfillmentOrder.fromProto);\n }\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrders !== 'undefined' && this.fulfillmentOrders !== null) {\n toReturn['fulfillmentOrders'] = 'toApiJson' in this.fulfillmentOrders ? this.fulfillmentOrders.toApiJson() : this.fulfillmentOrders;\n }\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass GetMultiBySalesOrderIdsRequest {\n static fromProto(proto) {\n let m = new GetMultiBySalesOrderIdsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.salesOrderIds !== 'undefined') {\n toReturn['salesOrderIds'] = this.salesOrderIds;\n }\n return toReturn;\n }\n}\nclass GetMultiBySalesOrderIdsResponse {\n static fromProto(proto) {\n let m = new GetMultiBySalesOrderIdsResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrdersMap) {\n m.fulfillmentOrdersMap = Object.keys(proto.fulfillmentOrdersMap).reduce((obj, k) => {\n obj[k] = FulfillmentOrders.fromProto(proto.fulfillmentOrdersMap[k]);\n return obj;\n }, {});\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrdersMap !== 'undefined' && this.fulfillmentOrdersMap !== null) {\n toReturn['fulfillmentOrdersMap'] = 'toApiJson' in this.fulfillmentOrdersMap ? this.fulfillmentOrdersMap.toApiJson() : this.fulfillmentOrdersMap;\n }\n return toReturn;\n }\n}\nclass SalesInfoOrderFormSubmission {\n static fromProto(proto) {\n let m = new SalesInfoOrderFormSubmission();\n m = Object.assign(m, proto);\n if (proto.commonFields) {\n m.commonFields = proto.commonFields.map(Field.fromProto);\n }\n if (proto.customFields) {\n m.customFields = proto.customFields.map(Field.fromProto);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.commonFields !== 'undefined' && this.commonFields !== null) {\n toReturn['commonFields'] = 'toApiJson' in this.commonFields ? this.commonFields.toApiJson() : this.commonFields;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n return toReturn;\n }\n}\nclass PendingActivationInfo {\n static fromProto(proto) {\n let m = new PendingActivationInfo();\n m = Object.assign(m, proto);\n if (proto.activationStatuses) {\n m.activationStatuses = Object.keys(proto.activationStatuses).reduce((obj, k) => {\n obj[k] = enumStringToValue(PendingActivationStatus, proto.activationStatuses[k]);\n return obj;\n }, {});\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.activationStatuses !== 'undefined' && this.activationStatuses !== null) {\n toReturn['activationStatuses'] = 'toApiJson' in this.activationStatuses ? this.activationStatuses.toApiJson() : this.activationStatuses;\n }\n return toReturn;\n }\n}\nclass ResellerPartnerInfo {\n static fromProto(proto) {\n let m = new ResellerPartnerInfo();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass SalesInfo {\n static fromProto(proto) {\n let m = new SalesInfo();\n m = Object.assign(m, proto);\n if (proto.cost) {\n m.cost = SalesInfoCost.fromProto(proto.cost);\n }\n if (proto.orderForm) {\n m.orderForm = SalesInfoOrderFormSubmission.fromProto(proto.orderForm);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.cost !== 'undefined' && this.cost !== null) {\n toReturn['cost'] = 'toApiJson' in this.cost ? this.cost.toApiJson() : this.cost;\n }\n if (typeof this.submittedBy !== 'undefined') {\n toReturn['submittedBy'] = this.submittedBy;\n }\n if (typeof this.orderForm !== 'undefined' && this.orderForm !== null) {\n toReturn['orderForm'] = 'toApiJson' in this.orderForm ? this.orderForm.toApiJson() : this.orderForm;\n }\n return toReturn;\n }\n}\nclass SearchFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new SearchFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n if (proto.statuses) {\n m.statuses = proto.statuses.map(v => enumStringToValue(FulfillmentOrderStatus, v));\n }\n if (proto.timeOptions) {\n m.timeOptions = SearchFulfillmentOrderTimeOptions.fromProto(proto.timeOptions);\n }\n if (proto.sortDirection) {\n m.sortDirection = enumStringToValue(SortDirection, proto.sortDirection);\n }\n if (proto.projectionFilter) {\n m.projectionFilter = FulfillmentOrderProjectionFilter.fromProto(proto.projectionFilter);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.salesOrderIds !== 'undefined') {\n toReturn['salesOrderIds'] = this.salesOrderIds;\n }\n if (typeof this.businessIds !== 'undefined') {\n toReturn['businessIds'] = this.businessIds;\n }\n if (typeof this.resellerPartnerIds !== 'undefined') {\n toReturn['resellerPartnerIds'] = this.resellerPartnerIds;\n }\n if (typeof this.vendorPartnerIds !== 'undefined') {\n toReturn['vendorPartnerIds'] = this.vendorPartnerIds;\n }\n if (typeof this.appIds !== 'undefined') {\n toReturn['appIds'] = this.appIds;\n }\n if (typeof this.statuses !== 'undefined') {\n toReturn['statuses'] = this.statuses;\n }\n if (typeof this.timeOptions !== 'undefined' && this.timeOptions !== null) {\n toReturn['timeOptions'] = 'toApiJson' in this.timeOptions ? this.timeOptions.toApiJson() : this.timeOptions;\n }\n if (typeof this.sortField !== 'undefined') {\n toReturn['sortField'] = this.sortField;\n }\n if (typeof this.sortDirection !== 'undefined') {\n toReturn['sortDirection'] = this.sortDirection;\n }\n if (typeof this.projectionFilter !== 'undefined' && this.projectionFilter !== null) {\n toReturn['projectionFilter'] = 'toApiJson' in this.projectionFilter ? this.projectionFilter.toApiJson() : this.projectionFilter;\n }\n if (typeof this.activationIds !== 'undefined') {\n toReturn['activationIds'] = this.activationIds;\n }\n if (typeof this.excludeAppIds !== 'undefined') {\n toReturn['excludeAppIds'] = this.excludeAppIds;\n }\n if (typeof this.excludeResellerIds !== 'undefined') {\n toReturn['excludeResellerIds'] = this.excludeResellerIds;\n }\n if (typeof this.hasForm !== 'undefined') {\n toReturn['hasForm'] = this.hasForm;\n }\n if (typeof this.fulfillmentOrderIds !== 'undefined') {\n toReturn['fulfillmentOrderIds'] = this.fulfillmentOrderIds;\n }\n return toReturn;\n }\n}\nclass SearchFulfillmentOrderResponse {\n static fromProto(proto) {\n let m = new SearchFulfillmentOrderResponse();\n m = Object.assign(m, proto);\n if (proto.fulfillmentOrders) {\n m.fulfillmentOrders = proto.fulfillmentOrders.map(FulfillmentOrder.fromProto);\n }\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrders !== 'undefined' && this.fulfillmentOrders !== null) {\n toReturn['fulfillmentOrders'] = 'toApiJson' in this.fulfillmentOrders ? this.fulfillmentOrders.toApiJson() : this.fulfillmentOrders;\n }\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass SearchFulfillmentOrderTimeOptions {\n static fromProto(proto) {\n let m = new SearchFulfillmentOrderTimeOptions();\n m = Object.assign(m, proto);\n if (proto.startDate) {\n m.startDate = new Date(proto.startDate);\n }\n if (proto.endDate) {\n m.endDate = new Date(proto.endDate);\n }\n if (proto.timeField) {\n m.timeField = enumStringToValue(TimeField, proto.timeField);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.startDate !== 'undefined' && this.startDate !== null) {\n toReturn['startDate'] = 'toApiJson' in this.startDate ? this.startDate.toApiJson() : this.startDate;\n }\n if (typeof this.endDate !== 'undefined' && this.endDate !== null) {\n toReturn['endDate'] = 'toApiJson' in this.endDate ? this.endDate.toApiJson() : this.endDate;\n }\n if (typeof this.timeField !== 'undefined') {\n toReturn['timeField'] = this.timeField;\n }\n return toReturn;\n }\n}\nclass SendFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new SendFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.salesOrderId !== 'undefined') {\n toReturn['salesOrderId'] = this.salesOrderId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.itemNames !== 'undefined') {\n toReturn['itemNames'] = this.itemNames;\n }\n if (typeof this.message !== 'undefined') {\n toReturn['message'] = this.message;\n }\n return toReturn;\n }\n}\nclass UpdateFulfillmentOrderRequest {\n static fromProto(proto) {\n let m = new UpdateFulfillmentOrderRequest();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue(FulfillmentOrderStatus, proto.status);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.fulfillmentOrderId !== 'undefined') {\n toReturn['fulfillmentOrderId'] = this.fulfillmentOrderId;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'order-fulfillment-api.vendasta-local.com',\n 'test': '',\n 'demo': 'order-fulfillment-api-demo.apigateway.co',\n 'prod': 'order-fulfillment-api-prod.apigateway.co',\n 'production': 'order-fulfillment-api-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n class HostService {\n get host() {\n return hostMap[environment.toLowerCase()];\n }\n get hostWithScheme() {\n return 'https://' + this.host;\n }\n }\n HostService.ɵfac = function HostService_Factory(t) {\n return new (t || HostService)();\n };\n HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HostService,\n factory: HostService.ɵfac,\n providedIn: 'root'\n });\n return HostService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet OrderFulfillmentApiService = /*#__PURE__*/(() => {\n class OrderFulfillmentApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n createOrder(r) {\n const request = r.toApiJson ? r : new CreateOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/CreateOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateOrderResponse.fromProto(resp)));\n }\n listOrderItemsForBusiness(r) {\n const request = r.toApiJson ? r : new ListOrderItemsForBusinessRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ListOrderItemsForBusiness\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListOrderItemsResponse.fromProto(resp)));\n }\n getOrderByIdempotencyKey(r) {\n const request = r.toApiJson ? r : new GetOrderByIdempotencyKeyRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/GetOrderByIdempotencyKey\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetOrderByIdempotencyKeyResponse.fromProto(resp)));\n }\n listOrderItemsForOrder(r) {\n const request = r.toApiJson ? r : new ListOrderItemsForOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ListOrderItemsForOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListOrderItemsResponse.fromProto(resp)));\n }\n dismissFailedOrderItem(r) {\n const request = r.toApiJson ? r : new DismissFailedOrderItemRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/DismissFailedOrderItem\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n resolvePendingActivation(r) {\n const request = r.toApiJson ? r : new ResolvePendingActivationRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ResolvePendingActivation\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n cancelEditionChange(r) {\n const request = r.toApiJson ? r : new CancelEditionChangeRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/CancelEditionChange\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n cancelOrderItemWaitingForConsumerInformation(r) {\n const request = r.toApiJson ? r : new CancelOrderItemWaitingForConsumerInformationRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/CancelOrderItemWaitingForConsumerInformation\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n recordOrderFormSubmissionAndActivateOrderItem(r) {\n const request = r.toApiJson ? r : new RecordOrderFormSubmissionAndActivateOrderItemRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/RecordOrderFormSubmissionAndActivateOrderItem\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getMultiActivationErrorsForOrderItems(r) {\n const request = r.toApiJson ? r : new GetMultiActivationErrorsForOrderItemsRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/GetMultiActivationErrorsForOrderItems\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiActivationErrorsForOrderItemsResponse.fromProto(resp)));\n }\n requestSpendAmountChange(r) {\n const request = r.toApiJson ? r : new ChangeSpendRequestRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/RequestSpendAmountChange\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n listChangeSpendRequests(r) {\n const request = r.toApiJson ? r : new ListChangeSpendRequestsRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ListChangeSpendRequests\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListChangeSpendRequestsResponse.fromProto(resp)));\n }\n resolveChangeSpendRequest(r) {\n const request = r.toApiJson ? r : new ResolveChangeSpendRequestRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ResolveChangeSpendRequest\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n listChangeSpendRequestHistory(r) {\n const request = r.toApiJson ? r : new ListChangeSpendRequestHistoryRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/ListChangeSpendRequestHistory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListChangeSpendRequestHistoryResponse.fromProto(resp)));\n }\n getCurrentSpend(r) {\n const request = r.toApiJson ? r : new GetCurrentSpendRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.OrderFulfillmentService/GetCurrentSpend\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCurrentSpendResponse.fromProto(resp)));\n }\n }\n OrderFulfillmentApiService.ɵfac = function OrderFulfillmentApiService_Factory(t) {\n return new (t || OrderFulfillmentApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n OrderFulfillmentApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OrderFulfillmentApiService,\n factory: OrderFulfillmentApiService.ɵfac,\n providedIn: 'root'\n });\n return OrderFulfillmentApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet OrderFulfillmentService = /*#__PURE__*/(() => {\n class OrderFulfillmentService {\n constructor(_api) {\n this._api = _api;\n }\n createOrder(partnerId, orderParams, orderSources) {\n return this._api.createOrder({\n partnerId,\n orderItems: orderParams,\n orderSource: orderSources\n }).pipe(map(resp => {\n return resp.orderId;\n }));\n }\n listOrderItemsForBusiness(businessId, cursor, pageSize, filterByStatuses, fieldMask) {\n return this._api.listOrderItemsForBusiness({\n businessId,\n filterByStatuses,\n fieldMask,\n cursor,\n pageSize\n });\n }\n getOrderByIdempotencyKey(idempotencyKey) {\n return this._api.getOrderByIdempotencyKey({\n idempotencyKey: idempotencyKey\n }).pipe(map(resp => {\n return resp.order;\n }));\n }\n listOrderItemsForOrder(orderId, cursor, pageSize) {\n return this._api.listOrderItemsForOrder({\n orderId,\n cursor,\n pageSize\n });\n }\n dismissFailedOrderItem(orderId, businessId, itemId, orderItemId) {\n return this._api.dismissFailedOrderItem({\n orderId,\n businessId,\n itemId,\n orderItemId\n });\n }\n cancelEditionChange(orderItemId) {\n return this._api.cancelEditionChange({\n orderItemId\n });\n }\n getMultiActivationErrorsForOrderItems(orderItemIds) {\n return this._api.getMultiActivationErrorsForOrderItems({\n orderItemIds: orderItemIds\n }).pipe(map(resp => {\n return resp.failureDetails;\n }));\n }\n changeSpendRequest(businessId, itemId, activationId, requestedSpendAmount, requesterNote) {\n return this._api.requestSpendAmountChange({\n businessId,\n itemId,\n activationId,\n requestedSpendAmount,\n requesterNote\n });\n }\n listChangeSpendRequests(pageSize, cursor, appIds, businessIds, requestsStatuses) {\n return this._api.listChangeSpendRequests({\n pageSize: pageSize,\n cursor: cursor,\n filterOptions: {\n itemIds: appIds,\n businessIds: businessIds,\n statuses: requestsStatuses\n }\n });\n }\n listChangeSpendRequestHistory(pageSize, cursor, appIds, businessIds, changeRequestIds, requestsStatuses, fieldMasks) {\n return this._api.listChangeSpendRequestHistory({\n pageSize: pageSize,\n cursor: cursor,\n filterOptions: {\n itemIds: appIds,\n businessIds: businessIds,\n changeRequestIds: changeRequestIds,\n statuses: requestsStatuses\n },\n fieldMask: {\n paths: fieldMasks\n }\n });\n }\n resolveChangeSpendRequest(changeRequestId, businessId, appOrAddonId, activationId, status, statusUpdateNote) {\n return this._api.resolveChangeSpendRequest({\n changeRequestId: changeRequestId,\n itemId: appOrAddonId,\n activationId: activationId,\n status: status,\n statusUpdateNote: statusUpdateNote,\n businessId: businessId\n });\n }\n GetCurrentSpend(partnerId, businessId, appOrAddonId, activationId) {\n return this._api.getCurrentSpend({\n partnerId: partnerId,\n businessId: businessId,\n itemId: appOrAddonId,\n activationId: activationId\n });\n }\n }\n OrderFulfillmentService.ɵfac = function OrderFulfillmentService_Factory(t) {\n return new (t || OrderFulfillmentService)(i0.ɵɵinject(OrderFulfillmentApiService));\n };\n OrderFulfillmentService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OrderFulfillmentService,\n factory: OrderFulfillmentService.ɵfac,\n providedIn: 'root'\n });\n return OrderFulfillmentService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet FulfillmentFormSubmissionApiService = /*#__PURE__*/(() => {\n class FulfillmentFormSubmissionApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getLatestFulfillmentFormSubmission(r) {\n const request = r.toApiJson ? r : new GetLatestFulfillmentFormSubmissionRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentFormSubmissionService/GetLatestFulfillmentFormSubmission\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetLatestFulfillmentFormSubmissionResponse.fromProto(resp)));\n }\n upsertFulfillmentFormSubmission(r) {\n const request = r.toApiJson ? r : new UpsertFulfillmentFormSubmissionRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentFormSubmissionService/UpsertFulfillmentFormSubmission\", request.toApiJson(), this.apiOptions()).pipe(map(resp => UpsertFulfillmentFormSubmissionResponse.fromProto(resp)));\n }\n }\n FulfillmentFormSubmissionApiService.ɵfac = function FulfillmentFormSubmissionApiService_Factory(t) {\n return new (t || FulfillmentFormSubmissionApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n FulfillmentFormSubmissionApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FulfillmentFormSubmissionApiService,\n factory: FulfillmentFormSubmissionApiService.ɵfac,\n providedIn: 'root'\n });\n return FulfillmentFormSubmissionApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet FulfillmentOrderApiService = /*#__PURE__*/(() => {\n class FulfillmentOrderApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n createFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new CreateFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/CreateFulfillmentOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateFulfillmentOrderResponse.fromProto(resp)));\n }\n getFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new GetFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/GetFulfillmentOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetFulfillmentOrderResponse.fromProto(resp)));\n }\n updateFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new UpdateFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/UpdateFulfillmentOrder\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n deleteFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new DeleteFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/DeleteFulfillmentOrder\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n searchFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new SearchFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/SearchFulfillmentOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SearchFulfillmentOrderResponse.fromProto(resp)));\n }\n getFulfillmentOrdersForSalesOrder(r) {\n const request = r.toApiJson ? r : new GetFulfillmentOrdersForSalesOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/GetFulfillmentOrdersForSalesOrder\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetFulfillmentOrdersForSalesOrderResponse.fromProto(resp)));\n }\n getMultiBySalesOrderIds(r) {\n const request = r.toApiJson ? r : new GetMultiBySalesOrderIdsRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/GetMultiBySalesOrderIds\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiBySalesOrderIdsResponse.fromProto(resp)));\n }\n sendFulfillmentOrder(r) {\n const request = r.toApiJson ? r : new SendFulfillmentOrderRequest(r);\n return this.http.post(this._host + \"/orderfulfillment.v1.FulfillmentOrderService/SendFulfillmentOrder\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n FulfillmentOrderApiService.ɵfac = function FulfillmentOrderApiService_Factory(t) {\n return new (t || FulfillmentOrderApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n FulfillmentOrderApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FulfillmentOrderApiService,\n factory: FulfillmentOrderApiService.ɵfac,\n providedIn: 'root'\n });\n return FulfillmentOrderApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivationFailureDetails, AppInfo, BillingFrequency, Blame, BlameSource, BusinessInfo, CancelEditionChangeRequest, CancelOrderItemWaitingForConsumerInformationRequest, ChangeRequestEventExternalData, ChangeSpendRequest, ChangeSpendRequestExternalData, ChangeSpendRequestRequest, ChangeSpendRequestStatus, Consumer, CreateFulfillmentOrderRequest, CreateFulfillmentOrderResponse, CreateOrderRequest, CreateOrderResponse, CustomFields, DeleteFulfillmentOrderRequest, DismissFailedOrderItemRequest, EditionChangeInformation, FailureReason, Field, FieldMask, FieldType, FormAnswers, Frequency, FulfillmentFormConfig, FulfillmentFormField, FulfillmentFormFieldOption, FulfillmentFormInfo, FulfillmentFormSubmission, FulfillmentFormSubmissionApiService, FulfillmentOrder, FulfillmentOrderApiService, FulfillmentOrderProjectionFilter, FulfillmentOrderProjects, FulfillmentOrderStatus, FulfillmentOrders, GetCurrentSpendRequest, GetCurrentSpendResponse, GetFulfillmentOrderRequest, GetFulfillmentOrderResponse, GetFulfillmentOrdersForSalesOrderRequest, GetFulfillmentOrdersForSalesOrderResponse, GetLatestFulfillmentFormSubmissionRequest, GetLatestFulfillmentFormSubmissionResponse, GetMultiActivationErrorsForOrderItemsRequest, GetMultiActivationErrorsForOrderItemsResponse, GetMultiBySalesOrderIdsRequest, GetMultiBySalesOrderIdsResponse, GetMultiBySalesOrderIdsResponseFulfillmentOrdersMapEntry, GetOrderByIdempotencyKeyRequest, GetOrderByIdempotencyKeyResponse, HostService, ListChangeSpendRequestHistoryRequest, ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions, ListChangeSpendRequestHistoryResponse, ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents, ListChangeSpendRequestsRequest, ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions, ListChangeSpendRequestsResponse, ListOrderItemsForBusinessRequest, ListOrderItemsForOrderRequest, ListOrderItemsResponse, Order, OrderFulfillmentApiService, OrderFulfillmentService, OrderItem, OrderItemParameters, OrderItemStatus, OrderStatus, PendingActivationInfo, PendingActivationInfoActivationStatusesEntry, PendingActivationStatus, ProductActivationInformation, Reasons, RecordOrderFormSubmissionAndActivateOrderItemRequest, ResellerPartnerInfo, ResolveChangeSpendRequestRequest, ResolvePendingActivationRequest, SalesInfo, SalesInfoCost, SalesInfoOrderFormSubmission, SearchFulfillmentOrderRequest, SearchFulfillmentOrderResponse, SearchFulfillmentOrderTimeOptions, SendFulfillmentOrderRequest, SortDirection, TimeField, UpdateFulfillmentOrderRequest, UpsertFulfillmentFormSubmissionRequest, UpsertFulfillmentFormSubmissionResponse, ValidationErrorCodes };\n"],"mappings":"sJAYA,IAAIA,GAA2B,SAAUA,EAAa,CACpD,OAAAA,EAAYA,EAAY,oBAAyB,CAAC,EAAI,sBACtDA,EAAYA,EAAY,kBAAuB,CAAC,EAAI,oBAC7CA,CACT,EAAEA,IAAe,CAAC,CAAC,EAOfC,GAAoC,SAAUA,EAAsB,CACtE,OAAAA,EAAqBA,EAAqB,+BAAoC,CAAC,EAAI,iCACnFA,EAAqBA,EAAqB,qCAA0C,CAAC,EAAI,uCACzFA,EAAqBA,EAAqB,mDAAwD,CAAC,EAAI,qDACvGA,EAAqBA,EAAqB,4CAAiD,CAAC,EAAI,8CAChGA,EAAqBA,EAAqB,+CAAoD,CAAC,EAAI,iDACnGA,EAAqBA,EAAqB,gDAAqD,CAAC,EAAI,kDACpGA,EAAqBA,EAAqB,yCAA8C,CAAC,EAAI,2CAC7FA,EAAqBA,EAAqB,8CAAmD,CAAC,EAAI,gDAClGA,EAAqBA,EAAqB,0CAA+C,CAAC,EAAI,4CAC9FA,EAAqBA,EAAqB,sCAA2C,CAAC,EAAI,wCAC1FA,EAAqBA,EAAqB,4CAAiD,EAAE,EAAI,8CACjGA,EAAqBA,EAAqB,8CAAmD,EAAE,EAAI,gDACnGA,EAAqBA,EAAqB,uCAA4C,EAAE,EAAI,yCAC5FA,EAAqBA,EAAqB,2CAAgD,EAAE,EAAI,6CAChGA,EAAqBA,EAAqB,+CAAoD,EAAE,EAAI,iDACpGA,EAAqBA,EAAqB,8CAAmD,EAAE,EAAI,gDACnGA,EAAqBA,EAAqB,2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D,EAA2B,UAAO,SAA4C,EAAG,CAC/E,OAAO,IAAK,GAAKA,GAA+BlC,EAAYC,CAAU,EAAMD,EAASlC,EAAW,CAAC,CACnG,EACAoE,EAA2B,WAA0BnE,EAAmB,CACtE,MAAOmE,EACP,QAASA,EAA2B,UACpC,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["BlameSource","ValidationErrorCodes","Frequency","Consumer","OrderItemStatus","OrderStatus","BillingFrequency","ChangeSpendRequestStatus","FailureReason","FieldType","FulfillmentOrderStatus","PendingActivationStatus","SortDirection","TimeField","enumStringToValue$8","enumRef","value","Blame","_Blame","proto","m","kwargs","toReturn","enumStringToValue$7","EditionChangeInformation","_EditionChangeInformation","Reasons","OrderItem","_OrderItem","v","ProductActivationInformation","_ProductActivationInformation","_Reasons","enumStringToValue$6","Order","_Order","enumStringToValue$5","ChangeRequestEventExternalData","_ChangeRequestEventExternalData","ChangeSpendRequest","_ChangeSpendRequest","ChangeSpendRequestExternalData","_ChangeSpendRequestExternalData","FieldMask","_FieldMask","proto","m","kwargs","toReturn","enumStringToValue$3","enumRef","value","ActivationFailureDetails","_ActivationFailureDetails","FailureReason","CancelEditionChangeRequest","_CancelEditionChangeRequest","CancelOrderItemWaitingForConsumerInformationRequest","_CancelOrderItemWaitingForConsumerInformationRequest","ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents","_ListChangeSpendRequestHistoryResponseChangeSpendRequestEvents","ChangeSpendRequestStatus","ChangeRequestEventExternalData","ChangeSpendRequestRequest","_ChangeSpendRequestRequest","CreateOrderRequest","_CreateOrderRequest","OrderItemParameters","Blame","CreateOrderResponse","_CreateOrderResponse","DismissFailedOrderItemRequest","_DismissFailedOrderItemRequest","GetCurrentSpendRequest","_GetCurrentSpendRequest","GetCurrentSpendResponse","_GetCurrentSpendResponse","GetMultiActivationErrorsForOrderItemsRequest","_GetMultiActivationErrorsForOrderItemsRequest","GetMultiActivationErrorsForOrderItemsResponse","_GetMultiActivationErrorsForOrderItemsResponse","GetOrderByIdempotencyKeyRequest","_GetOrderByIdempotencyKeyRequest","GetOrderByIdempotencyKeyResponse","_GetOrderByIdempotencyKeyResponse","Order","ListChangeSpendRequestHistoryRequest","_ListChangeSpendRequestHistoryRequest","ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions","ListChangeSpendRequestHistoryResponse","_ListChangeSpendRequestHistoryResponse","ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions","_ListChangeSpendRequestsRequestListChangeSpendRequestsFilterOptions","v","_ListChangeSpendRequestHistoryRequestListChangeSpendRequestsHistoryFilterOptions","ListChangeSpendRequestsRequest","_ListChangeSpendRequestsRequest","ListChangeSpendRequestsResponse","_ListChangeSpendRequestsResponse","ChangeSpendRequest","ListOrderItemsForBusinessRequest","_ListOrderItemsForBusinessRequest","OrderItemStatus","ListOrderItemsForOrderRequest","_ListOrderItemsForOrderRequest","ListOrderItemsResponse","_ListOrderItemsResponse","OrderItem","_OrderItemParameters","ProductActivationInformation","EditionChangeInformation","Frequency","Consumer","RecordOrderFormSubmissionAndActivateOrderItemRequest","_RecordOrderFormSubmissionAndActivateOrderItemRequest","ResolveChangeSpendRequestRequest","_ResolveChangeSpendRequestRequest","ResolvePendingActivationRequest","_ResolvePendingActivationRequest","FulfillmentFormConfig","_FulfillmentFormConfig","proto","m","FulfillmentFormField","kwargs","toReturn","_FulfillmentFormField","FulfillmentFormFieldOption","_FulfillmentFormFieldOption","enumStringToValue$1","enumRef","value","CustomFields","_CustomFields","Field","_Field","FieldType","FormAnswers","_FormAnswers","FulfillmentFormSubmission","_FulfillmentFormSubmission","GetLatestFulfillmentFormSubmissionRequest","_GetLatestFulfillmentFormSubmissionRequest","GetLatestFulfillmentFormSubmissionResponse","_GetLatestFulfillmentFormSubmissionResponse","UpsertFulfillmentFormSubmissionRequest","_UpsertFulfillmentFormSubmissionRequest","UpsertFulfillmentFormSubmissionResponse","_UpsertFulfillmentFormSubmissionResponse","enumStringToValue","AppInfo","_AppInfo","proto","m","kwargs","toReturn","BusinessInfo","_BusinessInfo","SalesInfoCost","_SalesInfoCost","CreateFulfillmentOrderRequest","_CreateFulfillmentOrderRequest","CreateFulfillmentOrderResponse","_CreateFulfillmentOrderResponse","FulfillmentOrder","DeleteFulfillmentOrderRequest","_DeleteFulfillmentOrderRequest","FulfillmentFormInfo","_FulfillmentFormInfo","_FulfillmentOrder","enumStringToValue","FulfillmentOrderStatus","ResellerPartnerInfo","SalesInfo","PendingActivationInfo","FulfillmentOrderProjects","FulfillmentOrderProjectionFilter","_FulfillmentOrderProjectionFilter","_FulfillmentOrderProjects","FulfillmentOrders","_FulfillmentOrders","GetFulfillmentOrderRequest","_GetFulfillmentOrderRequest","proto","m","FulfillmentOrderProjectionFilter","kwargs","toReturn","GetFulfillmentOrderResponse","_GetFulfillmentOrderResponse","FulfillmentOrder","GetFulfillmentOrdersForSalesOrderRequest","_GetFulfillmentOrdersForSalesOrderRequest","GetFulfillmentOrdersForSalesOrderResponse","_GetFulfillmentOrdersForSalesOrderResponse","GetMultiBySalesOrderIdsRequest","_GetMultiBySalesOrderIdsRequest","GetMultiBySalesOrderIdsResponse","_GetMultiBySalesOrderIdsResponse","obj","k","FulfillmentOrders","SalesInfoOrderFormSubmission","_SalesInfoOrderFormSubmission","Field","PendingActivationInfo","_PendingActivationInfo","enumStringToValue","PendingActivationStatus","ResellerPartnerInfo","_ResellerPartnerInfo","SalesInfo","_SalesInfo","SalesInfoCost","SearchFulfillmentOrderRequest","_SearchFulfillmentOrderRequest","v","FulfillmentOrderStatus","SearchFulfillmentOrderTimeOptions","SortDirection","SearchFulfillmentOrderResponse","_SearchFulfillmentOrderResponse","_SearchFulfillmentOrderTimeOptions","TimeField","SendFulfillmentOrderRequest","_SendFulfillmentOrderRequest","UpdateFulfillmentOrderRequest","_UpdateFulfillmentOrderRequest","FieldMask","environment","hostMap","HostService","ɵɵdefineInjectable","OrderFulfillmentApiService","http","hostService","HttpHeaders","r","request","CreateOrderRequest","map","resp","CreateOrderResponse","ListOrderItemsForBusinessRequest","ListOrderItemsResponse","GetOrderByIdempotencyKeyRequest","GetOrderByIdempotencyKeyResponse","ListOrderItemsForOrderRequest","DismissFailedOrderItemRequest","__spreadProps","__spreadValues","ResolvePendingActivationRequest","CancelEditionChangeRequest","CancelOrderItemWaitingForConsumerInformationRequest","RecordOrderFormSubmissionAndActivateOrderItemRequest","GetMultiActivationErrorsForOrderItemsRequest","GetMultiActivationErrorsForOrderItemsResponse","ChangeSpendRequestRequest","ListChangeSpendRequestsRequest","ListChangeSpendRequestsResponse","ResolveChangeSpendRequestRequest","ListChangeSpendRequestHistoryRequest","ListChangeSpendRequestHistoryResponse","GetCurrentSpendRequest","GetCurrentSpendResponse","ɵɵinject","HttpClient","OrderFulfillmentService","_api","partnerId","orderParams","orderSources","businessId","cursor","pageSize","filterByStatuses","fieldMask","idempotencyKey","orderId","itemId","orderItemId","orderItemIds","activationId","requestedSpendAmount","requesterNote","appIds","businessIds","requestsStatuses","changeRequestIds","fieldMasks","changeRequestId","appOrAddonId","status","statusUpdateNote","FulfillmentFormSubmissionApiService","GetLatestFulfillmentFormSubmissionRequest","GetLatestFulfillmentFormSubmissionResponse","UpsertFulfillmentFormSubmissionRequest","UpsertFulfillmentFormSubmissionResponse","FulfillmentOrderApiService","CreateFulfillmentOrderRequest","CreateFulfillmentOrderResponse","DeleteFulfillmentOrderRequest"],"x_google_ignoreList":[0]}