zugferd_code_lists/zugferd_2_3_3/
linestatus.rs

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