If the subject matter of a claim is designated only with reference to a type and its quality cannot be determined in light of the nature of the juridical act or intention of the parties, the obligor must deliver a thing of medium quality.
債権の目的物を種類のみで指定した場合において、法律行為の性質又は当事者の意思によってその品質を定めることができないときは、債務者は、中等の品質を有する物を給付しなければならない。
In the case referred to in the preceding paragraph, if the obligor has completed the acts necessary to deliver the thing, or has designated the thing the obligor is to deliver with the consent of the obligee, that thing thenceforth constitutes the subject matter of the claim.
前項の場合において、債務者が物の給付をするのに必要な行為を完了し、又は債権者の同意を得てその給付すべき物を指定したときは、以後その物を債権の目的物とする。
Read this with the articles around it
juridical act
法律行為
An act by which a person, by manifesting their intention (意思表示), brings about the legal effect they intend, such as making a contract or buying everyday goods (Civil Code, Articles 3-2, 9, paragraph (1), and 91; Act on General Rules for Application of Laws, Article 10, paragraphs (1) and (4)). A contract is formed when one party's offer, a manifestation of intention showing its terms, is accepted by the other (Civil Code, Article 522, paragraph (1)). Where the parties to a juridical act manifest an intention that differs from a provision of laws and regulations not related to public policy, their intention prevails (Article 91). It is void if a party lacked mental capacity (意思能力) when manifesting the intention (Article 3-2), or if it goes against public order or good morals (公の秩序又は善良の風俗) (Article 90). A minor (under 18, Article 4) needs the consent of their legal representative to do one, except one by which they merely acquire a right or are released from an obligation, or a disposal of property the representative has allowed them to dispose of, and one done without that consent may be rescinded (取消し) (Article 5); a rescinded act is treated as void from the start (Article 121), and a void act does not take effect even if the parties later confirm it, though confirming it knowing it is void counts as doing a new act (Article 119). One made subject to a condition precedent (停止条件) takes effect when the condition is fulfilled, and one subject to a condition subsequent (解除条件) loses effect then (Article 127, paragraphs (1) and (2)). Under the Act on General Rules for Application of Laws, the formation and effect of a juridical act are governed by the law of the place its parties chose when they did it (Article 7), or, where they chose none, by the law of the place most closely connected with it at that time (Article 8, paragraph (1)); but a consumer can ask for the protective rules of the law where they habitually live, which governs a consumer contract where no law was chosen, and a worker can ask for those of the place most closely connected with the labor contract, usually where the work is done (Articles 11 and 12) — except in the cases Article 11, paragraph (6) lists, such as a consumer who went to a place under the same law as the business's office and made the contract there, unless the business had invited them, where they habitually live, to make it there.
Written for this site using Civil Code, Arts. 3-2, 4, 5, 9, 90, 91, 119, 121, 127, 522 and Act on General Rules for Application of Laws, Arts. 7, 8, 10, 11, 12 as a reference.