@maxio-com/advanced-billing-sdk
Version:
Ultimate billing and pricing flexibility for B2B SaaS. Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.
32 lines (28 loc) • 1.21 kB
text/typescript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { expandoObject, optional, Schema, string } from '../schema';
/** Required when creating a subscription with Maxio Payments. */
export interface AgreementAcceptance {
/** Required when providing agreement acceptance params. */
ipAddress?: string;
/** Required when creating a subscription with Maxio Payments. Either terms_url or provacy_policy_url required when providing agreement_acceptance params. */
termsUrl?: string;
privacyPolicyUrl?: string;
returnRefundPolicyUrl?: string;
deliveryPolicyUrl?: string;
secureCheckoutPolicyUrl?: string;
[]: unknown;
}
export const agreementAcceptanceSchema: Schema<AgreementAcceptance> = expandoObject(
{
ipAddress: ['ip_address', optional(string())],
termsUrl: ['terms_url', optional(string())],
privacyPolicyUrl: ['privacy_policy_url', optional(string())],
returnRefundPolicyUrl: ['return_refund_policy_url', optional(string())],
deliveryPolicyUrl: ['delivery_policy_url', optional(string())],
secureCheckoutPolicyUrl: ['secure_checkout_policy_url', optional(string())],
}
);