(invoice_template)
- create - Create invoice-template
- delete - Delete invoice-template
- get - Get invoice-template
- update - Update invoice-template
Create invoice-template
import wingspan
from wingspan.models import shared
s = wingspan.Wingspan()
req = shared.InvoiceTemplateCreateRequest(
frequency=shared.Frequency(
start_date='online',
),
invoice_data=shared.InvoiceDataCreateRequest(
accepted_payment_methods=[
shared.InvoiceDataCreateRequestAcceptedPaymentMethods.MANUAL,
],
attachments=shared.ThirtySixb041d426951ffff76360faf03ef8ae938bed9739e6ad9f51acb982782296a2(
custom_attachment_ids=[
'Extended',
],
),
collaborators=[
shared.InvoiceCollaboratorCreateRequest(
amount=1343.65,
currency=shared.CurrencyInvoiceCollaboratorCreateRequest.CAD,
description='Business-focused zero tolerance project',
member_client_id='abnormally',
),
],
credit_fee_handling=shared.FeeHandlingConfig(),
labels={
"deposit": 'evolve',
},
late_fee_handling=shared.LateFeeConfig(
frequency=shared.Frequency(
start_date='male',
),
),
line_items=[
shared.InvoiceLineItemsCreateRequest(
discount=shared.Facb8048736dba546c4c76242d9f8c7111011a7a7483528f37d80226698a1f2b(),
integration=shared.ThreeBillionOneHundredAndNinetyMillionSixHundredAndEightyFiveThousandEightHundredAndThirtyTwoa4970525ea5b0803efff0b36a0202062e1fd8a0bc187acbe156461(
quickbooks=shared.Sixad3f4f624fb518510130e879729b00ed8c237d1cebc5477abf34ac340a6424d(),
),
labels={
"SUV": 'quantify',
},
),
],
member_client_id='Polestar',
notification_preferences=shared.InvoiceNotificationPreferences(
send_reminders=False,
),
),
labels={
"mobile": 'National',
},
schedule_dates=[
shared.ScheduleDate(
date_='Durham',
status=shared.StatusScheduleDate.MODIFIED,
),
],
status=shared.StatusInvoiceTemplateCreateRequest.ACTIVE,
)
res = s.invoice_template.create(req)
if res.invoice_template is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
shared.InvoiceTemplateCreateRequest | ✔️ | The request object to use for the request. |
operations.CreateInvoiceTemplateResponse
Delete invoice-template
import wingspan
from wingspan.models import operations
s = wingspan.Wingspan()
res = s.invoice_template.delete(id='program')
if res.invoice_template is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
id |
str | ✔️ | Unique identifier |
operations.DeleteInvoiceTemplateResponse
Get invoice-template
import wingspan
from wingspan.models import operations
s = wingspan.Wingspan()
res = s.invoice_template.get(id='female')
if res.invoice_template is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
id |
str | ✔️ | Unique identifier |
operations.GetInvoiceTemplateResponse
Update invoice-template
import wingspan
from wingspan.models import operations, shared
s = wingspan.Wingspan()
res = s.invoice_template.update(id='Van', invoice_template_update_request=shared.InvoiceTemplateUpdateRequest(
frequency=shared.FrequencyUpdate(),
invoice_data=shared.InvoiceUpdateRequest(
accepted_payment_methods=[
shared.InvoiceUpdateRequestAcceptedPaymentMethods.CREDIT,
],
attachments=shared.ThirtySixb041d426951ffff76360faf03ef8ae938bed9739e6ad9f51acb982782296a2(
custom_attachment_ids=[
'Reactive',
],
),
charged_fees=shared.Fees(
late_fee=shared.Fee(
amount=9914.64,
),
processing_fee=shared.Fee(
amount=2703.24,
),
),
client=shared.InvoiceUpdateRequestClient(),
collaborators=[
shared.InvoiceCollaboratorUpdateRequest(),
],
credit_fee_handling=shared.FeeHandlingConfig(),
integration=shared.ThreeBillionOneHundredAndNinetyMillionSixHundredAndEightyFiveThousandEightHundredAndThirtyTwoa4970525ea5b0803efff0b36a0202062e1fd8a0bc187acbe156461(
quickbooks=shared.Sixad3f4f624fb518510130e879729b00ed8c237d1cebc5477abf34ac340a6424d(),
),
labels={
"Quality": 'redundant',
},
late_fee_handling=shared.LateFeeConfigUpdate(
frequency=shared.FrequencyUpdate(),
),
line_items=[
shared.InvoiceLineItemsCreateRequest(
discount=shared.Facb8048736dba546c4c76242d9f8c7111011a7a7483528f37d80226698a1f2b(),
integration=shared.ThreeBillionOneHundredAndNinetyMillionSixHundredAndEightyFiveThousandEightHundredAndThirtyTwoa4970525ea5b0803efff0b36a0202062e1fd8a0bc187acbe156461(
quickbooks=shared.Sixad3f4f624fb518510130e879729b00ed8c237d1cebc5477abf34ac340a6424d(),
),
labels={
"cheater": 'Islands',
},
),
],
member=shared.InvoiceUpdateRequestMember(),
metadata=shared.InvoiceMetadata(),
notification_preferences=shared.InvoiceNotificationPreferences(
send_reminders=False,
),
),
labels={
"online": 'dynamic',
},
schedule_dates=[
shared.ScheduleDateUpdate(),
],
))
if res.invoice_template is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
id |
str | ✔️ | Unique identifier |
invoice_template_update_request |
Optional[shared.InvoiceTemplateUpdateRequest] | ➖ | N/A |