@spaceinvoices/js-sdk 18.34.0 → 18.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,6 +162,10 @@ export type fiscalizeDocumentResponse404 = {
162
162
  data: Error;
163
163
  status: 404;
164
164
  };
165
+ export type fiscalizeDocumentResponse409 = {
166
+ data: Error;
167
+ status: 409;
168
+ };
165
169
  export type fiscalizeDocumentResponse422 = {
166
170
  data: ValidationError | FiscalizationProviderError;
167
171
  status: 422;
@@ -181,7 +185,7 @@ export type fiscalizeDocumentResponse503 = {
181
185
  export type fiscalizeDocumentResponseSuccess = (fiscalizeDocumentResponse200) & {
182
186
  headers: Headers;
183
187
  };
184
- export type fiscalizeDocumentResponseError = (fiscalizeDocumentResponse400 | fiscalizeDocumentResponse401 | fiscalizeDocumentResponse403 | fiscalizeDocumentResponse404 | fiscalizeDocumentResponse422 | fiscalizeDocumentResponse500 | fiscalizeDocumentResponse502 | fiscalizeDocumentResponse503) & {
188
+ export type fiscalizeDocumentResponseError = (fiscalizeDocumentResponse400 | fiscalizeDocumentResponse401 | fiscalizeDocumentResponse403 | fiscalizeDocumentResponse404 | fiscalizeDocumentResponse409 | fiscalizeDocumentResponse422 | fiscalizeDocumentResponse500 | fiscalizeDocumentResponse502 | fiscalizeDocumentResponse503) & {
185
189
  headers: Headers;
186
190
  };
187
191
  export type fiscalizeDocumentResponse = (fiscalizeDocumentResponseSuccess | fiscalizeDocumentResponseError);
@@ -162,6 +162,10 @@ export type fiscalizeDocumentResponse404 = {
162
162
  data: Error;
163
163
  status: 404;
164
164
  };
165
+ export type fiscalizeDocumentResponse409 = {
166
+ data: Error;
167
+ status: 409;
168
+ };
165
169
  export type fiscalizeDocumentResponse422 = {
166
170
  data: ValidationError | FiscalizationProviderError;
167
171
  status: 422;
@@ -181,7 +185,7 @@ export type fiscalizeDocumentResponse503 = {
181
185
  export type fiscalizeDocumentResponseSuccess = (fiscalizeDocumentResponse200) & {
182
186
  headers: Headers;
183
187
  };
184
- export type fiscalizeDocumentResponseError = (fiscalizeDocumentResponse400 | fiscalizeDocumentResponse401 | fiscalizeDocumentResponse403 | fiscalizeDocumentResponse404 | fiscalizeDocumentResponse422 | fiscalizeDocumentResponse500 | fiscalizeDocumentResponse502 | fiscalizeDocumentResponse503) & {
188
+ export type fiscalizeDocumentResponseError = (fiscalizeDocumentResponse400 | fiscalizeDocumentResponse401 | fiscalizeDocumentResponse403 | fiscalizeDocumentResponse404 | fiscalizeDocumentResponse409 | fiscalizeDocumentResponse422 | fiscalizeDocumentResponse500 | fiscalizeDocumentResponse502 | fiscalizeDocumentResponse503) & {
185
189
  headers: Headers;
186
190
  };
187
191
  export type fiscalizeDocumentResponse = (fiscalizeDocumentResponseSuccess | fiscalizeDocumentResponseError);
@@ -24,4 +24,24 @@ export type StripeAppEntityUpdateSettingsBody = {
24
24
  * @nullable
25
25
  */
26
26
  default_tax_rate?: number | null;
27
+ /**
28
+ * Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. Omit to keep the current value. Set to null to turn it off.
29
+ * @nullable
30
+ */
31
+ send_invoice_email?: boolean | null;
32
+ /**
33
+ * Attach the document PDF to customer emails. The email always links to the document. Omit to keep the current value. Set to null to reset to the default (off).
34
+ * @nullable
35
+ */
36
+ attach_pdf_to_email?: boolean | null;
37
+ /**
38
+ * When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRačun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. Omit to keep the current value. Set to null to turn it off.
39
+ * @nullable
40
+ */
41
+ credit_note_on_refund?: boolean | null;
42
+ /**
43
+ * Email the refund credit note to the invoice customer's email address. Omit to keep the current value. Set to null to turn it off.
44
+ * @nullable
45
+ */
46
+ send_credit_note_email?: boolean | null;
27
47
  };
@@ -24,4 +24,24 @@ export type StripeAppEntityUpdateSettingsBody = {
24
24
  * @nullable
25
25
  */
26
26
  default_tax_rate?: number | null;
27
+ /**
28
+ * Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. Omit to keep the current value. Set to null to turn it off.
29
+ * @nullable
30
+ */
31
+ send_invoice_email?: boolean | null;
32
+ /**
33
+ * Attach the document PDF to customer emails. The email always links to the document. Omit to keep the current value. Set to null to reset to the default (off).
34
+ * @nullable
35
+ */
36
+ attach_pdf_to_email?: boolean | null;
37
+ /**
38
+ * When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRačun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. Omit to keep the current value. Set to null to turn it off.
39
+ * @nullable
40
+ */
41
+ credit_note_on_refund?: boolean | null;
42
+ /**
43
+ * Email the refund credit note to the invoice customer's email address. Omit to keep the current value. Set to null to turn it off.
44
+ * @nullable
45
+ */
46
+ send_credit_note_email?: boolean | null;
27
47
  };
@@ -20,4 +20,12 @@ export interface StripeAppSettings {
20
20
  * @nullable
21
21
  */
22
22
  default_tax_rate: number | null;
23
+ /** Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
24
+ send_invoice_email?: boolean;
25
+ /** Attach the document PDF to customer emails. The email always links to the document. Omitted by API versions that predate this setting. */
26
+ attach_pdf_to_email?: boolean;
27
+ /** When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRačun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
28
+ credit_note_on_refund?: boolean;
29
+ /** Email the refund credit note to the invoice customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
30
+ send_credit_note_email?: boolean;
23
31
  }
@@ -20,4 +20,12 @@ export interface StripeAppSettings {
20
20
  * @nullable
21
21
  */
22
22
  default_tax_rate: number | null;
23
+ /** Email each invoice created from a Stripe payment (automatic or from a payment page) to the customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
24
+ send_invoice_email?: boolean;
25
+ /** Attach the document PDF to customer emails. The email always links to the document. Omitted by API versions that predate this setting. */
26
+ attach_pdf_to_email?: boolean;
27
+ /** When a Stripe charge is fully refunded, void the linked invoice and issue an offsetting credit note. Partial refunds are not automated. When the invoice's fiscal or e-invoicing rules do not allow an automatic void (for example Portuguese entities, TicketBAI, VeriFactu, or submitted KSeF and eRačun invoices) or it is already fully credited, nothing is changed; issue the correction manually. Italian invoices not yet sent to SdI, or rejected by it, are cancelled without a credit note. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
28
+ credit_note_on_refund?: boolean;
29
+ /** Email the refund credit note to the invoice customer's email address. New connections start with this on; connections created before this setting existed have it off until enabled. Omitted by API versions that predate this setting. */
30
+ send_credit_note_email?: boolean;
23
31
  }
@@ -63,6 +63,10 @@ export declare const StripeAppEntityGetSettingsResponse: zod.ZodObject<{
63
63
  auto_invoice_events: zod.ZodArray<zod.ZodString>;
64
64
  default_note: zod.ZodNullable<zod.ZodString>;
65
65
  default_tax_rate: zod.ZodNullable<zod.ZodNumber>;
66
+ send_invoice_email: zod.ZodOptional<zod.ZodBoolean>;
67
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodBoolean>;
68
+ credit_note_on_refund: zod.ZodOptional<zod.ZodBoolean>;
69
+ send_credit_note_email: zod.ZodOptional<zod.ZodBoolean>;
66
70
  }, zod.z.core.$strip>;
67
71
  /**
68
72
  * Update auto-invoice settings for the current entity's Stripe App connection.
@@ -79,10 +83,18 @@ export declare const StripeAppEntityUpdateSettingsBody: zod.ZodObject<{
79
83
  }>>>;
80
84
  default_note: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
81
85
  default_tax_rate: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
86
+ send_invoice_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
87
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
88
+ credit_note_on_refund: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
89
+ send_credit_note_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
82
90
  }, zod.z.core.$strip>;
83
91
  export declare const StripeAppEntityUpdateSettingsResponse: zod.ZodObject<{
84
92
  auto_invoice_enabled: zod.ZodBoolean;
85
93
  auto_invoice_events: zod.ZodArray<zod.ZodString>;
86
94
  default_note: zod.ZodNullable<zod.ZodString>;
87
95
  default_tax_rate: zod.ZodNullable<zod.ZodNumber>;
96
+ send_invoice_email: zod.ZodOptional<zod.ZodBoolean>;
97
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodBoolean>;
98
+ credit_note_on_refund: zod.ZodOptional<zod.ZodBoolean>;
99
+ send_credit_note_email: zod.ZodOptional<zod.ZodBoolean>;
88
100
  }, zod.z.core.$strip>;
@@ -63,6 +63,10 @@ export declare const StripeAppEntityGetSettingsResponse: zod.ZodObject<{
63
63
  auto_invoice_events: zod.ZodArray<zod.ZodString>;
64
64
  default_note: zod.ZodNullable<zod.ZodString>;
65
65
  default_tax_rate: zod.ZodNullable<zod.ZodNumber>;
66
+ send_invoice_email: zod.ZodOptional<zod.ZodBoolean>;
67
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodBoolean>;
68
+ credit_note_on_refund: zod.ZodOptional<zod.ZodBoolean>;
69
+ send_credit_note_email: zod.ZodOptional<zod.ZodBoolean>;
66
70
  }, zod.z.core.$strip>;
67
71
  /**
68
72
  * Update auto-invoice settings for the current entity's Stripe App connection.
@@ -79,10 +83,18 @@ export declare const StripeAppEntityUpdateSettingsBody: zod.ZodObject<{
79
83
  }>>>;
80
84
  default_note: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
81
85
  default_tax_rate: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
86
+ send_invoice_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
87
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
88
+ credit_note_on_refund: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
89
+ send_credit_note_email: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
82
90
  }, zod.z.core.$strip>;
83
91
  export declare const StripeAppEntityUpdateSettingsResponse: zod.ZodObject<{
84
92
  auto_invoice_enabled: zod.ZodBoolean;
85
93
  auto_invoice_events: zod.ZodArray<zod.ZodString>;
86
94
  default_note: zod.ZodNullable<zod.ZodString>;
87
95
  default_tax_rate: zod.ZodNullable<zod.ZodNumber>;
96
+ send_invoice_email: zod.ZodOptional<zod.ZodBoolean>;
97
+ attach_pdf_to_email: zod.ZodOptional<zod.ZodBoolean>;
98
+ credit_note_on_refund: zod.ZodOptional<zod.ZodBoolean>;
99
+ send_credit_note_email: zod.ZodOptional<zod.ZodBoolean>;
88
100
  }, zod.z.core.$strip>;