/** * @example * { * id: "id" * } */ export interface UpdatePaymentsRequest { /** The payment, prefixed `pay_`. */ id: string; /** Where the buyer continues after completing an off-site step. An absolute https URL without credentials, at most 2,048 characters. Only for payments created with a `confirmation_token`, and only until the buyer has returned. Omit it to leave it unchanged. */ return_url?: string; /** The complete new shipping address. It replaces the current address as a whole and is never merged with it, so send every field the address should have, including the ones that are not changing. Any field you leave out is cleared: sending only `city` leaves an address with nothing but a city. Pass null to remove the address, or omit `shipping_address` to leave it unchanged. It cannot change once a shipment exists for the payment. */ shipping_address?: UpdatePaymentsRequest.ShippingAddress | null; } export declare namespace UpdatePaymentsRequest { /** * The complete new shipping address. It replaces the current address as a whole and is never merged with it, so send every field the address should have, including the ones that are not changing. Any field you leave out is cleared: sending only `city` leaves an address with nothing but a city. Pass null to remove the address, or omit `shipping_address` to leave it unchanged. It cannot change once a shipment exists for the payment. */ interface ShippingAddress { /** City name. */ city?: (string | null) | undefined; /** ISO 3166-1 alpha-2 country code, such as `US`. */ country?: (string | null) | undefined; /** First line of the street address. */ line1?: (string | null) | undefined; /** Second line of the street address. */ line2?: (string | null) | undefined; /** The recipient's full name, as it should appear on the shipping label. */ name?: (string | null) | undefined; /** Postal or ZIP code. */ postal_code?: (string | null) | undefined; /** State, province, or region code, such as `CA`. */ state?: (string | null) | undefined; } }