zugferd_code_lists/zugferd_2_3_2/
linestatus.rs

1#![allow(non_camel_case_types)]
2
3#[cfg_attr(feature = "specta", derive(specta::Type))]
4#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
5#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]
6pub enum LineStatus {
7    /// Added
8    ///
9    /// The information is to be or has been added.
10    Added,
11    /// Deleted
12    ///
13    /// The information is to be or has been deleted.
14    Deleted,
15    /// Changed
16    ///
17    /// The information is to be or has been changed.
18    Changed,
19    /// No action
20    ///
21    /// This line item is not affected by the actual message.
22    NoAction,
23    /// Accepted without amendment
24    ///
25    /// This line item is entirely accepted by the seller.
26    AcceptedWithoutAmendment,
27    /// Accepted with amendment
28    ///
29    /// This line item is accepted but amended by the seller.
30    AcceptedWithAmendment,
31    /// Not accepted
32    ///
33    /// This line item is not accepted by the seller.
34    NotAccepted,
35    /// Schedule only
36    ///
37    /// Code specifying that the message is a schedule only.
38    ScheduleOnly,
39    /// Amendments
40    ///
41    /// Code specifying that amendments are requested/notified.
42    Amendments,
43    /// Not found
44    ///
45    /// This line item is not found in the referenced message.
46    NotFound,
47    /// Not amended
48    ///
49    /// This line is not amended by the buyer.
50    NotAmended,
51    /// Line item numbers changed
52    ///
53    /// Code specifying that the line item numbers have changed.
54    LineItemNumbersChanged,
55    /// Buyer has deducted amount
56    ///
57    /// Buyer has deducted amount from payment.
58    BuyerHasDeductedAmount,
59    /// Buyer claims against invoice
60    ///
61    /// Buyer has a claim against an outstanding invoice.
62    BuyerClaimsAgainstInvoice,
63    /// Charge back by seller
64    ///
65    /// Factor has been requested to charge back the outstanding item.
66    ChargeBackBySeller,
67    /// Seller will issue credit note
68    ///
69    /// Seller agrees to issue a credit note.
70    SellerWillIssueCreditNote,
71    /// Terms changed for new terms
72    ///
73    /// New settlement terms have been agreed.
74    TermsChangedForNewTerms,
75    /// Abide outcome of negotiations
76    ///
77    /// Factor agrees to abide by the outcome of negotiations between seller and buyer.
78    AbideOutcomeNegotiations,
79    /// Seller rejects dispute
80    ///
81    /// Seller does not accept validity of dispute.
82    SellerRejectsDispute,
83    /// Settlement
84    ///
85    /// The reported situation is settled.
86    Settlement,
87    /// No delivery
88    ///
89    /// Code indicating that no delivery will be required.
90    NoDelivery,
91    /// Call-off delivery
92    ///
93    /// A request for delivery of a particular quantity of goods to be delivered on a particular date (or within a particular period).
94    CallOffDelivery,
95    /// Proposed amendment
96    ///
97    /// A code used to indicate an amendment suggested by the sender.
98    ProposedAmendment,
99    /// Accepted with amendment, no confirmation required
100    ///
101    /// Accepted with changes which require no confirmation.
102    AcceptedWithAmendmentNoConfirmationRequired,
103    /// Equipment provisionally repaired
104    ///
105    /// The equipment or component has been provisionally repaired.
106    EquipmentProvisionallyRepaired,
107    /// Included
108    ///
109    /// Code indicating that the entity is included.
110    Included,
111    /// Upon receipt and verification of documents we shall cover you when due as per your instructions
112    ///
113    /// Upon receipt and verification of documents we shall cover you when due as per your instructions.
114    UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions,
115    /// Upon receipt and verification of documents we shall authorize you to debit our account with you when due
116    ///
117    /// Upon receipt and verification of documents we shall authorize you to debit our account with you when due.
118    UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue,
119    /// On receipt of your authenticated advice we shall cover you when due as per your instructions
120    ///
121    /// On receipt of your authenticated advice we shall cover you when due as per your instructions.
122    OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions,
123    /// On receipt of your authenticated advice we shall authorize you to debit our account with you when due
124    ///
125    /// On receipt of your authenticated advice we shall authorize you to debit our account with you when due.
126    OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue,
127    /// On receipt of your authenticated advice we shall credit your account with us when due
128    ///
129    /// On receipt of your authenticated advice we shall credit your account with us when due.
130    OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue,
131    /// Credit advice requested for direct debit
132    ///
133    /// A credit advice is requested for the direct debit.
134    CreditAdviceRequestedForDirectDebit,
135    /// Credit advice and acknowledgement for direct debit
136    ///
137    /// A credit advice and acknowledgement are requested for the direct debit.
138    CreditAdviceAndAcknowledgementForDirectDebit,
139    /// Inquiry
140    ///
141    /// Request for information.
142    Inquiry,
143    /// Checked
144    ///
145    /// Checked.
146    Checked,
147    /// Not checked
148    ///
149    /// Not checked.
150    NotChecked,
151    /// Cancelled
152    ///
153    /// Discontinued.
154    Cancelled,
155    /// Replaced
156    ///
157    /// Provide a replacement.
158    Replaced,
159    /// New
160    ///
161    /// Not existing before.
162    New,
163    /// Agreed
164    ///
165    /// Consent.
166    Agreed,
167    /// Proposed
168    ///
169    /// Put forward for consideration.
170    Proposed,
171    /// Already delivered
172    ///
173    /// Delivery has taken place.
174    AlreadyDelivered,
175    /// Additional subordinate structures will follow
176    ///
177    /// Additional subordinate structures will follow the current hierarchy level.
178    AdditionalSubordinateStructuresWillFollow,
179    /// Additional subordinate structures will not follow
180    ///
181    /// No additional subordinate structures will follow the current hierarchy level.
182    AdditionalSubordinateStructuresWillNotFollow,
183    /// Result opposed
184    ///
185    /// A notification that the result is opposed.
186    ResultOpposed,
187    /// Auction held
188    ///
189    /// A notification that an auction was held.
190    AuctionHeld,
191    /// Legal action pursued
192    ///
193    /// A notification that legal action has been pursued.
194    LegalActionPursued,
195    /// Meeting held
196    ///
197    /// A notification that a meeting was held.
198    MeetingHeld,
199    /// Result set aside
200    ///
201    /// A notification that the result has been set aside.
202    ResultSetAside,
203    /// Result disputed
204    ///
205    /// A notification that the result has been disputed.
206    ResultDisputed,
207    /// Countersued
208    ///
209    /// A notification that a countersuit has been filed.
210    Countersued,
211    /// Pending
212    ///
213    /// A notification that an action is awaiting settlement.
214    Pending,
215    /// Court action dismissed
216    ///
217    /// A notification that a court action will no longer be heard.
218    CourtActionDismissed,
219    /// Referred item, accepted
220    ///
221    /// The item being referred to has been accepted.
222    ReferredItemAccepted,
223    /// Referred item, rejected
224    ///
225    /// The item being referred to has been rejected.
226    ReferredItemRejected,
227    /// Debit advice statement line
228    ///
229    /// Notification that the statement line is a debit advice.
230    DebitAdviceStatementLine,
231    /// Credit advice statement line
232    ///
233    /// Notification that the statement line is a credit advice.
234    CreditAdviceStatementLine,
235    /// Grouped credit advices
236    ///
237    /// Notification that the credit advices are grouped.
238    GroupedCreditAdvices,
239    /// Grouped debit advices
240    ///
241    /// Notification that the debit advices are grouped.
242    GroupedDebitAdvices,
243    /// Registered
244    ///
245    /// The name is registered.
246    Registered,
247    /// Payment denied
248    ///
249    /// The payment has been denied.
250    PaymentDenied,
251    /// Approved as amended
252    ///
253    /// Approved with modifications.
254    ApprovedAsAmended,
255    /// Approved as submitted
256    ///
257    /// The request has been approved as submitted.
258    ApprovedAsSubmitted,
259    /// Cancelled, no activity
260    ///
261    /// Cancelled due to the lack of activity.
262    CancelledNoActivity,
263    /// Under investigation
264    ///
265    /// Investigation is being done.
266    UnderInvestigation,
267    /// Initial claim received
268    ///
269    /// Notification that the initial claim was received.
270    InitialClaimReceived,
271    /// Not in process
272    ///
273    /// Not in process.
274    NotInProcess,
275    /// Rejected, duplicate
276    ///
277    /// Rejected because it is a duplicate.
278    RejectedDuplicate,
279    /// Rejected, resubmit with corrections
280    ///
281    /// Rejected but may be resubmitted when corrected.
282    RejectedResubmitWithCorrections,
283    /// Pending, incomplete
284    ///
285    /// Pending because of incomplete information.
286    PendingIncomplete,
287    /// Under field office investigation
288    ///
289    /// Investigation by the field is being done.
290    UnderFieldOfficeInvestigation,
291    /// Pending, awaiting additional material
292    ///
293    /// Pending awaiting receipt of additional material.
294    PendingAwaitingAdditionalMaterial,
295    /// Pending, awaiting review
296    ///
297    /// Pending while awaiting review.
298    PendingAwaitingReview,
299    /// Reopened
300    ///
301    /// Opened again.
302    Reopened,
303    /// Processed by primary, forwarded to additional payer(s)
304    ///
305    /// This request has been processed by the primary payer and sent to additional payer(s).
306    ProcessedByPrimaryForwardedToAdditionalPayerS,
307    /// Processed by secondary, forwarded to additional payer(s)
308    ///
309    /// This request has been processed by the secondary payer and sent to additional payer(s).
310    ProcessedBySecondaryForwardedToAdditionalPayerS,
311    /// Processed by tertiary, forwarded to additional payer(s)
312    ///
313    /// This request has been processed by the tertiary payer and sent to additional payer(s).
314    ProcessedByTertiaryForwardedToAdditionalPayerS,
315    /// Previous payment decision reversed
316    ///
317    /// A previous payment decision has been reversed.
318    PreviousPaymentDecisionReversed,
319    /// Not our claim, forwarded to another payer(s)
320    ///
321    /// A request does not belong to this payer but has been forwarded to another payer(s).
322    NotOurClaimForwardedToAnotherPayerS,
323    /// Transferred to correct insurance carrier
324    ///
325    /// The request has been transferred to the correct insurance carrier for processing.
326    TransferredToCorrectInsuranceCarrier,
327    /// Not paid, predetermination pricing only
328    ///
329    /// Payment has not been made and the enclosed response is predetermination pricing only.
330    NotPaidPredeterminationPricingOnly,
331    /// Documentation claim
332    ///
333    /// The claim is for documentation purposes only, no payment required.
334    DocumentationClaim,
335    /// Reviewed
336    ///
337    /// Assessed.
338    Reviewed,
339    /// Repriced
340    ///
341    /// This price was changed.
342    Repriced,
343    /// Audited
344    ///
345    /// An official examination has occurred.
346    Audited,
347    /// Conditionally paid
348    ///
349    /// Payment has been conditionally made.
350    ConditionallyPaid,
351    /// On appeal
352    ///
353    /// Reconsideration of the decision has been applied for.
354    OnAppeal,
355    /// Closed
356    ///
357    /// Shut.
358    Closed,
359    /// Reaudited
360    ///
361    /// A subsequent official examination has occurred.
362    Reaudited,
363    /// Reissued
364    ///
365    /// Issued again.
366    Reissued,
367    /// Closed after reopening
368    ///
369    /// Reopened and then closed.
370    ClosedAfterReopening,
371    /// Redetermined
372    ///
373    /// Determined again or differently.
374    Redetermined,
375    /// Processed as primary
376    ///
377    /// Processed as the first.
378    ProcessedAsPrimary,
379    /// Processed as secondary
380    ///
381    /// Processed as the second.
382    ProcessedAsSecondary,
383    /// Processed as tertiary
384    ///
385    /// Processed as the third.
386    ProcessedAsTertiary,
387    /// Correction of error
388    ///
389    /// A correction to information previously communicated which contained an error.
390    CorrectionError,
391    /// Single credit item of a group
392    ///
393    /// Notification that the credit item is a single credit item of a group of credit items.
394    SingleCreditItemAGroup,
395    /// Single debit item of a group
396    ///
397    /// Notification that the debit item is a single debit item of a group of debit items.
398    SingleDebitItemAGroup,
399    /// Interim response
400    ///
401    /// The response is an interim one.
402    InterimResponse,
403    /// Final response
404    ///
405    /// The response is an final one.
406    FinalResponse,
407    /// Debit advice requested
408    ///
409    /// A debit advice is requested for the transaction.
410    DebitAdviceRequested,
411    /// Transaction not impacted
412    ///
413    /// Advice that the transaction is not impacted.
414    TransactionNotImpacted,
415    /// Patient to be notified
416    ///
417    /// The action to take is to notify the patient.
418    PatientToBeNotified,
419    /// Healthcare provider to be notified
420    ///
421    /// The action to take is to notify the healthcare provider.
422    HealthcareProviderToBeNotified,
423    /// Usual general practitioner to be notified
424    ///
425    /// The action to take is to notify the usual general practitioner.
426    UsualGeneralPractitionerToBeNotified,
427    /// Advice without details
428    ///
429    /// An advice without details is requested or notified.
430    AdviceWithoutDetails,
431    /// Advice with details
432    ///
433    /// An advice with details is requested or notified.
434    AdviceWithDetails,
435    /// Amendment requested
436    ///
437    /// An amendment is requested.
438    AmendmentRequested,
439    /// For information
440    ///
441    /// Included for information only.
442    ForInformation,
443    /// Withdraw
444    ///
445    /// A code indicating discontinuance or retraction.
446    Withdraw,
447    /// Delivery date change
448    ///
449    /// The action / notiification is a change of the delivery date.
450    DeliveryDateChange,
451    /// Quantity change
452    ///
453    /// The action / notification is a change of quantity.
454    QuantityChange,
455    /// Resale and claim
456    ///
457    /// The identified items have been sold by the distributor to the end customer, and compensation for the loss of inventory value is claimed.
458    ResaleAndClaim,
459    /// Resale
460    ///
461    /// The identified items have been sold by the distributor to the end customer.
462    Resale,
463    /// Prior addition
464    ///
465    /// This existing line item becomes available at an earlier date.
466    PriorAddition,
467    /// Expired
468    ///
469    /// This line has expired.
470    Expired,
471    /// Hold
472    ///
473    /// This line is on Hold.
474    Hold,
475    /// Open
476    ///
477    /// This line is open.
478    Open,
479    /// Observe
480    ///
481    /// The object or item is to be or has been observed.
482    Observe,
483}
484
485impl std::fmt::Display for LineStatus {
486    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
487        write!(f, "{}", <Self as crate::Code>::code(*self))
488    }
489}
490
491impl std::str::FromStr for LineStatus {
492    type Err = crate::ParseError<Self>;
493    fn from_str(s: &str) -> Result<Self, Self::Err> {
494        <Self as crate::FromCode>::from_code(s)
495            .ok_or_else(|| crate::ParseError::<Self>::new(s.to_owned()))
496    }
497}
498
499impl crate::Code for LineStatus {
500    fn code(self) -> &'static str {
501        match self {
502            LineStatus::Added => "1",
503            LineStatus::Deleted => "2",
504            LineStatus::Changed => "3",
505            LineStatus::NoAction => "4",
506            LineStatus::AcceptedWithoutAmendment => "5",
507            LineStatus::AcceptedWithAmendment => "6",
508            LineStatus::NotAccepted => "7",
509            LineStatus::ScheduleOnly => "8",
510            LineStatus::Amendments => "9",
511            LineStatus::NotFound => "10",
512            LineStatus::NotAmended => "11",
513            LineStatus::LineItemNumbersChanged => "12",
514            LineStatus::BuyerHasDeductedAmount => "13",
515            LineStatus::BuyerClaimsAgainstInvoice => "14",
516            LineStatus::ChargeBackBySeller => "15",
517            LineStatus::SellerWillIssueCreditNote => "16",
518            LineStatus::TermsChangedForNewTerms => "17",
519            LineStatus::AbideOutcomeNegotiations => "18",
520            LineStatus::SellerRejectsDispute => "19",
521            LineStatus::Settlement => "20",
522            LineStatus::NoDelivery => "21",
523            LineStatus::CallOffDelivery => "22",
524            LineStatus::ProposedAmendment => "23",
525            LineStatus::AcceptedWithAmendmentNoConfirmationRequired => "24",
526            LineStatus::EquipmentProvisionallyRepaired => "25",
527            LineStatus::Included => "26",
528            LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions => "27",
529            LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "28",
530            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions => "29",
531            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "30",
532            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue => "31",
533            LineStatus::CreditAdviceRequestedForDirectDebit => "32",
534            LineStatus::CreditAdviceAndAcknowledgementForDirectDebit => "33",
535            LineStatus::Inquiry => "34",
536            LineStatus::Checked => "35",
537            LineStatus::NotChecked => "36",
538            LineStatus::Cancelled => "37",
539            LineStatus::Replaced => "38",
540            LineStatus::New => "39",
541            LineStatus::Agreed => "40",
542            LineStatus::Proposed => "41",
543            LineStatus::AlreadyDelivered => "42",
544            LineStatus::AdditionalSubordinateStructuresWillFollow => "43",
545            LineStatus::AdditionalSubordinateStructuresWillNotFollow => "44",
546            LineStatus::ResultOpposed => "45",
547            LineStatus::AuctionHeld => "46",
548            LineStatus::LegalActionPursued => "47",
549            LineStatus::MeetingHeld => "48",
550            LineStatus::ResultSetAside => "49",
551            LineStatus::ResultDisputed => "50",
552            LineStatus::Countersued => "51",
553            LineStatus::Pending => "52",
554            LineStatus::CourtActionDismissed => "53",
555            LineStatus::ReferredItemAccepted => "54",
556            LineStatus::ReferredItemRejected => "55",
557            LineStatus::DebitAdviceStatementLine => "56",
558            LineStatus::CreditAdviceStatementLine => "57",
559            LineStatus::GroupedCreditAdvices => "58",
560            LineStatus::GroupedDebitAdvices => "59",
561            LineStatus::Registered => "60",
562            LineStatus::PaymentDenied => "61",
563            LineStatus::ApprovedAsAmended => "62",
564            LineStatus::ApprovedAsSubmitted => "63",
565            LineStatus::CancelledNoActivity => "64",
566            LineStatus::UnderInvestigation => "65",
567            LineStatus::InitialClaimReceived => "66",
568            LineStatus::NotInProcess => "67",
569            LineStatus::RejectedDuplicate => "68",
570            LineStatus::RejectedResubmitWithCorrections => "69",
571            LineStatus::PendingIncomplete => "70",
572            LineStatus::UnderFieldOfficeInvestigation => "71",
573            LineStatus::PendingAwaitingAdditionalMaterial => "72",
574            LineStatus::PendingAwaitingReview => "73",
575            LineStatus::Reopened => "74",
576            LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS => "75",
577            LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS => "76",
578            LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS => "77",
579            LineStatus::PreviousPaymentDecisionReversed => "78",
580            LineStatus::NotOurClaimForwardedToAnotherPayerS => "79",
581            LineStatus::TransferredToCorrectInsuranceCarrier => "80",
582            LineStatus::NotPaidPredeterminationPricingOnly => "81",
583            LineStatus::DocumentationClaim => "82",
584            LineStatus::Reviewed => "83",
585            LineStatus::Repriced => "84",
586            LineStatus::Audited => "85",
587            LineStatus::ConditionallyPaid => "86",
588            LineStatus::OnAppeal => "87",
589            LineStatus::Closed => "88",
590            LineStatus::Reaudited => "89",
591            LineStatus::Reissued => "90",
592            LineStatus::ClosedAfterReopening => "91",
593            LineStatus::Redetermined => "92",
594            LineStatus::ProcessedAsPrimary => "93",
595            LineStatus::ProcessedAsSecondary => "94",
596            LineStatus::ProcessedAsTertiary => "95",
597            LineStatus::CorrectionError => "96",
598            LineStatus::SingleCreditItemAGroup => "97",
599            LineStatus::SingleDebitItemAGroup => "98",
600            LineStatus::InterimResponse => "99",
601            LineStatus::FinalResponse => "100",
602            LineStatus::DebitAdviceRequested => "101",
603            LineStatus::TransactionNotImpacted => "102",
604            LineStatus::PatientToBeNotified => "103",
605            LineStatus::HealthcareProviderToBeNotified => "104",
606            LineStatus::UsualGeneralPractitionerToBeNotified => "105",
607            LineStatus::AdviceWithoutDetails => "106",
608            LineStatus::AdviceWithDetails => "107",
609            LineStatus::AmendmentRequested => "108",
610            LineStatus::ForInformation => "109",
611            LineStatus::Withdraw => "110",
612            LineStatus::DeliveryDateChange => "111",
613            LineStatus::QuantityChange => "112",
614            LineStatus::ResaleAndClaim => "113",
615            LineStatus::Resale => "114",
616            LineStatus::PriorAddition => "115",
617            LineStatus::Expired => "116",
618            LineStatus::Hold => "117",
619            LineStatus::Open => "118",
620            LineStatus::Observe => "119",
621        }
622    }
623}
624
625impl crate::Description for LineStatus {
626    fn description(self) -> &'static str {
627        match self {
628            LineStatus::Added => "Added",
629            LineStatus::Deleted => "Deleted",
630            LineStatus::Changed => "Changed",
631            LineStatus::NoAction => "No action",
632            LineStatus::AcceptedWithoutAmendment => "Accepted without amendment",
633            LineStatus::AcceptedWithAmendment => "Accepted with amendment",
634            LineStatus::NotAccepted => "Not accepted",
635            LineStatus::ScheduleOnly => "Schedule only",
636            LineStatus::Amendments => "Amendments",
637            LineStatus::NotFound => "Not found",
638            LineStatus::NotAmended => "Not amended",
639            LineStatus::LineItemNumbersChanged => "Line item numbers changed",
640            LineStatus::BuyerHasDeductedAmount => "Buyer has deducted amount",
641            LineStatus::BuyerClaimsAgainstInvoice => "Buyer claims against invoice",
642            LineStatus::ChargeBackBySeller => "Charge back by seller",
643            LineStatus::SellerWillIssueCreditNote => "Seller will issue credit note",
644            LineStatus::TermsChangedForNewTerms => "Terms changed for new terms",
645            LineStatus::AbideOutcomeNegotiations => "Abide outcome of negotiations",
646            LineStatus::SellerRejectsDispute => "Seller rejects dispute",
647            LineStatus::Settlement => "Settlement",
648            LineStatus::NoDelivery => "No delivery",
649            LineStatus::CallOffDelivery => "Call-off delivery",
650            LineStatus::ProposedAmendment => "Proposed amendment",
651            LineStatus::AcceptedWithAmendmentNoConfirmationRequired => "Accepted with amendment, no confirmation required",
652            LineStatus::EquipmentProvisionallyRepaired => "Equipment provisionally repaired",
653            LineStatus::Included => "Included",
654            LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions => "Upon receipt and verification of documents we shall cover you when due as per your instructions",
655            LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "Upon receipt and verification of documents we shall authorize you to debit our account with you when due",
656            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions => "On receipt of your authenticated advice we shall cover you when due as per your instructions",
657            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue => "On receipt of your authenticated advice we shall authorize you to debit our account with you when due",
658            LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue => "On receipt of your authenticated advice we shall credit your account with us when due",
659            LineStatus::CreditAdviceRequestedForDirectDebit => "Credit advice requested for direct debit",
660            LineStatus::CreditAdviceAndAcknowledgementForDirectDebit => "Credit advice and acknowledgement for direct debit",
661            LineStatus::Inquiry => "Inquiry",
662            LineStatus::Checked => "Checked",
663            LineStatus::NotChecked => "Not checked",
664            LineStatus::Cancelled => "Cancelled",
665            LineStatus::Replaced => "Replaced",
666            LineStatus::New => "New",
667            LineStatus::Agreed => "Agreed",
668            LineStatus::Proposed => "Proposed",
669            LineStatus::AlreadyDelivered => "Already delivered",
670            LineStatus::AdditionalSubordinateStructuresWillFollow => "Additional subordinate structures will follow",
671            LineStatus::AdditionalSubordinateStructuresWillNotFollow => "Additional subordinate structures will not follow",
672            LineStatus::ResultOpposed => "Result opposed",
673            LineStatus::AuctionHeld => "Auction held",
674            LineStatus::LegalActionPursued => "Legal action pursued",
675            LineStatus::MeetingHeld => "Meeting held",
676            LineStatus::ResultSetAside => "Result set aside",
677            LineStatus::ResultDisputed => "Result disputed",
678            LineStatus::Countersued => "Countersued",
679            LineStatus::Pending => "Pending",
680            LineStatus::CourtActionDismissed => "Court action dismissed",
681            LineStatus::ReferredItemAccepted => "Referred item, accepted",
682            LineStatus::ReferredItemRejected => "Referred item, rejected",
683            LineStatus::DebitAdviceStatementLine => "Debit advice statement line",
684            LineStatus::CreditAdviceStatementLine => "Credit advice statement line",
685            LineStatus::GroupedCreditAdvices => "Grouped credit advices",
686            LineStatus::GroupedDebitAdvices => "Grouped debit advices",
687            LineStatus::Registered => "Registered",
688            LineStatus::PaymentDenied => "Payment denied",
689            LineStatus::ApprovedAsAmended => "Approved as amended",
690            LineStatus::ApprovedAsSubmitted => "Approved as submitted",
691            LineStatus::CancelledNoActivity => "Cancelled, no activity",
692            LineStatus::UnderInvestigation => "Under investigation",
693            LineStatus::InitialClaimReceived => "Initial claim received",
694            LineStatus::NotInProcess => "Not in process",
695            LineStatus::RejectedDuplicate => "Rejected, duplicate",
696            LineStatus::RejectedResubmitWithCorrections => "Rejected, resubmit with corrections",
697            LineStatus::PendingIncomplete => "Pending, incomplete",
698            LineStatus::UnderFieldOfficeInvestigation => "Under field office investigation",
699            LineStatus::PendingAwaitingAdditionalMaterial => "Pending, awaiting additional material",
700            LineStatus::PendingAwaitingReview => "Pending, awaiting review",
701            LineStatus::Reopened => "Reopened",
702            LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS => "Processed by primary, forwarded to additional payer(s)",
703            LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS => "Processed by secondary, forwarded to additional payer(s)",
704            LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS => "Processed by tertiary, forwarded to additional payer(s)",
705            LineStatus::PreviousPaymentDecisionReversed => "Previous payment decision reversed",
706            LineStatus::NotOurClaimForwardedToAnotherPayerS => "Not our claim, forwarded to another payer(s)",
707            LineStatus::TransferredToCorrectInsuranceCarrier => "Transferred to correct insurance carrier",
708            LineStatus::NotPaidPredeterminationPricingOnly => "Not paid, predetermination pricing only",
709            LineStatus::DocumentationClaim => "Documentation claim",
710            LineStatus::Reviewed => "Reviewed",
711            LineStatus::Repriced => "Repriced",
712            LineStatus::Audited => "Audited",
713            LineStatus::ConditionallyPaid => "Conditionally paid",
714            LineStatus::OnAppeal => "On appeal",
715            LineStatus::Closed => "Closed",
716            LineStatus::Reaudited => "Reaudited",
717            LineStatus::Reissued => "Reissued",
718            LineStatus::ClosedAfterReopening => "Closed after reopening",
719            LineStatus::Redetermined => "Redetermined",
720            LineStatus::ProcessedAsPrimary => "Processed as primary",
721            LineStatus::ProcessedAsSecondary => "Processed as secondary",
722            LineStatus::ProcessedAsTertiary => "Processed as tertiary",
723            LineStatus::CorrectionError => "Correction of error",
724            LineStatus::SingleCreditItemAGroup => "Single credit item of a group",
725            LineStatus::SingleDebitItemAGroup => "Single debit item of a group",
726            LineStatus::InterimResponse => "Interim response",
727            LineStatus::FinalResponse => "Final response",
728            LineStatus::DebitAdviceRequested => "Debit advice requested",
729            LineStatus::TransactionNotImpacted => "Transaction not impacted",
730            LineStatus::PatientToBeNotified => "Patient to be notified",
731            LineStatus::HealthcareProviderToBeNotified => "Healthcare provider to be notified",
732            LineStatus::UsualGeneralPractitionerToBeNotified => "Usual general practitioner to be notified",
733            LineStatus::AdviceWithoutDetails => "Advice without details",
734            LineStatus::AdviceWithDetails => "Advice with details",
735            LineStatus::AmendmentRequested => "Amendment requested",
736            LineStatus::ForInformation => "For information",
737            LineStatus::Withdraw => "Withdraw",
738            LineStatus::DeliveryDateChange => "Delivery date change",
739            LineStatus::QuantityChange => "Quantity change",
740            LineStatus::ResaleAndClaim => "Resale and claim",
741            LineStatus::Resale => "Resale",
742            LineStatus::PriorAddition => "Prior addition",
743            LineStatus::Expired => "Expired",
744            LineStatus::Hold => "Hold",
745            LineStatus::Open => "Open",
746            LineStatus::Observe => "Observe",
747        }
748    }
749}
750
751impl crate::FromCode for LineStatus {
752    fn from_code(code: &str) -> Option<Self>
753    where
754        Self: Sized,
755    {
756        match code {
757            "1" => Some(LineStatus::Added),
758            "2" => Some(LineStatus::Deleted),
759            "3" => Some(LineStatus::Changed),
760            "4" => Some(LineStatus::NoAction),
761            "5" => Some(LineStatus::AcceptedWithoutAmendment),
762            "6" => Some(LineStatus::AcceptedWithAmendment),
763            "7" => Some(LineStatus::NotAccepted),
764            "8" => Some(LineStatus::ScheduleOnly),
765            "9" => Some(LineStatus::Amendments),
766            "10" => Some(LineStatus::NotFound),
767            "11" => Some(LineStatus::NotAmended),
768            "12" => Some(LineStatus::LineItemNumbersChanged),
769            "13" => Some(LineStatus::BuyerHasDeductedAmount),
770            "14" => Some(LineStatus::BuyerClaimsAgainstInvoice),
771            "15" => Some(LineStatus::ChargeBackBySeller),
772            "16" => Some(LineStatus::SellerWillIssueCreditNote),
773            "17" => Some(LineStatus::TermsChangedForNewTerms),
774            "18" => Some(LineStatus::AbideOutcomeNegotiations),
775            "19" => Some(LineStatus::SellerRejectsDispute),
776            "20" => Some(LineStatus::Settlement),
777            "21" => Some(LineStatus::NoDelivery),
778            "22" => Some(LineStatus::CallOffDelivery),
779            "23" => Some(LineStatus::ProposedAmendment),
780            "24" => Some(LineStatus::AcceptedWithAmendmentNoConfirmationRequired),
781            "25" => Some(LineStatus::EquipmentProvisionallyRepaired),
782            "26" => Some(LineStatus::Included),
783            "27" => Some(LineStatus::UponReceiptAndVerificationDocumentsWeShallCoverYouWhenDueAsPerYourInstructions),
784            "28" => Some(LineStatus::UponReceiptAndVerificationDocumentsWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue),
785            "29" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCoverYouWhenDueAsPerYourInstructions),
786            "30" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallAuthorizeYouToDebitOurAccountWithYouWhenDue),
787            "31" => Some(LineStatus::OnReceiptYourAuthenticatedAdviceWeShallCreditYourAccountWithUsWhenDue),
788            "32" => Some(LineStatus::CreditAdviceRequestedForDirectDebit),
789            "33" => Some(LineStatus::CreditAdviceAndAcknowledgementForDirectDebit),
790            "34" => Some(LineStatus::Inquiry),
791            "35" => Some(LineStatus::Checked),
792            "36" => Some(LineStatus::NotChecked),
793            "37" => Some(LineStatus::Cancelled),
794            "38" => Some(LineStatus::Replaced),
795            "39" => Some(LineStatus::New),
796            "40" => Some(LineStatus::Agreed),
797            "41" => Some(LineStatus::Proposed),
798            "42" => Some(LineStatus::AlreadyDelivered),
799            "43" => Some(LineStatus::AdditionalSubordinateStructuresWillFollow),
800            "44" => Some(LineStatus::AdditionalSubordinateStructuresWillNotFollow),
801            "45" => Some(LineStatus::ResultOpposed),
802            "46" => Some(LineStatus::AuctionHeld),
803            "47" => Some(LineStatus::LegalActionPursued),
804            "48" => Some(LineStatus::MeetingHeld),
805            "49" => Some(LineStatus::ResultSetAside),
806            "50" => Some(LineStatus::ResultDisputed),
807            "51" => Some(LineStatus::Countersued),
808            "52" => Some(LineStatus::Pending),
809            "53" => Some(LineStatus::CourtActionDismissed),
810            "54" => Some(LineStatus::ReferredItemAccepted),
811            "55" => Some(LineStatus::ReferredItemRejected),
812            "56" => Some(LineStatus::DebitAdviceStatementLine),
813            "57" => Some(LineStatus::CreditAdviceStatementLine),
814            "58" => Some(LineStatus::GroupedCreditAdvices),
815            "59" => Some(LineStatus::GroupedDebitAdvices),
816            "60" => Some(LineStatus::Registered),
817            "61" => Some(LineStatus::PaymentDenied),
818            "62" => Some(LineStatus::ApprovedAsAmended),
819            "63" => Some(LineStatus::ApprovedAsSubmitted),
820            "64" => Some(LineStatus::CancelledNoActivity),
821            "65" => Some(LineStatus::UnderInvestigation),
822            "66" => Some(LineStatus::InitialClaimReceived),
823            "67" => Some(LineStatus::NotInProcess),
824            "68" => Some(LineStatus::RejectedDuplicate),
825            "69" => Some(LineStatus::RejectedResubmitWithCorrections),
826            "70" => Some(LineStatus::PendingIncomplete),
827            "71" => Some(LineStatus::UnderFieldOfficeInvestigation),
828            "72" => Some(LineStatus::PendingAwaitingAdditionalMaterial),
829            "73" => Some(LineStatus::PendingAwaitingReview),
830            "74" => Some(LineStatus::Reopened),
831            "75" => Some(LineStatus::ProcessedByPrimaryForwardedToAdditionalPayerS),
832            "76" => Some(LineStatus::ProcessedBySecondaryForwardedToAdditionalPayerS),
833            "77" => Some(LineStatus::ProcessedByTertiaryForwardedToAdditionalPayerS),
834            "78" => Some(LineStatus::PreviousPaymentDecisionReversed),
835            "79" => Some(LineStatus::NotOurClaimForwardedToAnotherPayerS),
836            "80" => Some(LineStatus::TransferredToCorrectInsuranceCarrier),
837            "81" => Some(LineStatus::NotPaidPredeterminationPricingOnly),
838            "82" => Some(LineStatus::DocumentationClaim),
839            "83" => Some(LineStatus::Reviewed),
840            "84" => Some(LineStatus::Repriced),
841            "85" => Some(LineStatus::Audited),
842            "86" => Some(LineStatus::ConditionallyPaid),
843            "87" => Some(LineStatus::OnAppeal),
844            "88" => Some(LineStatus::Closed),
845            "89" => Some(LineStatus::Reaudited),
846            "90" => Some(LineStatus::Reissued),
847            "91" => Some(LineStatus::ClosedAfterReopening),
848            "92" => Some(LineStatus::Redetermined),
849            "93" => Some(LineStatus::ProcessedAsPrimary),
850            "94" => Some(LineStatus::ProcessedAsSecondary),
851            "95" => Some(LineStatus::ProcessedAsTertiary),
852            "96" => Some(LineStatus::CorrectionError),
853            "97" => Some(LineStatus::SingleCreditItemAGroup),
854            "98" => Some(LineStatus::SingleDebitItemAGroup),
855            "99" => Some(LineStatus::InterimResponse),
856            "100" => Some(LineStatus::FinalResponse),
857            "101" => Some(LineStatus::DebitAdviceRequested),
858            "102" => Some(LineStatus::TransactionNotImpacted),
859            "103" => Some(LineStatus::PatientToBeNotified),
860            "104" => Some(LineStatus::HealthcareProviderToBeNotified),
861            "105" => Some(LineStatus::UsualGeneralPractitionerToBeNotified),
862            "106" => Some(LineStatus::AdviceWithoutDetails),
863            "107" => Some(LineStatus::AdviceWithDetails),
864            "108" => Some(LineStatus::AmendmentRequested),
865            "109" => Some(LineStatus::ForInformation),
866            "110" => Some(LineStatus::Withdraw),
867            "111" => Some(LineStatus::DeliveryDateChange),
868            "112" => Some(LineStatus::QuantityChange),
869            "113" => Some(LineStatus::ResaleAndClaim),
870            "114" => Some(LineStatus::Resale),
871            "115" => Some(LineStatus::PriorAddition),
872            "116" => Some(LineStatus::Expired),
873            "117" => Some(LineStatus::Hold),
874            "118" => Some(LineStatus::Open),
875            "119" => Some(LineStatus::Observe),
876            _ => None,
877        }
878    }
879}