UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

65 lines (64 loc) 3.05 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * OpenPay API * super charge your subscription management. * * The version of the OpenAPI document: 1.2.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCustomerPaymentMethodQueryParams = instanceOfCustomerPaymentMethodQueryParams; exports.CustomerPaymentMethodQueryParamsFromJSON = CustomerPaymentMethodQueryParamsFromJSON; exports.CustomerPaymentMethodQueryParamsFromJSONTyped = CustomerPaymentMethodQueryParamsFromJSONTyped; exports.CustomerPaymentMethodQueryParamsToJSON = CustomerPaymentMethodQueryParamsToJSON; exports.CustomerPaymentMethodQueryParamsToJSONTyped = CustomerPaymentMethodQueryParamsToJSONTyped; const DateTimeFilter_1 = require("./DateTimeFilter"); const PaymentProviderType_1 = require("./PaymentProviderType"); /** * Check if a given object implements the CustomerPaymentMethodQueryParams interface. */ function instanceOfCustomerPaymentMethodQueryParams(value) { return true; } function CustomerPaymentMethodQueryParamsFromJSON(json) { return CustomerPaymentMethodQueryParamsFromJSONTyped(json, false); } function CustomerPaymentMethodQueryParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'createdAt': json['created_at'] == null ? undefined : (0, DateTimeFilter_1.DateTimeFilterFromJSON)(json['created_at']), 'expand': json['expand'] == null ? undefined : json['expand'], 'pageNumber': json['page_number'] == null ? undefined : json['page_number'], 'pageSize': json['page_size'] == null ? undefined : json['page_size'], 'providerType': json['provider_type'] == null ? undefined : (0, PaymentProviderType_1.PaymentProviderTypeFromJSON)(json['provider_type']), 'sortDescending': json['sort_descending'] == null ? undefined : json['sort_descending'], 'sortKey': json['sort_key'] == null ? undefined : json['sort_key'], 'updatedAt': json['updated_at'] == null ? undefined : (0, DateTimeFilter_1.DateTimeFilterFromJSON)(json['updated_at']), }; } function CustomerPaymentMethodQueryParamsToJSON(json) { return CustomerPaymentMethodQueryParamsToJSONTyped(json, false); } function CustomerPaymentMethodQueryParamsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'created_at': (0, DateTimeFilter_1.DateTimeFilterToJSON)(value['createdAt']), 'expand': value['expand'], 'page_number': value['pageNumber'], 'page_size': value['pageSize'], 'provider_type': (0, PaymentProviderType_1.PaymentProviderTypeToJSON)(value['providerType']), 'sort_descending': value['sortDescending'], 'sort_key': value['sortKey'], 'updated_at': (0, DateTimeFilter_1.DateTimeFilterToJSON)(value['updatedAt']), }; }